[cpia] Compilation failure in 2.4.0-test11 / RH7

Ben Johnson bdjohns1@uiuc.edu
Sun, 26 Nov 2000 23:22:11 -0600


Hello,

I just got an Ezonics USB cam (the one that was free after rebate at
Best Buy over the Thanksgiving weekend), and I'm trying to get it
working with the CPiA driver.  I tried compiling it with the driver in
the kernel (which reports itself as being v0.7.4, I think).  

This didn't work - I could modprobe the drivers (cpia, videodev,
cpia_usb), but it didn't tell that it detected a camera, and gqcam
said it couldn't find a device.  I do have a /dev/video, linked to
/dev/video0 (81,1) with approrpiate ownership.

Next, I
downloaded v1.1 from SourceForge.  I changed the makefile to use kgcc
(egcs 1.1.2) like the rest of the kernel, and got the following:

kgcc -c -D_CPIA_DEBUG_ -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer  -pipe -fno-strength-reduce -m486 -malign-loops=2
-malign-jumps=2 -malign-functions=2 -DCPU=686 -fomit-frame-pointer
-fno-strength-reduce -I. -I/usr/src/linux/include -D__KERNEL__ -DMODULE
-DCONFIG_VIDEO_CPIA_MODULE -DCONFIG_VIDEO_CPIA_PP_MODULE
-DCONFIG_VIDEO_CPIA_PP_DMA -DCONFIG_VIDEO_CPIA_USB_MODULE cpia.c
cpia.c: In function `uvirt_to_kva':
cpia.c:272: invalid operands to binary |
cpia.c: In function `rvmalloc':
cpia.c:313: warning: implicit declaration of function `MAP_NR'
cpia.c:313: invalid type argument of `->'
cpia.c: In function `rvfree':
cpia.c:341: invalid type argument of `->'
{standard input}: Assembler messages:
{standard input}:8: Warning: Ignoring changed section attributes for .modinfo
make: *** [cpia.o] Error 1

I saw a post in the October archive with this same error, but I never
saw a solution to the problem.  Any help?  Please CC responses to me,
since I'm not subscribed to the list...

--ben

-- 
Ben Johnson
email: bdjohns1@uiuc.edu
web: http://www.uiuc.edu/~bdjohns1/