Menu

#40 Can't compile with Fedora Core 5

open
nobody
None
5
2006-03-26
2006-03-26
No

I had previously not had any problems compiling SPCA5XX
with Fedora Core 4. I upgraded the installation to
Fedora Core 5 and now it won't compile. I get the
following error messages:

[root@topaz spca5xx-20060301]# make
Building SPCA5XX driver for 2.5/2.6 kernel.
Remember: you must have read/write access to your
kernel source tree.
make -C /lib/modules/`uname -r`/build
SUBDIRS=/root/spca5xx-20060301 CC=cc modules
make[1]: Entering directory
`/usr/src/kernels/2.6.15-1.2054_FC5-i686'
CC [M] /root/spca5xx-20060301/drivers/usb/spca5xx.o
/root/spca5xx-20060301/drivers/usb/spca5xx.c:8414:
error: unknown field ‘owner’ specified in initializer
/root/spca5xx-20060301/drivers/usb/spca5xx.c:8414:
warning: initialization from incompatible pointer type
make[2]: ***
[/root/spca5xx-20060301/drivers/usb/spca5xx.o] Error 1
make[1]: *** [_module_/root/spca5xx-20060301] Error 2
make[1]: Leaving directory
`/usr/src/kernels/2.6.15-1.2054_FC5-i686'
make: *** [default] Error 2
[root@topaz spca5xx-20060301]#

I know that there are a number of things that were
changed between FC4 and FC5 to include Gnome 2.14 vs.
2.10, and I believe a newer version of GCC (gcc-4.1.0-3).

How do I go about compiling SPCA5xx, or am I stuck with
waiting until a newer version is released?

Respectfully,

Stephen

Discussion

  • Eric Doutreleau

    Eric Doutreleau - 2006-03-26

    Logged In: YES
    user_id=200525

    well i guess that the problem is that Fedore release a pre
    2.6.16 kernel

    here is a VERY VERY dirty hack in order to be able to compile

    just edit the
    drivers/usb/spca5xx.c file at the line 8414

    change #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,16)
    to #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,15)

     
  • TMP-StephenH

    TMP-StephenH - 2006-03-26

    Logged In: YES
    user_id=1306547

    Thank you for the hack. It did indeed enable me to compile
    SPCA5XX. However, it led to a completely different problem.
    When I went to actually try to view something through the
    videoconferencing application, as soon as I hit the button
    to activate the camera, the system rebooted.

    There are so many changes between FC4 and FC5 that I have no
    idea which of them has broken the ability for the driver to
    work.

    Respectfully,

    Stephen

     
  • TMP-StephenH

    TMP-StephenH - 2006-03-26

    Logged In: YES
    user_id=1306547

    This is more of a problem. I tried to use both CamStream
    and SPCAVIEW to view video in case it was a problem with
    Ekiga 2.0.1, which replaced GnomeMeeting in FC5. The
    reaction was the same in both cases. As soon as I tried to
    view video with either one, the system instantaneously shut
    down like I had pressed the reset button and rebooted.

    The last time I tried (with SPCAVIEW), something different
    happened that I have never seen before in a number of years
    of computing. The system halted and said that there was a
    CMOS checksum error, and that the CMOS values were being
    reset to defaults. I went in and checked them to reset them
    for my system, and the computer than booted without problem.

    So, I can deduce a few things.

    1. With the hack, SPCA5xx will compile.

    2. With the driver installed, the camera is detected
    properly, as the application will list it whereas before, it
    couldn't find it.

    3. Attempting to view video causes a catastrophic failure
    somewhere, whether in the new modular X or in the kernel, I
    have no way of guessing.

    I have neither the skill nor the understanding of what is
    happening to fix this, so I guess I will have to wait until
    a future version of the driver that will work is made. :(

    Regards,

    Stephen

     
  • TMP-StephenH

    TMP-StephenH - 2006-04-03

    Logged In: YES
    user_id=1306547

    I just downloaded the 20060402 spca5xx file and tried to
    compile it. I read the note for kernels up to 2.6.16, and
    then successfully compiled both it and spcaview.
    Unfortuanely, the same thing happens. Ekiga detects the
    camera, and it passes the various tests. Unfortunately, as
    soon as I click the button to local view video, the system
    reboots.

    I tried it again after doing the modprobe spca5xx command,
    and it did the same thing with spcaview, but this time, I
    also had to press the reset button.

    The wierd thing is that now, even after issuing a "make
    clean" command to remove both spca5xx and spcaview and
    rebooting, Ekiga detects the camera and it passes the 5
    tests. It still crashes if I try to view video though.

    Hopefully, some of this makes sense to the experts.

    Respectfully,

    Stephen

     
  • TMP-StephenH

    TMP-StephenH - 2006-04-03

    Logged In: YES
    user_id=1306547

    I just realized that I didn't mention the webcam I am trying
    to use. It is a Logitech QuickCam IM, reported by the
    hardware broswer as Unknown USB device 0x46d 0x8a0.
    Linux topaz 2.6.16-1.2080_FC5 #1 Tue Mar 28 03:38:34 EST
    2006 i686 athlon i386 GNU/Linux

    Regards,

    Stephen

     

Log in to post a comment.