Re: Compilation error - SGI Prism
- From: Jeff Hanson <jhanson@xxxxxxx>
- Date: Fri, 24 Feb 2006 14:15:13 GMT
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/
<kernel>/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@xxxxxxx - 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
.
- Follow-Ups:
- Re: Compilation error - SGI Prism
- From: swagat
- Re: Compilation error - SGI Prism
- References:
- Compilation error - SGI Prism
- From: swagat
- Compilation error - SGI Prism
- Prev by Date: Compilation error - SGI Prism
- Next by Date: Re: Compilation error - SGI Prism
- Previous by thread: Compilation error - SGI Prism
- Next by thread: Re: Compilation error - SGI Prism
- Index(es):
Relevant Pages
|