include file not found
Da Rock
freebsd-questions at herveybayaustralia.com.au
Wed Jan 26 04:22:41 UTC 2011
On 01/26/11 14:13, Da Rock wrote:
> Ok, I'm here again... next question (same quest).
>
> FWIW this is about getting a l2tp vpn working for android connections.
> I have come across a carrier grade system called l2tpns which I'm
> trying to build to see if it will work.
>
> I've built libcli (but without clitest) and it has installed the
> header files under /usr/local/include. When I build l2tpns I get:
>
> gcc -Wall -Wformat-security -Wno-format-zero-length -g -O3 -I.
> -DLIBDIR='"/lib/l2tpns"' -DETCDIR='"/etc/l2tpns"' -DSTATISTICS
> -DSTAT_CALLS -DRINGBUFFER -DHAVE_EPOLL -DBGP -c -o arp.o arp.c
> In file included from arp.c:8:
> /usr/include/net/if_arp.h:88: error: field 'arp_pa' has incomplete type
> /usr/include/net/if_arp.h:89: error: field 'arp_ha' has incomplete type
> In file included from arp.c:9:
> /usr/include/netinet/if_ether.h:96: error: field 'sin_addr' has
> incomplete type
> /usr/include/netinet/if_ether.h:97: error: field 'sin_srcaddr' has
> incomplete type
> In file included from arp.c:11:
> l2tpns.h:15:20: error: libcli.h: No such file or directory
> In file included from arp.c:11:
> l2tpns.h:772: warning: 'struct cli_def' declared inside parameter list
> l2tpns.h:772: warning: its scope is only this definition or
> declaration, which is probably not what you want
> l2tpns.h:773: warning: 'struct cli_def' declared inside parameter list
> l2tpns.h:774: warning: 'struct cli_def' declared inside parameter list
> l2tpns.h:797: warning: 'struct cli_def' declared inside parameter list
> arp.c:20: error: 'ETH_ALEN' undeclared here (not in a function)
> arp.c: In function 'sendarp':
> arp.c:29: error: storage size of 'sll' isn't known
> arp.c:54: error: 'PF_PACKET' undeclared (first use in this function)
> arp.c:54: error: (Each undeclared identifier is reported only once
> arp.c:54: error: for each function it appears in.)
> arp.c:54: error: 'ETH_P_RARP' undeclared (first use in this function)
> arp.c:57: error: 'AF_PACKET' undeclared (first use in this function)
> arp.c:29: warning: unused variable 'sll'
> gmake: *** [arp.o] Error 1
>
> Incidentally I changed the include in arp.c from linux/if_packet.h to
> netinet/if_ether.h. My problem lies in the file not found error for
> libcli.h, though. ls /usr/local/include shows libcli.h there as
> expected with the same permissions as the other header files there.
>
> Any ideas?
Sorry- scratch that. My output now looks like:
gcc -Wall -Wformat-security -Wno-format-zero-length -g -O3 -I.
-I/usr/include -I/usr/local/include -DLIBDIR='"/lib/l2tpns"'
-DETCDIR='"/etc/l2tpns"' -DSTATISTICS -DSTAT_CALLS -DRINGBUFFER
-DHAVE_EPOLL -DBGP -c -o arp.o arp.c
In file included from arp.c:8:
/usr/include/net/if_arp.h:88: error: field 'arp_pa' has incomplete type
/usr/include/net/if_arp.h:89: error: field 'arp_ha' has incomplete type
In file included from arp.c:9:
/usr/include/netinet/if_ether.h:96: error: field 'sin_addr' has
incomplete type
/usr/include/netinet/if_ether.h:97: error: field 'sin_srcaddr' has
incomplete type
arp.c:20: error: 'ETH_ALEN' undeclared here (not in a function)
arp.c: In function 'sendarp':
arp.c:29: error: storage size of 'sll' isn't known
arp.c:54: error: 'PF_PACKET' undeclared (first use in this function)
arp.c:54: error: (Each undeclared identifier is reported only once
arp.c:54: error: for each function it appears in.)
arp.c:54: error: 'ETH_P_RARP' undeclared (first use in this function)
arp.c:57: error: 'AF_PACKET' undeclared (first use in this function)
arp.c:29: warning: unused variable 'sll'
gmake: *** [arp.o] Error 1
I'll try and work it out on my own, but if anyone wants to chip it'd be
very welcome. Sorry for the cruft :)
More information about the freebsd-questions
mailing list