[Bug 46956] Re: unable to compile
Olivier Cortès
olive at deep-ocean.net
Thu Sep 20 15:12:02 UTC 2007
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 ?
** Summary changed:
- unable to compile
+ pwc module fails to build, unable to compile, missing linux/config.h [Feisty/Gutsy]
--
pwc module fails to build, unable to compile, missing linux/config.h [Feisty/Gutsy]
https://bugs.launchpad.net/bugs/46956
You received this bug notification because you are a member of MOTU,
which is a bug assignee.
More information about the universe-bugs
mailing list