[Openswan Users]
Error compiling OpenSwan 1.0.8 klips/utils (incomplete net/if.h)
Stephen Jones
hivemynd at hivemynd.net
Sun Dec 12 06:18:37 CET 2004
Hello!
I searched the list archives for the past 2 months (to cover the time
since the release of 1.0.8 and 2.4.28) to see if anyone else has
encountered this issue before, but did not find any hits.
I am attempting to update my kernel to 2.4.28 and OpenSwan to 1.0.8, but
when compiling the OpenSwan programs, the compiler complains with these
messages:
make[2]: Entering directory
`/usr/src/linux-2.4.28/openswan-1.0.8/klips/utils'
gcc -g -O3 -I../net/ipsec -I../../lib -g -O3 -Wall -Wpointer-arith
-Wcast-qual -Wstrict-prototypes
-Wbad-function-cast -DNAT_TRAVERSAL -c -o spi.o spi.c
In file included from spi.c:23:
/usr/include/net/if.h:138: error: field `ifru_addr' has incomplete type
/usr/include/net/if.h:139: error: field `ifru_dstaddr' has incomplete type
/usr/include/net/if.h:140: error: field `ifru_broadaddr' has incomplete type
/usr/include/net/if.h:141: error: field `ifru_netmask' has incomplete type
/usr/include/net/if.h:142: error: field `ifru_hwaddr' has incomplete type
make[2]: *** [spi.o] Error 1
make[2]: Leaving directory
`/usr/src/linux-2.4.28/openswan-1.0.8/klips/utils'
make[1]: *** [programs] Error 1
make[1]: Leaving directory `/usr/src/linux-2.4.28/openswan-1.0.8/klips'
make: *** [programs] Error 1
The version of if.h is 1.0.2 from 04/18/93, is there another, or a new
version of this header out there that OpenSwan 1.0.8 requires?
Thanks in advance for any info or nudges in the right direction to get
this resolved!
SJ
More information about the Users
mailing list