Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Jan 2011 14:13:35 +1000
From:      Da Rock <freebsd-questions@herveybayaustralia.com.au>
To:        freebsd-questions@freebsd.org
Subject:   include file not found
Message-ID:  <4D3F9F6F.9020603@herveybayaustralia.com.au>

Next in thread | Raw E-Mail | Index | Archive | Help
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?



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?4D3F9F6F.9020603>