pwc module fails to build, unable to compile, missing linux/config.h [Feisty/Gutsy]

Bug #46956 reported by jfjellstad
6
Affects Status Importance Assigned to Milestone
pwc (Ubuntu)
Fix Released
Medium
Philipp Kern

Bug Description

Binary package hint: pwc-source

pwc-source won't compile. When compiling with make-kpkg modules_image, pwc package doesn't get created (other modules, like the nvidia package gets created).

When running rules manually, I get the following error:
liem@minerva:/usr/src/modules/pwc$ debian/rules
dh_testdir
rm -f build-arch-stamp build-indep-stamp configure-stamp
# Add here commands to clean up after the build process.
/usr/bin/make clean
make[1]: Entering directory `/usr/src/modules/pwc'
rm -f *.[oas] .*.flags *.ko .*.cmd .*.d .*.tmp *.mod.c
rm -rf .tmp_versions
make[1]: Leaving directory `/usr/src/modules/pwc'
dh_clean
dh_clean: Compatibility levels before 4 are deprecated.
make: *** No rule to make target `prep-deb-files', needed by `kdist_config'. Stop.

Tags: ftbfs

Related branches

Revision history for this message
jfjellstad (john-ubuntu-fjellstad) wrote :

Sorry, forgot. Running latest Dapper.
pwc-source:
  Installed: 10.0.7-3
on i386

Changed in pwc:
assignee: nobody → motu
Revision history for this message
Florian Boucault (fboucault) wrote :

Hello, sorry for the late response.

Is the issue still present in latest Dapper ? What about Edgy ?

Changed in pwc:
status: Unconfirmed → Needs Info
Revision history for this message
jfjellstad (john-ubuntu-fjellstad) wrote :

I'm currently using Edgy. When compiling now, I get the following error:

liem@minerva:/usr/src/linux-source-2.6.17$ fakeroot make-kpkg --revision=5:1.custom --append-to-version -10-jlf modules_image
exec debian/rules DEBIAN_REVISION=5:1.custom APPEND_TO_VERSION=-10-jlf modules_image
for module in /usr/src/modules/pwc ; do \
          if test -d $module; then \
            (cd $module; \
              if ./debian/rules KVERS="2.6.17.13-ubuntu1-10-jlf" KSRC="/usr/src/linux-source-2.6.17" \
                             KMAINT="John L Fjellstad" <email address hidden>" \
                             KPKG_DEST_DIR="/usr/src/linux-source-2.6.17/.." \
                             KPKG_MAINTAINER="John L Fjellstad" \
                             KPKG_EXTRAV_ARG="EXTRAVERSION=.13-ubuntu1-10-jlf" \
                             ARCH="i386" \
                             KDREV="5:1.custom" kdist_image; then \
                  echo "Module $module processed fine"; \
              else \
                   echo "Module $module failed."; \
                   if [ "X" != "X" ]; then \
                      echo "Perhaps $module does not understand --rootcmd?"; \
                      echo "If you see messages that indicate that it is not"; \
                      echo "in fact being built as root, please file a bug "; \
                      echo "against $module."; \
                   fi; \
                   echo "Hit return to Continue"; \
                 read ans; \
              fi; \
             ); \
          else \
               echo "Module $module does not exist"; \
               echo "Hit return to Continue?"; \
          fi; \
        done
make[1]: Entering directory `/usr/src/modules/pwc'
make[1]: Nothing to be done for `kdist_image'.
make[1]: Leaving directory `/usr/src/modules/pwc'
Module /usr/src/modules/pwc processed fine

Note, no actual .deb gets created

Revision history for this message
Florian Boucault (fboucault) wrote :

Hi jfjellstad,

Any news on Feisty or Gutsy?

Revision history for this message
Olivier Cortès (olive) wrote :

Hi,

on Gutsy *and* Feisty, build error too :

# Build the module
CC=gcc-4.1 /usr/bin/make KSRC=/lib/modules/2.6.20-16-generic/build KVER=2.6.20-16-generic
make[2]: Entering directory `/usr/src/modules/pwc'
/usr/bin/make -C /lib/modules/2.6.20-16-generic/build SUBDIRS=/usr/src/modules/pwc modules
make[3]: Entering directory `/usr/src/linux-headers-2.6.20-16-generic'
  CC [M] /usr/src/modules/pwc/pwc-if.o
In file included from /usr/src/modules/pwc/pwc-if.c:69:
/usr/src/modules/pwc/pwc.h:28:26: error: linux/config.h: No such file or directory
/usr/src/modules/pwc/pwc-if.c: In function 'pwc_isoc_init':
/usr/src/modules/pwc/pwc-if.c:920: warning: assignment from incompatible pointer type
make[4]: *** [/usr/src/modules/pwc/pwc-if.o] Error 1
make[3]: *** [_module_/usr/src/modules/pwc] Error 2
make[3]: Leaving directory `/usr/src/linux-headers-2.6.20-16-generic'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/src/modules/pwc'
make[1]: *** [binary-modules] Error 2
make[1]: Leaving directory `/usr/src/modules/pwc'
make: *** [kdist_build] Error 2
BUILD FAILED!
See /var/cache/modass/pwc-source.buildlog.2.6.20-16-generic.1190300883 for details.
Build failed. Press Return to continue...

linux-headers-`uname -r` is installed on both machines (gutsy and feisty), and module-assistant fetched anything normally needed to compile modules (kqemu and alsa just build, install fine and work perfectly). I suspect this to be a newbie error as linux/config.h has been a standard file in the past, but I can't remember where to find it.
Is it just as simple as `gunzip -cd /proc/config.gz > /usr/include/linux/config.h` (as root) ?

What do you think about it ? Why does pwc needs this linux/config.h whereas other modules compile fine without it ?

Revision history for this message
Philipp Kern (pkern) wrote :

Fix for Gutsy on the way to the archives.

Changed in pwc:
assignee: motu → pkern
status: Incomplete → In Progress
Revision history for this message
Philipp Kern (pkern) wrote :

pwc (10.0.12-rc1+final-2ubuntu1) gutsy; urgency=low

  * Removed `struct pt_regs *regs' from pwc_isoc_handler's signature
    in `pwc-if.c' (throws a warning about an incompatible pointer type).
  * Removed `#include <linux/config.h>' from `pwc.h' (fixes a
    compilation error when module-assistant is invoked on the module).
    (LP: #46956)
  * Modify Maintainer value to match the DebianMaintainerField
    specification.
  * Do not ignore failures on clean.

 -- Philipp Kern <email address hidden> Mon, 08 Oct 2007 22:38:31 +0200

Changed in pwc:
status: In Progress → Fix Released
Revision history for this message
Ant. (boelhe) wrote :

I am experiencing the same problem running Gutsy.

When is this bug likely to get fixed?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.