On this particular system, strongswan keeps breaking during compile.
every time it ends up a little like this:
Code: Select all
blah blah blah...
i686-pc-linux-gnu-gcc -DPACKAGE_NAME=\"strongSwan\" -DPACKAGE_TARNAME=\"strongswan\" -DPACKAGE_VERSION=\"4.1.11\" -DPACKAGE_STRING=\"strongSwan\ 4.1.11\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"strongswan\" -DVERSION=\"4.1.11\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DPKCS11_DEFAULT_LIB=\"/usr/lib/opensc-pkcs11.so\" -DDEV_RANDOM=\"/dev/random\" -DRESOLV_CONF=\"/etc/resolv.conf\" -DDEV_URANDOM=\"/dev/urandom\" -DIPSEC_ROUTING_TABLE=220 -DIPSEC_ROUTING_TABLE_PRIO=220 -DIPSEC_UID=112 -DIPSEC_GID=1018 -DLIBCURL=1 -DLIBLDAP=1 -DLIBXML=1 -DHAVE_DLFCN_H=1 -DYYTEXT_POINTER=1 -DHAVE_BACKTRACE=1 -DHAVE_GETIFADDRS=1 -DNO_CAPSET_DEFINED=1 -I. -I../include -I../../src/libstrongswan -I../../src/charon -I../../src/stroke -I/usr/include/libxml2 -rdynamic -DIPSEC_CONFDIR=\"/etc\" -DIPSEC_DIR=\"/usr/libexec/ipsec\" -DIPSEC_PIDDIR=\"/var/run\" -DIPSEC_EAPDIR=\"/usr/libexec/ipsec/plugins/eap\" -DIPSEC_BACKENDDIR=\"/usr/libexec/ipsec/plugins/backends\" -DIPSEC_INTERFACEDIR=\"/usr/libexec/ipsec/plugins/interfaces\" -DSIM_READER_LIB=\"/usr/libexec/ipsec/plugins/libcharon-eapsim-file.so\" -march=pentium3 -O2 -pipe -fomit-frame-pointer -MT socket-raw.o -MD -MP -MF .deps/socket-raw.Tpo -c -o socket-raw.o `test -f 'network/socket-raw.c' || echo './'`network/socket-raw.c
mv -f .deps/ike_auth_lifetime.Tpo .deps/ike_auth_lifetime.Po
/bin/sh ../../libtool --tag=CC --mode=link i686-pc-linux-gnu-gcc -rdynamic -DIPSEC_CONFDIR=\"/etc\" -DIPSEC_DIR=\"/usr/libexec/ipsec\" -DIPSEC_PIDDIR=\"/var/run\" -DIPSEC_EAPDIR=\"/usr/libexec/ipsec/plugins/eap\" -DIPSEC_BACKENDDIR=\"/usr/libexec/ipsec/plugins/backends\" -DIPSEC_INTERFACEDIR=\"/usr/libexec/ipsec/plugins/interfaces\" -DSIM_READER_LIB=\"/usr/libexec/ipsec/plugins/libcharon-eapsim-file.so\" -march=pentium3 -O2 -pipe -fomit-frame-pointer -module -o libcharon-local.la -rpath /usr/libexec/ipsec/plugins/backends local_backend.lo
mv -f .deps/task.Tpo .deps/task.Po
/bin/sh ../../libtool --tag=CC --mode=link i686-pc-linux-gnu-gcc -rdynamic -DIPSEC_CONFDIR=\"/etc\" -DIPSEC_DIR=\"/usr/libexec/ipsec\" -DIPSEC_PIDDIR=\"/var/run\" -DIPSEC_EAPDIR=\"/usr/libexec/ipsec/plugins/eap\" -DIPSEC_BACKENDDIR=\"/usr/libexec/ipsec/plugins/backends\" -DIPSEC_INTERFACEDIR=\"/usr/libexec/ipsec/plugins/interfaces\" -DSIM_READER_LIB=\"/usr/libexec/ipsec/plugins/libcharon-eapsim-file.so\" -march=pentium3 -O2 -pipe -fomit-frame-pointer -module -o libcharon-stroke.la -rpath /usr/libexec/ipsec/plugins/interfaces stroke_interface.lo
network/socket-raw.c: In function 'receiver':
network/socket-raw.c:269: error: dereferencing pointer to incomplete type
network/socket-raw.c: In function 'sender':
network/socket-raw.c:410: error: invalid application of 'sizeof' to incomplete type 'struct in6_pktinfo'
network/socket-raw.c:419: error: invalid application of 'sizeof' to incomplete type 'struct in6_pktinfo'
network/socket-raw.c:421: error: invalid application of 'sizeof' to incomplete type 'struct in6_pktinfo'
network/socket-raw.c:423: error: dereferencing pointer to incomplete type
make[2]: *** [socket-raw.o] Error 1
make[2]: *** Waiting for unfinished jobs....
i686-pc-linux-gnu-gcc -shared .libs/local_backend.o -march=pentium3 -Wl,-soname -Wl,libcharon-local.so.0 -o .libs/libcharon-local.so.0.0.0
i686-pc-linux-gnu-gcc -shared .libs/stroke_interface.o -march=pentium3 -Wl,-soname -Wl,libcharon-stroke.so.0 -o .libs/libcharon-stroke.so.0.0.0
(cd .libs && rm -f libcharon-local.so.0 && ln -s libcharon-local.so.0.0.0 libcharon-local.so.0)
(cd .libs && rm -f libcharon-local.so && ln -s libcharon-local.so.0.0.0 libcharon-local.so)
(cd .libs && rm -f libcharon-stroke.so.0 && ln -s libcharon-stroke.so.0.0.0 libcharon-stroke.so.0)
(cd .libs && rm -f libcharon-stroke.so && ln -s libcharon-stroke.so.0.0.0 libcharon-stroke.so)
creating libcharon-local.la
creating libcharon-stroke.la
(cd .libs && rm -f libcharon-local.la && ln -s ../libcharon-local.la libcharon-local.la)
(cd .libs && rm -f libcharon-stroke.la && ln -s ../libcharon-stroke.la libcharon-stroke.la)
make[2]: Leaving directory `/var/tmp/portage/net-misc/strongswan-4.1.11/work/strongswan-4.1.11/src/charon'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-misc/strongswan-4.1.11/work/strongswan-4.1.11/src'
make: *** [all-recursive] Error 1
*
* ERROR: net-misc/strongswan-4.1.11 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 2813: Called die
* The specific snippet of code:
* emake || die "emake failed"
* The die message:
* emake failed
Cheers.
-Chris

