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

quickcam on 2.6.11 - driver issue



Hi,

I got some issues getting my Logitech Quickcam (USB) to run on kernel 2.6.11-1-686 (Dell Inspiron 8200 laptop).

What I found so far : lsusb returns the following :
Bus 002 Device 003: ID 046d:0850 Logitech, Inc. QuickCam Web

I looked this up - and apparently this is supported through the qc module over at
http://qce-ga.sourceforge.net/

I grabbed the source, and tried to run ./quickcam.sh - which started up a small interface that allowed me to quit or continue if I was sure. The following then popped up :

gcc version: gcc version 4.0.2 20050725 (prerelease) (Debian 4.0.1-3)
gcc version: gcc version 4.0.2 20050725 (prerelease) (Debian 4.0.1-3)
Make version: GNU Make 3.80
Linker version: GNU ld version 2.16.1 Debian GNU/Linux
Kernel compiler: gcc version 3.3.6 (Debian 1:3.3.6-6)
[!] Kernel compiler and gcc seem to be different versions.
Instead, they should be the same. If you have many compilers
installed, you can specify the correct one with command (in bash)
        export CC=kgcc
before trying to install the driver. Replace kgcc with the command
required for compiling kernels (kgcc is often used in Red Hat systems).
WARNING: If you press Enter, I'll try to continue anyway,
but this probably will fail. You SHOULD press Ctrl+C now.
Press Ctrl+C to quit, Enter to continue --->

And then - after a few other Enters (for information purposes on my system) :

Kernel source directory: /lib/modules/2.6.11-1-686/build
Detected kernel version is 2.6.x.
Kernel version name: 2.6.11-1-686
Kernel source version code: 132619
Driver file name: quickcam.ko
Module install directory: /lib/modules/2.6.11-1-686
Driver source directory (PWD):         /usr/src/modules/qc-usb-source
Kernel source directory (LINUX_DIR):   /lib/modules/2.6.11-1-686/build
Module install directory (MODULE_DIR): /lib/modules/2.6.11-1-686
Utility install directory (PREFIX):    /usr/local
User options (USER_OPT):
Driver file name (use with insmod):    quickcam.ko
Kernel version code:                   132619

Then the important part - where stuff goes wrong -- this happens after the script starts to try to compile the driver :

*** Warning: "cleanup_module" [/usr/src/modules/qc-usb-source/quickcam.ko] undefined!
*** Warning: "init_module" [/usr/src/modules/qc-usb-source/quickcam.ko] undefined!
  gcc -Wp,-MD,/usr/src/modules/qc-usb-source/.quickcam.mod.o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.0.2/include -D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2     -fomit-frame-pointer -pipe -msoft-float -mpreferred-stack-boundary=2 -fno-unit-at-a-time -march=i686 -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement -Wno-pointer-sign    -DKBUILD_BASENAME=quickcam -DKBUILD_MODNAME=quickcam -DMODULE -c -o /usr/src/modules/qc-usb-source/quickcam.mod.o /usr/src/modules/qc-usb-source/quickcam.mod.c  ld -m elf_i386 -r -o /usr/src/modules/qc-usb-source/quickcam.ko /usr/src/modules/qc-usb-source/quickcam.o /usr/src/modules/qc-usb-source/quickcam.mod.o
make[1]: Leaving directory `/usr/src/kernel-headers-2.6.11-1-686'
gcc -Wall -O2 -s qcset.c -o qcset -lm
qcset.c: In function 'pnm_open':
qcset.c:390: warning: pointer targets in passing argument 1 of 'fopen' differ in signedness
qcset.c: In function 'main':
qcset.c:661: warning: pointer targets in passing argument 1 of 'pnm_open' differ in signedness
-rw-r--r--  1 root root 92085 2005-07-31 19:28 quickcam.ko

After some more Enters - when trying to load the driver :

You decided to do it, here we go...
insmod: error inserting './quickcam.ko': -1 Invalid module format
=== Leaving root mode ===
quickcam: version magic '2.6.11-1-686 686 gcc-4.0' should be '2.6.11-1-686 686 gcc-3.3'
[!] The QuickCam driver failed to load!
If you saw any special error messages, like about
unresolved symbols, tell about them when asking for help.
WARNING: If you press Enter, I'll try to continue anyway,
but this probably will fail. You SHOULD press Ctrl+C now.
Press Ctrl+C to quit, Enter to continue --->

After this - the message

quickcam: version magic '2.6.11-1-686 686 gcc-4.0' should be '2.6.11-1-686 686 gcc-3.3'

keeps on returning on each step.


So - to recapitulate :
1. The driver should be able to handle my type of webcam (based on chipset)
2. The source is OK - as it detects the correct USB cam through the script
3. Apparently - there is something wrong with the gcc version, as it goes wrong with compiling the driver / module - based on output above.

I had some threads to chew on in the archives - but they were referring to older kernels, or to problems with /dev/video - which I was able to solve by installing xawtv.

I can give some dmesg output as well - when plugging in the cam in question in USB :

quickcam: version magic '2.6.11-1-686 686 gcc-4.0' should be '2.6.11-1-686 686 gcc-3.3'

Anybody got any ideas ?
I'm rather noob at compiling things myself - more the manual type of person, but any help or reading material would be greatly appreciated.

Thanks in advance :)

Frank







-- 
================================================
Frank Guthorel

T : 09/329.49.38 - G : 0495/105.776
mailto:frank@codedor.be - http://www.codedor.be
================================================

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: