Project

General

Profile

Bug #1099

Updated by Tobias Brunner about 5 years ago

Hi,

When I try to cross-compile strongswan 5.3.3, I got the error below.
This error not found in r5.3.2, so could you help me check the reason?

<pre>


libtool: compile: mipsel-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../src/include -I../../../../src/libstrongswan -I../../../../src/libhydra -DROUTING_TABLE=220 -DROUTING_TABLE_PRIO=220 -I/home/shared/gmp_res//include -rdynamic -g -O2 -Wall -Wno-format -Wno-format-security -Wno-pointer-sign -include /home/shared/strongswan-5.3.3/config.h -MT kernel_netlink_ipsec.lo -MD -MP -MF .deps/kernel_netlink_ipsec.Tpo -c kernel_netlink_ipsec.c -fPIC -DPIC -o .libs/kernel_netlink_ipsec.o
In file included from kernel_netlink_ipsec.c:25:
../../../../src/include/linux/netlink.h:36: error: expected specifier-qualifier-list before '__kernel_sa_family_t'
In file included from kernel_netlink_ipsec.c:26:
../../../../src/include/linux/rtnetlink.h:357: error: expected specifier-qualifier-list before '__kernel_sa_family_t'
kernel_netlink_ipsec.c: In function 'receive_events':
kernel_netlink_ipsec.c:1036: error: 'struct sockaddr_nl' has no member named 'nl_pid'
kernel_netlink_ipsec.c: In function 'kernel_netlink_ipsec_create':
kernel_netlink_ipsec.c:2956: error: 'struct sockaddr_nl' has no member named 'nl_family'
kernel_netlink_ipsec.c:2966: error: 'struct sockaddr_nl' has no member named 'nl_groups'
make[4]: *** [kernel_netlink_ipsec.lo] Error 1
make[4]: Leaving directory `/home/shared/strongswan-5.3.3/src/libhydra/plugins/kernel_netlink'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/shared/strongswan-5.3.3/src/libhydra'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/shared/strongswan-5.3.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/shared/strongswan-5.3.3'
make: *** [all] Error 2
make install-recursive
make[1]: Entering directory `/home/shared/strongswan-5.3.3'
</pre>



Here is the configure I used.

./configure --host=mipsel-unknown-linux-gnu --prefix=/home/shared/strongswan_res/ --disable-ikev1 --with-resolv-conf=/etc/resolv.conf --with-lib-prefix=/home/shared/gmp_res/

Thanks.
Zhonghai Li

Back