quickcam on 2.6.11 - driver issue

From: Frank Guthorel (frank_at_codedor.be)
Date: 07/31/05

  • Next message: Michal Hejduk: "Problem with Totem"
    Date: Sun, 31 Jul 2005 19:39:39 +0200
    To: debian-user@lists.debian.org
    
    
    

    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
    ================================================
    
    

    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    


  • Next message: Michal Hejduk: "Problem with Totem"

    Relevant Pages

    • Re: New Nvidia 1.0-7167 driver for Linux x86 released
      ... >>installed the 7167 driver today, ... >>kernels, Fixed NvAGP incompatibility with recent Linux 2.6 kernels, ... > Well I reported to them about a failure compiling aginst kernel ...
      (Fedora)
    • Re: New Nvidia 1.0-7167 driver for Linux x86 released
      ... > installed the 7167 driver today, ... > kernels, Fixed NvAGP incompatibility with recent Linux 2.6 kernels, ... Well I reported to them about a failure compiling aginst kernel ...
      (Fedora)
    • Re: [linux-usb-devel] dead CONFIG_ variables: drivers/usb/
      ... I'm ignoring the USB serial stuff here. ... I'm sure I saw a driver for this at one point, ... This is in the OMAP tree; probably nearly ready to go upstream. ... would let the original Zaurus models upgrade to 2.6 kernels. ...
      (Linux-Kernel)
    • PROBLEM: no USB functionality with 2.6 kernels on Dell Dimension 4500
      ... There is no USB functionality with 2.6.3 or 2.6.5 kernels on Dell ... Sony and on a new Dell Precision, so I am confident the problem is ... Different ACPI or APIC settings may help. ...
      (Linux-Kernel)
    • Bug report on UHCI driver.
      ... USB works perfectly, but, suddenly, it stops working and dmesg starts ... It also seems to happen faster in 2.4 kernels. ... ParErr- Stepping- SERR+ FastB2B- ... 01:00.0 VGA compatible controller: nVidia Corporation NV18 [GeForce4 MX ...
      (Linux-Kernel)