[Chilli] Missing defines when compiling Coova Chilli 1.2.5 net.c on Backfire 10.03

David Bird david at coova.com
Thu Mar 24 12:00:46 UTC 2011


Hi,

Don't use configure --with-mmap 

And, you might upgrade to 1.2.6.

Cheers,
David

On Thu, 2011-03-24 at 13:33 +0200, Simon Perkins wrote:
> 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
> _______________________________________________
> Chilli mailing list
> Chilli at coova.org
> http://lists.coova.org/cgi-bin/mailman/listinfo/chilli




More information about the Chilli mailing list