[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#431201: marked as done (qc-usb-source: Fails to compile on linux

Your message dated Sat, 29 Sep 2007 01:03:12 +0200
with message-id <20070928230312.GU26795@kaoru.asyd.net>
and subject line closing this bug
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: qc-usb-source
Version: 0.6.6-1
Severity: serious
Justification: no longer builds from source

On the latest vanilla (not Debian) linux kernel

make[3]: Entering directory `/usr/src/modules/qc-usb-source'
make -C "/usr/src/linux" SUBDIRS="/usr/src/modules/qc-usb-source" modules V=1 USER_OPT="-DHAVE_UTSRELEASE_H=1"
make[4]: Entering directory `/usr/src/linux-'
test -e include/linux/autoconf.h -a -e include/config/auto.conf || (            \
        echo;                                                           \
        echo "  ERROR: Kernel configuration is invalid.";               \
        echo "         include/linux/autoconf.h or include/config/auto.conf are missing.";      \
        echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";  \
        echo;                                                           \
mkdir -p /usr/src/modules/qc-usb-source/.tmp_versions
rm -f /usr/src/modules/qc-usb-source/.tmp_versions/*
make -f scripts/Makefile.build obj=/usr/src/modules/qc-usb-source
  gcc -Wp,-MD,/usr/src/modules/qc-usb-source/.qc-driver.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.1.2/include -D__KERNEL__ -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os  -march=k8 -m64 -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -fomit-frame-pointer  -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign -DNOKERNEL -DHAVE_UTSRELEASE_H=1  -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(qc_driver)"  -D"KBUILD_MODNAME=KBUILD_STR(quickcam)" -c -o /usr/src/modules/qc-usb-source/.tmp_qc-driver.o /usr/src/modules/qc-usb-source/qc-driver.c
In file included from /usr/src/modules/qc-usb-source/qc-driver.c:47:
/usr/src/modules/qc-usb-source/quickcam.h:79:26: error: linux/config.h: No such file or directory
/usr/src/modules/qc-usb-source/qc-driver.c: In function 'qc_i2c_init':
/usr/src/modules/qc-usb-source/qc-driver.c:825: warning: assignment from incompatible pointer type
/usr/src/modules/qc-usb-source/qc-driver.c: In function 'qc_isoc_start':
/usr/src/modules/qc-usb-source/qc-driver.c:1867: warning: assignment from incompatible pointer type
/usr/src/modules/qc-usb-source/qc-driver.c: At top level:
/usr/src/modules/qc-usb-source/qc-driver.c:2998: warning: initialization from incompatible pointer type
make[5]: *** [/usr/src/modules/qc-usb-source/qc-driver.o] Error 1
make[4]: *** [_module_/usr/src/modules/qc-usb-source] Error 2
make[4]: Leaving directory `/usr/src/linux-'
make[3]: *** [quickcam.ko] Error 2
make[3]: Leaving directory `/usr/src/modules/qc-usb-source'
make[2]: *** [binary-modules] Error 2
make[2]: Leaving directory `/usr/src/modules/qc-usb-source'
make[1]: *** [kdist_image] Error 2
make[1]: Leaving directory `/usr/src/modules/qc-usb-source'
Module /usr/src/modules/qc-usb-source failed.

I had run oldconfig and prepare, and the files are not missing:

root@chianti:/usr/src/linux# l include/linux/autoconf.h
-rw-r--r-- 1 root root 19336 2007-06-30 08:46 include/linux/autoconf.h
root@chianti:/usr/src/linux# l include/config/auto.conf
-rw-r--r-- 1 root root 12985 2007-06-30 08:46 include/config/auto.conf

Doesn't look serious, in spite of the tag!


-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ISO-8859-1) (ignored: LC_ALL set to en_US)
Shell: /bin/sh linked to /bin/bash

Versions of packages qc-usb-source depends on:
ii  debhelper                     5.0.48     helper programs for debian/rules

Versions of packages qc-usb-source recommends:
ii  kernel-package                10.065     A utility for building Linux kerne

-- no debconf information

--- End Message ---
--- Begin Message ---

I'm closing this bug as it is not a real bug.

Before trying to compile an external module with a vanilla (or not)
kernel you have to check that your kernel sources are ready for this.

In your case the build log show that you have tried to build the
module without preparing the sources. First, you have to :

make oldconfig or make config or make menuconfig
make prepare

in the kernel source tree and finally you should be able to build the

Notice : module builds fine with debian kernels 2.6.21 and 2.6.22.


Emmanuel Bouthenot

--- End Message ---

Reply to: