Compilation error - SGI Prism - SGI

This is a discussion on Compilation error - SGI Prism - SGI ; Hi all! I want to interface a logitech quickcam express webcam on my SGI Prism server. I downloaded "spca5xx" driver. But I am getting error while compiling the driver. ---------------------------------------------------------------------------- [swagat@godavari spca5xx-20041121]$ make grep: /lib/modules/2.4.21-sgi306rp13/build/include/linux/autoconf.h: No such file or directory ...

+ Reply to Thread
Results 1 to 9 of 9

Thread: Compilation error - SGI Prism

  1. Compilation error - SGI Prism

    Hi all!
    I want to interface a logitech quickcam express webcam on my SGI Prism
    server. I downloaded "spca5xx" driver. But I am getting error while
    compiling the driver.
    ----------------------------------------------------------------------------
    [swagat@godavari spca5xx-20041121]$ make
    grep: /lib/modules/2.4.21-sgi306rp13/build/include/linux/autoconf.h: No
    such file or directory
    grep: /lib/modules/2.4.21-sgi306rp13/build/include/linux/autoconf.h: No
    such file or directory
    Compiling drivers/usb/spcadecoder.c
    cc1: invalid option `preferred-stack-boundary=2'
    make: *** [drivers/usb/spcadecoder.o] Error 1

    [swagat@godavari spca5xx-20041121]$ rpm -qa|grep autoconf
    autoconf213-2.13-6
    autoconf-2.57-3

    $ uname -a
    Linux godavar 2.4.21-sgi306rp13 #1 SMP Wed Aug 3 14:14:32 PDT 2005 ia64
    ia64 ia64 GNU/Linux

    -----------------------------------------------------------------------
    My SGI prism is based on RHEL 3.

    It seems that some development files are not installed. But i am not
    able to figure out which files are missing. Where can I find the
    required development packages on the web?

    Please help.

    swagat


  2. Re: Compilation error - SGI Prism

    On Fri, 24 Feb 2006 03:07:30 -0800, swagat wrote:

    > Hi all!
    > I want to interface a logitech quickcam express webcam on my SGI Prism
    > server. I downloaded "spca5xx" driver. But I am getting error while
    > compiling the driver.
    > ----------------------------------------------------------------------------
    > [swagat@godavari spca5xx-20041121]$ make
    > grep: /lib/modules/2.4.21-sgi306rp13/build/include/linux/autoconf.h: No
    > such file or directory
    > grep: /lib/modules/2.4.21-sgi306rp13/build/include/linux/autoconf.h: No
    > such file or directory


    The make file is assuming a linux 2.6 style link in /lib/modules/
    /build pointing to /usr/src/linux. This isn't
    true in linux 2.4 based systems like SALE 3/PP 3. The makefile
    has two problems that can be hardcoded around as follows

    #KERNELDIR := /lib/modules/$(KERNEL_VERSION)/build
    KERNELDIR := /usr/src/linux

    and

    #KINCLUDE = /lib/modules/$(KERNEL_VERSION)/build/include
    KINCLUDE = /usr/src/linux/include

    While this solves the initial problem it still doesn't build
    [jhanson@tomahawk ~/spca5xx-20060202]$ make
    Compiling drivers/usb/spcadecoder.c
    cc1: invalid option `preferred-stack-boundary=2'
    make: *** [drivers/usb/spcadecoder.o] Error 1

    On an Altix running SLES9SP3/PP4SP3 it does compile with no
    modification needed

    jhanson@attica [~/spca5xx-20060202] % 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=/home/daisy60/jhanson/spca5xx-20060202 CC=cc modules
    make[1]: Entering directory `/usr/src/linux-2.6.5-7.246-obj/ia64/sn2'
    make -C ../../../linux-2.6.5-7.246 O=../linux-2.6.5-7.246-obj/ia64/sn2 modules
    CC [M] /home/daisy60/jhanson/spca5xx-20060202/drivers/usb/spca5xx.o
    /home/daisy60/jhanson/spca5xx-20060202/drivers/usb/spca5xx.c:150: warning: `bright' defined but not used
    /home/daisy60/jhanson/spca5xx-20060202/drivers/usb/spca5xx.c:151: warning: `contrast' defined but not used
    CC [M] /home/daisy60/jhanson/spca5xx-20060202/drivers/usb/spcadecoder.o
    LD [M] /home/daisy60/jhanson/spca5xx-20060202/spca5xx.o
    Building modules, stage 2.
    MODPOST
    CC /home/daisy60/jhanson/spca5xx-20060202/spca5xx.mod.o
    LD [M] /home/daisy60/jhanson/spca5xx-20060202/spca5xx.ko
    make[1]: Leaving directory `/usr/src/linux-2.6.5-7.246-obj/ia64/sn2'

    > Compiling drivers/usb/spcadecoder.c
    > cc1: invalid option `preferred-stack-boundary=2'
    > make: *** [drivers/usb/spcadecoder.o] Error 1
    >
    > [swagat@godavari spca5xx-20041121]$ rpm -qa|grep autoconf
    > autoconf213-2.13-6
    > autoconf-2.57-3
    >
    > $ uname -a
    > Linux godavar 2.4.21-sgi306rp13 #1 SMP Wed Aug 3 14:14:32 PDT 2005 ia64
    > ia64 ia64 GNU/Linux
    >
    > -----------------------------------------------------------------------
    > My SGI prism is based on RHEL 3.
    >
    > It seems that some development files are not installed. But i am not
    > able to figure out which files are missing. Where can I find the
    > required development packages on the web?


    You aren't missing anything. Either keep hacking at the build
    environment in the source, use the older source at
    http://mxhaard.free.fr/spca50x/Download/oldrelease/ (I tried
    the oldest spca5xx-20050116.tar.gz and that has the same problem)
    or upgrade to SLES9/PP4.
    --
    -----------------------------------------------------------------------
    Jeff Hanson - jhanson@sgi.com - Field Technical Analyst

    You can choose a ready guide in some celestial voice.
    If you choose not to decide, you still have made a choice.
    You can choose from phantom fears and kindness that can kill;
    I will choose a path that's clear
    I will choose freewill. - Lee/Lifeson/Peart


  3. Re: Compilation error - SGI Prism

    Hi Jeff!

    Thanks for your reply. I did try and faced the same problem. IS there
    any other driver that works for Logitech quickcam express for 2.4.x
    kernel. Right now, I am trying with qc-usb module. Any idea on this.

    I would get in touch with you soon if it works or if does not work ;-)


    regards,
    swagat


  4. Re: Compilation error - SGI Prism

    On Fri, 24 Feb 2006 20:45:01 -0800, swagat wrote:

    > Hi Jeff!
    >
    > Thanks for your reply. I did try and faced the same problem. IS there
    > any other driver that works for Logitech quickcam express for 2.4.x
    > kernel. Right now, I am trying with qc-usb module. Any idea on this.


    Not having the hardware I can't test. I would suspect the
    even older versions of the software might work. You could ask
    the developers because they claim it does work.

    What about upgrading to SLES9/PP4?
    --
    -----------------------------------------------------------------------
    Jeff Hanson - jhanson@sgi.com - Field Technical Analyst

    You can choose a ready guide in some celestial voice.
    If you choose not to decide, you still have made a choice.
    You can choose from phantom fears and kindness that can kill;
    I will choose a path that's clear
    I will choose freewill. - Lee/Lifeson/Peart


  5. Re: Compilation error - SGI Prism


    Jeff Hanson wrote:

    > On Fri, 24 Feb 2006 20:45:01 -0800, swagat wrote:
    >
    > > Hi Jeff!
    > >
    > > Thanks for your reply. I did try and faced the same problem. IS there
    > > any other driver that works for Logitech quickcam express for 2.4.x
    > > kernel. Right now, I am trying with qc-usb module. Any idea on this.

    >
    > Not having the hardware I can't test. I would suspect the
    > even older versions of the software might work. You could ask
    > the developers because they claim it does work.
    >
    > What about upgrading to SLES9/PP4?


    My SGI Prism workstation comes with RHEL 3 with SGI propack 3 sp 6
    built on it. what is SLES 9/PP4? Are you refering to RHEL 4 which
    probably has a 2.6.x kernel. But i am skeptic whether the given propack
    would work on new kernel or not. This machine is pretty new (not even
    one month old and has a heavy cost), My boss won't be pleased if the
    machine does not work ....


    Regards,
    swagat


  6. Re: Compilation error - SGI Prism

    swagat wrote:
    > Jeff Hanson wrote:
    >
    >> On Fri, 24 Feb 2006 20:45:01 -0800, swagat wrote:
    >>
    >>> Hi Jeff!
    >>>
    >>> Thanks for your reply. I did try and faced the same problem. IS there
    >>> any other driver that works for Logitech quickcam express for 2.4.x
    >>> kernel. Right now, I am trying with qc-usb module. Any idea on this.

    >> Not having the hardware I can't test. I would suspect the
    >> even older versions of the software might work. You could ask
    >> the developers because they claim it does work.
    >>
    >> What about upgrading to SLES9/PP4?

    >
    > My SGI Prism workstation comes with RHEL 3 with SGI propack 3 sp 6
    > built on it. what is SLES 9/PP4? Are you refering to RHEL 4 which
    > probably has a 2.6.x kernel. But i am skeptic whether the given propack
    > would work on new kernel or not. This machine is pretty new (not even
    > one month old and has a heavy cost), My boss won't be pleased if the
    > machine does not work ....
    >
    >
    > Regards,
    > swagat
    >

    I believe Jeff's talking about SuSE Enterprise...

  7. Re: Compilation error - SGI Prism

    On Tue, 28 Feb 2006 05:54:27 +0000, UNIX Museum wrote:

    > swagat wrote:
    >> Jeff Hanson wrote:


    >>> What about upgrading to SLES9/PP4?

    >>
    >> My SGI Prism workstation comes with RHEL 3 with SGI propack 3 sp 6
    >> built on it. what is SLES 9/PP4? Are you refering to RHEL 4 which
    >> probably has a 2.6.x kernel. But i am skeptic whether the given propack
    >> would work on new kernel or not. This machine is pretty new (not even
    >> one month old and has a heavy cost), My boss won't be pleased if the
    >> machine does not work ....
    >>
    >>
    >> Regards,
    >> swagat
    >>

    > I believe Jeff's talking about SuSE Enterprise...


    Right. Novell SuSE LINUX Enterprise Server -
    (http://www.novell.com/products/linuxenterpriseserver/) will run
    on your prism and the all the SGI specific modules were ported
    forwared to be called ProPack 4. You and your boss might want
    to discuss the plans for moving to SLES9 and ProPack 4. If
    you have more questions send me an email directly.
    --
    -----------------------------------------------------------------------
    Jeff Hanson - jhanson@sgi.com - Field Technical Analyst

    You can choose a ready guide in some celestial voice.
    If you choose not to decide, you still have made a choice.
    You can choose from phantom fears and kindness that can kill;
    I will choose a path that's clear
    I will choose freewill. - Lee/Lifeson/Peart


  8. Re: Compilation error - SGI Prism

    Dear Jeff,


    I tried again with spca5xx-20060101 module. This time I commented out
    the line containing

    CFLAGs += -mpreferred-stack-boundary=2

    in its Makefile and then compiled it. It did not give any error and
    produced the module "spca5xx.o"
    Then I do a "make install" and "modprobe spca5xx". Through its readme i
    came to know that "videodev" and "usb-ohci" and "usbcore" modules are
    also required along with it.

    $ /sbin/lsmod
    Module Size Used by Not tainted
    spca5xx 769700 0
    videodev 20000 1 [spca5xx]
    autofs4 35200 0 (autoclean) (unused)
    sg 77768 0 (autoclean) (unused)
    scsi_mod 170096 1 (autoclean) [sg]
    binfmt_misc 21432 1
    nls_iso8859-1 6000 1 (autoclean)
    nls_cp437 7680 1 (autoclean)
    keybdev 5928 0 (unused)
    mousedev 14608 1
    hid 50608 0 (unused)
    usb-ohci 57632 0 (unused)
    usbcore 177656 1 [spca5xx hid usb-ohci]

    Hence, all the modules are in place now. This process also creates a
    device node /dev/video0.
    Now I also install spcaview. it does not give any error during
    compilation. But when i run spcaview, i get following error:

    $ spcaview -d /dev/video0
    Spcaview version:0.41 date: 1:01:2005 (C) mxhaard@magic.fr
    Initializing SDL.
    SDL initialized.
    bpp 3 format 20
    Using video device /dev/video0.
    Initializing v4l.
    ERROR opening V4L interface
    : Permission denied

    But It WORKS perfectly with root permissions.

    $ ls -l /dev/video0
    lr-xr-xr-x 1 root root 10 Mar 2 12:42 /dev/video0 ->
    v4l/video0

    How do i give permission to the user? Chmod a+r does not seem to work?


    Thanks for your help and feedback.

    Regards,
    swagat


  9. Re: Compilation error - SGI Prism

    On Thu, 02 Mar 2006 11:42:44 -0800, swagat wrote:
    > $ spcaview -d /dev/video0
    > Spcaview version:0.41 date: 1:01:2005 (C) mxhaard@magic.fr
    > Initializing SDL.
    > SDL initialized.
    > bpp 3 format 20
    > Using video device /dev/video0.
    > Initializing v4l.
    > ERROR opening V4L interface
    > : Permission denied
    >
    > But It WORKS perfectly with root permissions.
    >
    > $ ls -l /dev/video0
    > lr-xr-xr-x 1 root root 10 Mar 2 12:42 /dev/video0 ->
    > v4l/video0
    >
    > How do i give permission to the user? Chmod a+r does not seem to work?


    Some things to try -
    1. Chmod a+w /dev/video
    2. Change the group of the device to something else (like video) and add regular
    users to that group as a secondary for those that want to use the camera.
    3. Look at the how the device is created in the source to see if you can change permissions
    4. Run as root all the time. (KIDDING).
    --
    -----------------------------------------------------------------------
    Jeff Hanson - jhanson@sgi.com - Field Technical Analyst

    You can choose a ready guide in some celestial voice.
    If you choose not to decide, you still have made a choice.
    You can choose from phantom fears and kindness that can kill;
    I will choose a path that's clear
    I will choose freewill. - Lee/Lifeson/Peart


+ Reply to Thread