Karmic Kernel Source throwing error when building v4l-dvb

Andrew Barbaccia andrew.barbaccia at gmail.com
Tue Oct 6 02:33:13 UTC 2009


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.

During the build I get errors like these:

make[2]: Entering directory `/usr/src/linux-headers-2.6.31-11-generic'
  CC [M]  /home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.o
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:21:17: error:
dma.h: No such file or directory
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:22:21: error:
csr1212.h: No such file or directory
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:23:23: error:
highlevel.h: No such file or directory
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:24:19: error:
hosts.h: No such file or directory
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:25:22: error:
ieee1394.h: No such file or directory
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:26:17: error:
iso.h: No such file or directory
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:27:21: error:
nodemgr.h: No such file or directory
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:37: warning:
'struct hpsb_iso' declared inside parameter list
/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
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c: In function
'rawiso_activity_cb':
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:53: error:
dereferencing pointer to incomplete type
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:54: error: implicit
declaration of function 'hpsb_iso_n_ready'
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:61: error:
dereferencing pointer to incomplete type
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:62: error: implicit
declaration of function 'dma_region_i'
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:62: error:
dereferencing pointer to incomplete type
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:62: error: expected
expression before 'unsigned'
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:63: warning:
assignment makes pointer from integer without a cast
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:64: error:
dereferencing pointer to incomplete type
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:68: error:
dereferencing pointer to incomplete type
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:82: error: implicit
declaration of function 'hpsb_iso_recv_release_packets'
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c: In function
'node_of':
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:87: error:
dereferencing pointer to incomplete type
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:87: warning: type
defaults to 'int' in declaration of '__mptr'
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:87: warning:
initialization from incompatible pointer type
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:87: error: invalid
use of undefined type 'struct unit_directory'
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c: In function
'node_lock':
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:92: error: implicit
declaration of function 'hpsb_node_lock'
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:92: error:
'EXTCODE_COMPARE_SWAP' undeclared (first use in this function)
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:92: error: (Each
undeclared identifier is reported only once
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:92: error: for each
function it appears in.)
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:93: error:
'quadlet_t' undeclared (first use in this function)
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:93: error: expected
')' before 'arg'
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c: In function
'node_read':
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:98: error: implicit
declaration of function 'hpsb_node_read'
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c: In function
'node_write':
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:103: error:
implicit declaration of function 'hpsb_node_write'
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c: In function
'start_iso':
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:114: error:
implicit declaration of function 'hpsb_iso_recv_init'
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:114: error:
dereferencing pointer to incomplete type
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:116: error:
'HPSB_ISO_DMA_DEFAULT' undeclared (first use in this function)
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:118: warning:
assignment makes pointer from integer without a cast
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:125: error:
implicit declaration of function 'hpsb_iso_recv_start'
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:128: error:
implicit declaration of function 'hpsb_iso_shutdown'
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c: In function
'stop_iso':
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:139: error:
implicit declaration of function 'hpsb_iso_stop'
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c: At top level:
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:154: warning:
'struct hpsb_host' declared inside parameter list
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c: In function
'fcp_request':
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:167: error:
dereferencing pointer to incomplete type
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:168: error:
dereferencing pointer to incomplete type
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c: In function
'node_probe':
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:182: error:
dereferencing pointer to incomplete type
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:182: warning: type
defaults to 'int' in declaration of '__mptr'
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:182: warning:
initialization from incompatible pointer type
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:182: error: invalid
use of undefined type 'struct unit_directory'
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:187: error:
dereferencing pointer to incomplete type
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:187: error:
'quadlet_t' undeclared (first use in this function)
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:188: error:
implicit declaration of function 'CSR1212_TEXTUAL_DESCRIPTOR_LEAF_DATA'
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:188: error:
dereferencing pointer to incomplete type
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:188: warning:
assignment makes pointer from integer without a cast
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c: At top level:
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:243: warning:
'struct unit_directory' declared inside parameter list
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c: In function
'node_update':
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:245: error:
dereferencing pointer to incomplete type
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c: At top level:
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:253: error:
variable 'fdtv_driver' has initializer but incomplete type
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:254: error: unknown
field 'name' specified in initializer
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:254: warning:
excess elements in struct initializer
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:254: warning: (near
initialization for 'fdtv_driver')
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:255: error: unknown
field 'update' specified in initializer
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:255: warning:
excess elements in struct initializer
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:255: warning: (near
initialization for 'fdtv_driver')
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:256: error: unknown
field 'driver' specified in initializer
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:256: error: extra
brace group at end of initializer
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:256: error: (near
initialization for 'fdtv_driver')
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:259: warning:
excess elements in struct initializer
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:259: warning: (near
initialization for 'fdtv_driver')
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:262: error:
variable 'fdtv_highlevel' has initializer but incomplete type
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:263: error: unknown
field 'name' specified in initializer
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:263: warning:
excess elements in struct initializer
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:263: warning: (near
initialization for 'fdtv_highlevel')
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:264: error: unknown
field 'fcp_request' specified in initializer
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:264: warning:
excess elements in struct initializer
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:264: warning: (near
initialization for 'fdtv_highlevel')
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c: In function
'fdtv_1394_init':
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:271: error:
implicit declaration of function 'hpsb_register_highlevel'
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:272: error: invalid
use of undefined type 'struct hpsb_protocol_driver'
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:273: error:
implicit declaration of function 'hpsb_register_protocol'
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:276: error:
implicit declaration of function 'hpsb_unregister_highlevel'
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c: In function
'fdtv_1394_exit':
/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.c:283: error:
implicit declaration of function 'hpsb_unregister_protocol'
make[3]: *** [/home/andrew/Technical/Source/v4l-dvb/v4l/firedtv-1394.o]
Error 1
make[2]: *** [_module_/home/andrew/Technical/Source/v4l-dvb/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.31-11-generic'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/andrew/Technical/Source/v4l-dvb/v4l'
make: *** [all] Error 2

Is there something missing from the linux-headers package? Did I configure
something incorrectly?

Thanks for all the help - karmic is coming out great thus far and I will
keep debugging on my end. :)

-ajb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-devel-discuss/attachments/20091005/8eb44de1/attachment.html>


More information about the Ubuntu-devel-discuss mailing list