[strongSwan] Centos6.5, building SS 5.1.1 or 5.1.2dr2 fails
Kimmo K
koippa at gmail.com
Wed Dec 18 20:47:33 CET 2013
Hi Martin
Did not help, is there any other patches for this issue?
Regards,
Kimmo
Script started on Wed 18 Dec 2013 09:37:45 PM EET
]0;yes at build-server:~/rpm/SOURCES/tmp/strongswan-5.1.1[?1034h[yes at build-server
strongswan-5.1.1]$ cat ../../strongswan-centos6.patch
--- a/src/libstrongswan/networking/tun_device.c
+++ b/src/libstrongswan/networking/tun_device.c
@@ -46,6 +46,7 @@ tun_device_t *tun_device_create(const char *name_tmpl)
#include <netinet/in_var.h>
#include <sys/kern_control.h>
#elif defined(__linux__)
+#include <linux/types.h>
#include <linux/if_tun.h>
#else
#include <net/if_tun.h>
]0;yes at build-server:~/rpm/SOURCES/tmp/strongswan-5.1.1[yes at build-server
strongswan-5.1.1]$ patch -p1 <../../strongswan-centos6.patch
patching file src/libstrongswan/networking/tun_device.c
]0;yes at build-server:~/rpm/SOURCES/tmp/strongswan-5.1.1[yes at build-server
strongswan-5.1.1]$ ./configure --disable-static
--enable-openssl --enable-xauth-generic --enable-xauth-pam
--enable-xauth-eap --enable-xauth-noau
th --enable-curl --enable-ldap --enable-gcrypt
--enable-mysql --enable-attr-sql --enable-sql
--enable-sqlite --enable-dhcp --enable-eap-sim --enab
le-eap-sim-file --enable-eap-simaka-sql --enable-eap-md5
--enable-eap-tls --enable-eap-ttls --enable-eap-identity
--enable-eap-radius --enable-eap-peap --
enable-eap-mschapv2 --enable-eap-gtc --enable-eap-aka
--enable-eap-aka-3gpp2 --enable-eap-dynamic --with-user=ipsec
--with-group=ipsec --with-capabilities=lib
cap --enable-coupling --enable-duplicheck --enable-led
--enable-ipseckey --enable-tnc-ifmap --enable-tnc-pdp
--enable-tnc-imc --enable-tnc-imv --enabl
e-tnccs-11 --enable-tnccs-20 --enable-tnccs-dynamic
--enable-unity --enable-ha --enable-whitelist
--enable-lookip --enable-certexpire --enable-error-notif
y --enable-systime-fix --enable-coupling --enable-radattr
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
...
config.status: executing libtool commands
strongSwan will be built with the following plugins
-----------------------------------------------------
libstrongswan: curl ldap mysql sqlite aes des rc2 sha1 sha2 md5 random
nonce x509 revocation constraints pubkey pkcs1 pkcs7 pkcs8 pkcs12 pgp
dnskey sshkey pem openssl gcrypt fips-prf gmp xcbc cmac hmac
libcharon: ipseckey socket-default stroke sql updown eap-identity
eap-sim eap-sim-file eap-aka eap-aka-3gpp2 eap-simaka-sql eap-md5
eap-gtc eap-mschapv2 eap-dynamic eap-radius eap-tls eap-ttls eap-peap
xauth-generic xauth-eap xauth-pam xauth-noauth tnc-ifmap tnc-pdp dhcp
ha whitelist lookip error-notify certexpire systime-fix led duplicheck
coupling radattr unity
libhydra: attr attr-sql kernel-netlink resolve
libtnccs: tnc-imc tnc-imv tnc-tnccs tnccs-20 tnccs-11 tnccs-dynamic
]0;yes at build-server:~/rpm/SOURCES/tmp/strongswan-5.1.1[yes at build-server
strongswan-5.1.1]$ make
make all-recursive
make[1]: Entering directory `/home/builder/rpm/SOURCES/tmp/strongswan-5.1.1'
Making all in src
make[2]: Entering directory `/home/builder/rpm/SOURCES/tmp/strongswan-5.1.1/src'
Making all in .
make[3]: Entering directory `/home/builder/rpm/SOURCES/tmp/strongswan-5.1.1/src'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/builder/rpm/SOURCES/tmp/strongswan-5.1.1/src'
Making all in include
make[3]: Entering directory
`/home/builder/rpm/SOURCES/tmp/strongswan-5.1.1/src/include'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/home/builder/rpm/SOURCES/tmp/strongswan-5.1.1/src/include'
Making all in libstrongswan
make[3]: Entering directory
`/home/builder/rpm/SOURCES/tmp/strongswan-5.1.1/src/libstrongswan'
make all-recursive
make[4]: Entering directory
`/home/builder/rpm/SOURCES/tmp/strongswan-5.1.1/src/libstrongswan'
Making all in .
make[5]: Entering directory
`/home/builder/rpm/SOURCES/tmp/strongswan-5.1.1/src/libstrongswan'
depbase=`echo library.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ../../libtool --tag=CC --mode=compile gcc
-DHAVE_CONFIG_H -I. -I../.. -I../../src/libstrongswan
-DIPSEC_DIR=\"/usr/local/libexec/ipsec\"
-DIPSEC_LIB_DIR=\"/usr/local/lib/ipsec\"
-DPLUGINDIR=\"/usr/local/lib/ipsec/plugins\"
-DSTRONGSWAN_CONF=\"/usr/local/etc/strongswan.conf\" -g -O2 -Wall
-Wno-format -Wno-pointer-sign -include
/home/builder/rpm/SOURCES/tmp/strongswan-5.1.1/config.h -MT library.lo
-MD -MP -MF $depbase.Tpo -c -o library.lo library.c &&\
mv -f $depbase.Tpo $depbase.Plo
...
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../..
-I../../src/libstrongswan -DIPSEC_DIR=\"/usr/local/libexec/ipsec\"
-DIPSEC_LIB_DIR=\"/usr/local/lib/ipsec\"
-DPLUGINDIR=\"/usr/local/lib/ipsec/plugins\"
-DSTRONGSWAN_CONF=\"/usr/local/etc/strongswan.conf\" -g -O2 -Wall
-Wno-format -Wno-pointer-sign -include
/home/builder/rpm/SOURCES/tmp/strongswan-5.1.1/config.h -MT
networking/packet.lo -MD -MP -MF networking/.deps/packet.Tpo -c
networking/packet.c -fPIC -DPIC -o networking/.libs/packet.o
depbase=`echo networking/tun_device.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ../../libtool --tag=CC --mode=compile gcc
-DHAVE_CONFIG_H -I. -I../.. -I../../src/libstrongswan
-DIPSEC_DIR=\"/usr/local/libexec/ipsec\"
-DIPSEC_LIB_DIR=\"/usr/local/lib/ipsec\"
-DPLUGINDIR=\"/usr/local/lib/ipsec/plugins\"
-DSTRONGSWAN_CONF=\"/usr/local/etc/strongswan.conf\" -g -O2 -Wall
-Wno-format -Wno-pointer-sign -include
/home/builder/rpm/SOURCES/tmp/strongswan-5.1.1/config.h -MT
networking/tun_device.lo -MD -MP -MF $depbase.Tpo -c -o
networking/tun_device.lo networking/tun_device.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../..
-I../../src/libstrongswan -DIPSEC_DIR=\"/usr/local/libexec/ipsec\"
-DIPSEC_LIB_DIR=\"/usr/local/lib/ipsec\"
-DPLUGINDIR=\"/usr/local/lib/ipsec/plugins\"
-DSTRONGSWAN_CONF=\"/usr/local/etc/strongswan.conf\" -g -O2 -Wall
-Wno-format -Wno-pointer-sign -include
/home/builder/rpm/SOURCES/tmp/strongswan-5.1.1/config.h -MT
networking/tun_device.lo -MD -MP -MF networking/.deps/tun_device.Tpo
-c networking/tun_device.c -fPIC -DPIC -o
networking/.libs/tun_device.o
In file included from /usr/include/linux/if_tun.h:20,
from networking/tun_device.c:50:
/usr/include/linux/if_ether.h:125: error: expected
specifier-qualifier-list before '__be16'
In file included from networking/tun_device.c:50:
/usr/include/linux/if_tun.h:72: error: expected
specifier-qualifier-list before '__u16'
/usr/include/linux/if_tun.h:86: error: expected
specifier-qualifier-list before '__u16'
make[5]: *** [networking/tun_device.lo] Error 1
make[5]: Leaving directory
`/home/builder/rpm/SOURCES/tmp/strongswan-5.1.1/src/libstrongswan'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory
`/home/builder/rpm/SOURCES/tmp/strongswan-5.1.1/src/libstrongswan'
make[3]: *** [all] Error 2
make[3]: Leaving directory
`/home/builder/rpm/SOURCES/tmp/strongswan-5.1.1/src/libstrongswan'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/builder/rpm/SOURCES/tmp/strongswan-5.1.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/builder/rpm/SOURCES/tmp/strongswan-5.1.1'
make: *** [all] Error 2
]0;yes at build-server:~/rpm/SOURCES/tmp/strongswan-5.1.1[yes at build-server
strongswan-5.1.1]$ exit
exit
Script done on Wed 18 Dec 2013 09:38:56 PM EET
2013/12/18 Martin Willi <martin at strongswan.org>:
> Hi Kimmo,
>
>> I'm have built strongswan rpm's with mock in Centos 6.5 (2.6.32-431.el6.x86_64).
>> Building 5.1.0 works okay, but 5.1.1 or 5.1.2dr2 does not.
>
>> from networking/tun_device.c:51:
>> /usr/include/linux/if_ether.h:125: error: expected
>> specifier-qualifier-list before '__be16'
>
> Please try the patch at [1].
>
> Regards
> Martin
>
> [1]http://git.strongswan.org/?p=strongswan.git;a=commitdiff;h=1cbe4e6c
>
More information about the Users
mailing list