[Chilli] Missing defines when compiling Coova Chilli 1.2.5 net.c on Backfire 10.03
Simon Perkins
simon.perkins at gmail.com
Thu Mar 24 11:33:22 UTC 2011
Hi all
I'm trying to compile Coova Chilli 1.2.5 on Backfire 10.03. I encounter the
following errors when compiling net.c:
net.c: In function `net_open_eth':
net.c:982: warning: unused variable `mr'
net.c:984: warning: unused variable `option'
net.c: In function `rx_ring':
net.c:1331: error: dereferencing pointer to incomplete type
net.c:1337: error: dereferencing pointer to incomplete type
net.c:1352: error: dereferencing pointer to incomplete type
net.c:1352: error: dereferencing pointer to incomplete type
net.c:1354: error: dereferencing pointer to incomplete type
net.c:1354: error: dereferencing pointer to incomplete type
net.c:1356: error: dereferencing pointer to incomplete type
net.c:1359: error: dereferencing pointer to incomplete type
net.c: In function `tx_ring':
net.c:1405: error: dereferencing pointer to incomplete type
net.c:1406: error: dereferencing pointer to incomplete type
net.c:1423: error: dereferencing pointer to incomplete type
net.c:1429: error: dereferencing pointer to incomplete type
net.c:1431: error: dereferencing pointer to incomplete type
net.c:1438: error: dereferencing pointer to incomplete type
net.c: In function `setup_rings':
net.c:1588: error: `TPACKET_V2' undeclared (first use in this function)
net.c:1588: error: (Each undeclared identifier is reported only once
net.c:1588: error: for each function it appears in.)
net.c:1589: error: `PACKET_VERSION' undeclared (first use in this function)
net.c:1598: error: `PACKET_HDRLEN' undeclared (first use in this function)
net.c:1570: warning: unused variable `unit'
net.c: In function `set_buffer':
net.c:1659: warning: unused variable `unit'
net.c: At top level:
net.c:1679: warning: 'setup_filter' defined but not used
This issue has cropped up previously in this mailing list, but I couldn't
find a response to it, so I've decided to ask about it again. The defines
TPACKET_V2, and PACKET_HDRLEN are defined in
linux-2.4.37.9/include/linux/if_packet.h. So I'm guessing there might be a
problem with my .config. However, I can't find any definition of
PACKET_VERSION in the 2.4 kernel that ships with Backfire 10.03. In fact, a
google search for PACKET_VERSION indicates that it is present in versions of
if_packet.h in the linux 2.6.x kernels. Does Coova Chilli depend on the
2.6.x kernel versions now? Or is it possible that I am setting up my config
file incorrectly?
thanks!
Simon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.coova.org/pipermail/chilli/attachments/20110324/08e72267/attachment.html>
More information about the Chilli
mailing list