Menu

#2 Compile error @ nw802.o

open
nobody
None
5
2003-08-17
2003-08-17
Anonymous
No

Hi !!!!

I have a big problem with the compilation on my Redhat9
Server.
gcc version 3.2.2
kernel 2.4.20-19.9
newest Kernel headers (usbvideo.h &.c)

I’ve already compiled the usbvideo.o file but now I can’t
compile the nw802.o.

If u know whats wrong plz let me know :o)
scubamaxx@gmx.net

This is the make shell output:
-----------------------------------
[Linux]<~/Webcam/nw802-2.4-0.0.2>>> make
gcc -O3 -D__KERNEL__ -DMODULE -Wall -
DMODVERSIONS -nostdinc -I /usr/src/linux-2
.4.20-19.9/include/ -I /usr/lib/gcc-lib/i386-redhat-
linux/3.2.2/include/ -includ
e /usr/src/linux-2.4.20-
19.9/include/linux/modversions.h -c -o nw802.o nw802.c
nw802.c:89: parse error before "RingQueue_t"
nw802.c:89: warning: no semicolon at end of struct or
union
nw802.c:90: warning: type defaults to `int' in
declaration of `rqBitReader_t'
nw802.c:90: warning: data definition has no type or
storage class
nw802.c:176: parse error before '*' token
nw802.c:176: warning: type defaults to `int' in
declaration of `nw802_cams'
nw802.c:176: warning: data definition has no type or
storage class
nw802.c:201: parse error before '*' token
nw802.c: In function `rqBR_init':
nw802.c:203: `br' undeclared (first use in this function)
nw802.c:203: (Each undeclared identifier is reported
only once
nw802.c:203: for each function it appears in.)
nw802.c:204: `rq' undeclared (first use in this function)
nw802.c: At top level:
nw802.c:212: parse error before '*' token
nw802.c: In function `rqBR_readBit':
nw802.c:215: `br' undeclared (first use in this function)
nw802.c: At top level:
nw802.c:228: parse error before '*' token
nw802.c: In function `rqBR_readBits':
nw802.c:231: `br' undeclared (first use in this function)
nw802.c:231: `n' undeclared (first use in this function)
nw802.c: At top level:
nw802.c:251: parse error before '*' token
nw802.c: In function `jpgl_readAC':
nw802.c:278: `br' undeclared (first use in this function)
nw802.c:294: `run' undeclared (first use in this function)
nw802.c:295: `amp' undeclared (first use in this
function)
nw802.c: At top level:
nw802.c:339: parse error before '*' token
nw802.c: In function `jpgl_decodeBlock':
nw802.c:349: `br' undeclared (first use in this function)
nw802.c:359: `old_dc' undeclared (first use in this
function)
nw802.c:387: `block' undeclared (first use in this
function)
nw802.c: At top level:
nw802.c:421: parse error before '*' token
nw802.c: In function `jpgl_processFrame':
nw802.c:423: parse error before "br"
nw802.c:445: `br' undeclared (first use in this function)
nw802.c:445: `rq' undeclared (first use in this function)
nw802.c:488: `framebuffer' undeclared (first use in this
function)
nw802.c: At top level:
nw802.c:506: parse error before '*' token
nw802.c: In function `jpgl_findHeader':
nw802.c:509: `ofs' undeclared (first use in this function)
nw802.c:522: `rq' undeclared (first use in this function)
nw802.c: At top level:
nw802.c:585: parse error before '*' token
nw802.c: In function `nw802_vendor_send':
nw802.c:589: `vu' undeclared (first use in this function)
nw802.c:591: `uvd' undeclared (first use in this
function)
nw802.c: At top level:
nw802.c:608: parse error before '*' token
nw802.c: In function `nw802_init_camera':
nw802.c:631: `uvd' undeclared (first use in this
function)
nw802.c: At top level:
nw802.c:653: parse error before '*' token
nw802.c: In function `nw802_configure_video':
nw802.c:655: `uvd' undeclared (first use in this
function)
nw802.c: At top level:
nw802.c:695: parse error before '*' token
nw802.c: In function `nw802_processIsocData':
nw802.c:707: `uvd' undeclared (first use in this
function)
nw802.c:727: `frame' undeclared (first use in this
function)
nw802.c: At top level:
nw802.c:741: parse error before '*' token
nw802.c:751: parse error before '*' token
nw802.c: In function `nw802_videoStart':
nw802.c:756: `uvd' undeclared (first use in this
function)
nw802.c: At top level:
nw802.c:759: parse error before '*' token
nw802.c: In function `nw802_probe':
nw802.c:770: `uvd_t' undeclared (first use in this
function)
nw802.c:770: `uvd' undeclared (first use in this
function)
nw802.c:876: warning: passing arg 1 of
`usbvideo_AllocateDevice' from incompatible pointer type
nw802.c: In function `nw802_init':
nw802.c:933: `usbvideo_cb_t' undeclared (first use in
this function)
nw802.c:933: parse error before "cbTbl"
nw802.c:934: `cbTbl' undeclared (first use in this
function)
nw802.c:948: warning: passing arg 1 of
`usbvideo_register' from incompatible pointer type
nw802.c:948: too few arguments to function
`usbvideo_register'
nw802.c: In function `nw802_exit':
nw802.c:962: warning: passing arg 1 of
`usbvideo_Deregister' from incompatible pointer type
make: *** [nw802.o] Fehler 1

This is a copy of my Makefile:
-------------------------------------
# GCC stuff
GCCLIB= /usr/lib/gcc-lib/i386-redhat-linux/3.2.2
INCLUDES=-I /usr/src/linux-2.4.20-19.9/include/ -I
${GCCLIB}/include/ -include /usr/src/linux-2.4.20-
19.9/include/linux/modversions.h
CFLAGS=-O3 -D__KERNEL__ -DMODULE -Wall -
DMODVERSIONS -nostdinc # -march=athlon -
mcpu=athlon
CC=gcc

OBJ=usbvideo.o nw802.o

# Build rules

all: $(OBJ)

usbvideo.o: usbvideo.c usbvideo.h
$(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $<

nw802.o: nw802.c usbvideo.o
$(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $<

clean:
rm -f *.so *.o *~ *.swp $(OBJ)

Discussion


Log in to post a comment.