[Openswan Users] Error compiling OpenSwan 1.0.8 klips/utils (incomplete net/if.h) - RESOLVED

Stephen Jones hivemynd at hivemynd.net
Mon Dec 13 02:03:55 CET 2004

Hello OpenSwan list,

I have resolved the problem with the incomplete net/if.h header.  I 
compared my build machine with another installation of the same distro 
(Fedora Core 1) and there were noted discrepancies between the two 
machines.  I am not sure how the include files got overwritten with 
older versions of many of the headers, but this was the problem on the 
build machine.  OpenSwan 1.0.8 compiles just fine against a clean 2.4.28 
source tree on a machine with the proper includes.  Sorry for the 
bothersome posts.  I'll crawl back into my noobish lair now...

Stephen Jones wrote:

> 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
> _______________________________________________
> Users mailing list
> Users at openswan.org
> http://lists.openswan.org/mailman/listinfo/users

More information about the Users mailing list