[root@vaio driver_src]# make -C /lib/modules/`uname -r`/build M=`pwd`
make: Entering directory `/usr/src/kernels/2.6.32.10-90.fc12.i686.PAE'
CC [M] /home/aperez/Downloads/s60/smartcam-1.4.0/driver_src/smartcam.o
/home/aperez/Downloads/s60/smartcam-1.4.0/driver_src/smartcam.c: In function ‘vidioc_s_fmt_cap’:
/home/aperez/Downloads/s60/smartcam-1.4.0/driver_src/smartcam.c:174: error: dereferencing pointer to incomplete type
/home/aperez/Downloads/s60/smartcam-1.4.0/driver_src/smartcam.c: In function ‘smartcam_write’:
/home/aperez/Downloads/s60/smartcam-1.4.0/driver_src/smartcam.c:533: error: ‘TASK_INTERRUPTIBLE’ undeclared (first use in this function)
/home/aperez/Downloads/s60/smartcam-1.4.0/driver_src/smartcam.c:533: error: (Each undeclared identifier is reported only once
/home/aperez/Downloads/s60/smartcam-1.4.0/driver_src/smartcam.c:533: error: for each function it appears in.)
/home/aperez/Downloads/s60/smartcam-1.4.0/driver_src/smartcam.c: At top level:
/home/aperez/Downloads/s60/smartcam-1.4.0/driver_src/smartcam.c:563: warning: initialization from incompatible pointer type
/home/aperez/Downloads/s60/smartcam-1.4.0/driver_src/smartcam.c:599: error: ‘VID_TYPE_CAPTURE’ undeclared here (not in a function)
/home/aperez/Downloads/s60/smartcam-1.4.0/driver_src/smartcam.c:601: warning: initialization from incompatible pointer type
make[1]: *** [/home/aperez/Downloads/s60/smartcam-1.4.0/driver_src/smartcam.o] Error 1
make: *** [_module_/home/aperez/Downloads/s60/smartcam-1.4.0/driver_src] Error 2
make: Leaving directory `/usr/src/kernels/2.6.32.10-90.fc12.i686.PAE'
with or without commented on line 599, stil can make it compile.
Added some patch and now compile on that kernel
Same here on Linux Ubuntu 10.04 on 2.6.32-25-generic
See the output:
:~/download/e71/smartcam-1.4.0/driver_src$ LC_ALL=POSIX make -C /lib/modules/`uname -r`/build M=`pwd`
make: Entering directory `/usr/src/linux-headers-2.6.32-25-generic'
CC [M] /home/fantomas/download/e71/smartcam-1.4.0/driver_src/smartcam.o
/home/fantomas/download/e71/smartcam-1.4.0/driver_src/smartcam.c: In function 'vidioc_s_fmt_cap':
/home/fantomas/download/e71/smartcam-1.4.0/driver_src/smartcam.c:174: error: dereferencing pointer to incomplete type
/home/fantomas/download/e71/smartcam-1.4.0/driver_src/smartcam.c: In function 'smartcam_write':
/home/fantomas/download/e71/smartcam-1.4.0/driver_src/smartcam.c:533: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)
/home/fantomas/download/e71/smartcam-1.4.0/driver_src/smartcam.c:533: error: (Each undeclared identifier is reported only once
/home/fantomas/download/e71/smartcam-1.4.0/driver_src/smartcam.c:533: error: for each function it appears in.)
/home/fantomas/download/e71/smartcam-1.4.0/driver_src/smartcam.c: At top level:
/home/fantomas/download/e71/smartcam-1.4.0/driver_src/smartcam.c:563: warning: initialization from incompatible pointer type
/home/fantomas/download/e71/smartcam-1.4.0/driver_src/smartcam.c:599: error: 'VID_TYPE_CAPTURE' undeclared here (not in a function)
/home/fantomas/download/e71/smartcam-1.4.0/driver_src/smartcam.c:601: warning: initialization from incompatible pointer type
make[1]: *** [/home/fantomas/download/e71/smartcam-1.4.0/driver_src/smartcam.o] Error 1
make: *** [_module_/home/fantomas/download/e71/smartcam-1.4.0/driver_src] Error 2
make: Leaving directory `/usr/src/linux-headers-2.6.32-25-generic'
Dear deion!
Would you provide a patch to make it work?
Thanks.
Issue persists on Fedora 14
[alakazam@LG-TP driver_src]$ make -C /lib/modules/`uname -r`/build M=`pwd`
make: Entering directory `/usr/src/kernels/2.6.35.11-83.fc14.i686'
CC [M] /home/alakazam/smartcam-1.4.0/driver_src/smartcam.o
/home/alakazam/smartcam-1.4.0/driver_src/smartcam.c: In function ‘vidioc_s_fmt_cap’:
/home/alakazam/smartcam-1.4.0/driver_src/smartcam.c:174:9: error: dereferencing pointer to incomplete type
/home/alakazam/smartcam-1.4.0/driver_src/smartcam.c: In function ‘smartcam_write’:
/home/alakazam/smartcam-1.4.0/driver_src/smartcam.c:533:2: error: ‘TASK_INTERRUPTIBLE’ undeclared (first use in this function)
/home/alakazam/smartcam-1.4.0/driver_src/smartcam.c:533:2: note: each undeclared identifier is reported only once for each function it appears in
/home/alakazam/smartcam-1.4.0/driver_src/smartcam.c: At top level:
/home/alakazam/smartcam-1.4.0/driver_src/smartcam.c:563:2: warning: initialization from incompatible pointer type
/home/alakazam/smartcam-1.4.0/driver_src/smartcam.c:599:15: error: ‘VID_TYPE_CAPTURE’ undeclared here (not in a function)
/home/alakazam/smartcam-1.4.0/driver_src/smartcam.c:601:2: warning: initialization from incompatible pointer type
make[1]: *** [/home/alakazam/smartcam-1.4.0/driver_src/smartcam.o] Error 1
make: *** [_module_/home/alakazam/smartcam-1.4.0/driver_src] Error 2
make: Leaving directory `/usr/src/kernels/2.6.35.11-83.fc14.i686'
Any development on this?