I'm trying to build the v4l-dvb tree. I believe my build environment is setup correctly as I have installed build-essential, linux-headers and linux-source. I have extracted the source, linked to /usr/src/linux and did the whole make oldconfig thing.<br>
<br>During the build I get errors like these:<br><br>make[2]: Entering directory `/usr/src/linux-headers-2.6.31-11-generic'<br> CC [M] /home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.o<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:21:17: error: dma.h: No such file or directory<br>
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:22:21: error: csr1212.h: No such file or directory<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:23:23: error: highlevel.h: No such file or directory<br>
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:24:19: error: hosts.h: No such file or directory<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:25:22: error: ieee1394.h: No such file or directory<br>
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:26:17: error: iso.h: No such file or directory<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:27:21: error: nodemgr.h: No such file or directory<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:37: warning: 'struct hpsb_iso' declared inside parameter list<br>
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:37: warning: its scope is only this definition or declaration, which is probably not what you want<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c: In function 'rawiso_activity_cb':<br>
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:53: error: dereferencing pointer to incomplete type<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:54: error: implicit declaration of function 'hpsb_iso_n_ready'<br>
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:61: error: dereferencing pointer to incomplete type<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:62: error: implicit declaration of function 'dma_region_i'<br>
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:62: error: dereferencing pointer to incomplete type<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:62: error: expected expression before 'unsigned'<br>
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:63: warning: assignment makes pointer from integer without a cast<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:64: error: dereferencing pointer to incomplete type<br>
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:68: error: dereferencing pointer to incomplete type<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:82: error: implicit declaration of function 'hpsb_iso_recv_release_packets'<br>
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c: In function 'node_of':<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:87: error: dereferencing pointer to incomplete type<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:87: warning: type defaults to 'int' in declaration of '__mptr'<br>
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:87: warning: initialization from incompatible pointer type<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:87: error: invalid use of undefined type 'struct unit_directory'<br>
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c: In function 'node_lock':<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:92: error: implicit declaration of function 'hpsb_node_lock'<br>
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:92: error: 'EXTCODE_COMPARE_SWAP' undeclared (first use in this function)<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:92: error: (Each undeclared identifier is reported only once<br>
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:92: error: for each function it appears in.)<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:93: error: 'quadlet_t' undeclared (first use in this function)<br>
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:93: error: expected ')' before 'arg'<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c: In function 'node_read':<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:98: error: implicit declaration of function 'hpsb_node_read'<br>
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c: In function 'node_write':<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:103: error: implicit declaration of function 'hpsb_node_write'<br>
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c: In function 'start_iso':<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:114: error: implicit declaration of function 'hpsb_iso_recv_init'<br>
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:114: error: dereferencing pointer to incomplete type<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:116: error: 'HPSB_ISO_DMA_DEFAULT' undeclared (first use in this function)<br>
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:118: warning: assignment makes pointer from integer without a cast<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:125: error: implicit declaration of function 'hpsb_iso_recv_start'<br>
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:128: error: implicit declaration of function 'hpsb_iso_shutdown'<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c: In function 'stop_iso':<br>
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:139: error: implicit declaration of function 'hpsb_iso_stop'<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c: At top level:<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:154: warning: 'struct hpsb_host' declared inside parameter list<br>
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c: In function 'fcp_request':<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:167: error: dereferencing pointer to incomplete type<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:168: error: dereferencing pointer to incomplete type<br>
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c: In function 'node_probe':<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:182: error: dereferencing pointer to incomplete type<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:182: warning: type defaults to 'int' in declaration of '__mptr'<br>
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:182: warning: initialization from incompatible pointer type<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:182: error: invalid use of undefined type 'struct unit_directory'<br>
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:187: error: dereferencing pointer to incomplete type<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:187: error: 'quadlet_t' undeclared (first use in this function)<br>
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:188: error: implicit declaration of function 'CSR1212_TEXTUAL_DESCRIPTOR_LEAF_DATA'<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:188: error: dereferencing pointer to incomplete type<br>
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:188: warning: assignment makes pointer from integer without a cast<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c: At top level:<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:243: warning: 'struct unit_directory' declared inside parameter list<br>
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c: In function 'node_update':<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:245: error: dereferencing pointer to incomplete type<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c: At top level:<br>
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:253: error: variable 'fdtv_driver' has initializer but incomplete type<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:254: error: unknown field 'name' specified in initializer<br>
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:254: warning: excess elements in struct initializer<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:254: warning: (near initialization for 'fdtv_driver')<br>
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:255: error: unknown field 'update' specified in initializer<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:255: warning: excess elements in struct initializer<br>
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:255: warning: (near initialization for 'fdtv_driver')<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:256: error: unknown field 'driver' specified in initializer<br>
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:256: error: extra brace group at end of initializer<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:256: error: (near initialization for 'fdtv_driver')<br>
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:259: warning: excess elements in struct initializer<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:259: warning: (near initialization for 'fdtv_driver')<br>
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:262: error: variable 'fdtv_highlevel' has initializer but incomplete type<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:263: error: unknown field 'name' specified in initializer<br>
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:263: warning: excess elements in struct initializer<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:263: warning: (near initialization for 'fdtv_highlevel')<br>
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:264: error: unknown field 'fcp_request' specified in initializer<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:264: warning: excess elements in struct initializer<br>
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:264: warning: (near initialization for 'fdtv_highlevel')<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c: In function 'fdtv_1394_init':<br>
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:271: error: implicit declaration of function 'hpsb_register_highlevel'<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:272: error: invalid use of undefined type 'struct hpsb_protocol_driver'<br>
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:273: error: implicit declaration of function 'hpsb_register_protocol'<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:276: error: implicit declaration of function 'hpsb_unregister_highlevel'<br>
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c: In function 'fdtv_1394_exit':<br>/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:283: error: implicit declaration of function 'hpsb_unregister_protocol'<br>
make[3]: *** [/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.o] Error 1<br>make[2]: *** [_module_/home/andrew/Technical/Source/v4l-dvb/v4l] Error 2<br>make[2]: Leaving directory `/usr/src/linux-headers-2.6.31-11-generic'<br>
make[1]: *** [default] Error 2<br>make[1]: Leaving directory `/home/andrew/Technical/Source/v4l-dvb/v4l'<br>make: *** [all] Error 2<br><br>Is there something missing from the linux-headers package? Did I configure something incorrectly?<br>
<br>Thanks for all the help - karmic is coming out great thus far and I will keep debugging on my end. :)<br><br>-ajb<br>