Issue #1299
Updated by Tobias Brunner over 9 years ago
Hi,
The topic is much discussed over here. But I Guess I have no other option to trouble shoot the problem.
I am trying to compile strongswan statically and run the binaries in my target board(arm-linux cross compiler).I succeeded in compilation but the 'starter' is get stopped due to charon-dependencies . For last 3 days and almost i have gone through all the internet available sources.The problem still exists. Please consider me as a beginner
i am able to compile strongswan(for arm) with static linkage (due to libc-6 dependency on my target board) but the the 'starter' get stopped with the below syslog warnings
charon: 00[DMN] Starting IKE charon daemon (strongSwan 5.3.2, Linux 3.10.10-svn1674, armv7l)
charon: 00[LIB] feature CUSTOM:libcharon in critical plugin 'charon' has unmet dependency: NONCE_GEN
charon: 00[LIB] feature CUSTOM:libcharon-receiver in critical plugin 'charon' has unmet dependency: HASHER:HASH_SHA1
charon: 00[LIB] failed to load 2 critical plugin features
and the configuration options are
<pre>
CFLAGS="--static -I/home/james/libs/opensslArm/include/" LDFLAGS="-L/home/james/trunk/cross_compiler/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/arm-linux-gnueabihf/libc/usr/lib -L/home/james/libs/opensslArm/lib" ./configure --target=arm-linux-gnueabihf --host=arm-linux CC=arm-linux-gnueabihf-gcc AR=arm-linux-gnueabihf-ar --with-lib-prefix=/home/james/libs/gmp_lib/
--enable-openssl --enable-pem --enable-pubkey --enable-kernel-libipsec --enable-aes --enable-des --enable-ha --enable-x509
--enable-nonce --enable-gmp --enable-static --enable-libipsec --enable-dhcp --enable-af-alg --disable-mysql --enable-sql
--disable-sqlite --enable-ccm --enable-ctr --enable-gcm --enable-pkcs11 --enable-pkcs1 --enable-ikev1 --enable-ikev2 --disable-ldap --enable-eap-identity --enable-farp --enable-ha --enable-ipseckey --enable-vici LIBS="-lcrypt -ldl -lpthread -lm -lc "
--disable-shared
</pre>
I have compiled openssl and gmp for arm .
++steps followed+ for troubleshooting
1. verified /etc/strongswan.s/charon .all the config files are existing
2.My strongswan.conf file lookalike
<pre>
charon {
load_modular = yes
plugins {
include strongswan.d/charon/*.conf
}
plugins {
pkcs11 {
modules {
m-module {
path = /usr/lib/lib.so /*the format is definitly like this . but the path of the lib.so little different. I am out of my work station*/
}
}
}
}
}
include strongswan.d/*.conf
</pre>
3. I have tried to disable charon.load_modular option (commented out load_modular=yes in strongswan.conf)
4.removed the option '--disable-shared' (i cannot proceed due to the libc dependency of my target filesystem with the cross-compiler libc version)
But the response is the same. Any one Please help me to figure out what I miss to configure
Thanks in Advance
james
The topic is much discussed over here. But I Guess I have no other option to trouble shoot the problem.
I am trying to compile strongswan statically and run the binaries in my target board(arm-linux cross compiler).I succeeded in compilation but the 'starter' is get stopped due to charon-dependencies . For last 3 days and almost i have gone through all the internet available sources.The problem still exists. Please consider me as a beginner
i am able to compile strongswan(for arm) with static linkage (due to libc-6 dependency on my target board) but the the 'starter' get stopped with the below syslog warnings
charon: 00[DMN] Starting IKE charon daemon (strongSwan 5.3.2, Linux 3.10.10-svn1674, armv7l)
charon: 00[LIB] feature CUSTOM:libcharon in critical plugin 'charon' has unmet dependency: NONCE_GEN
charon: 00[LIB] feature CUSTOM:libcharon-receiver in critical plugin 'charon' has unmet dependency: HASHER:HASH_SHA1
charon: 00[LIB] failed to load 2 critical plugin features
and the configuration options are
<pre>
CFLAGS="--static -I/home/james/libs/opensslArm/include/" LDFLAGS="-L/home/james/trunk/cross_compiler/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/arm-linux-gnueabihf/libc/usr/lib -L/home/james/libs/opensslArm/lib" ./configure --target=arm-linux-gnueabihf --host=arm-linux CC=arm-linux-gnueabihf-gcc AR=arm-linux-gnueabihf-ar --with-lib-prefix=/home/james/libs/gmp_lib/
--enable-openssl --enable-pem --enable-pubkey --enable-kernel-libipsec --enable-aes --enable-des --enable-ha --enable-x509
--enable-nonce --enable-gmp --enable-static --enable-libipsec --enable-dhcp --enable-af-alg --disable-mysql --enable-sql
--disable-sqlite --enable-ccm --enable-ctr --enable-gcm --enable-pkcs11 --enable-pkcs1 --enable-ikev1 --enable-ikev2 --disable-ldap --enable-eap-identity --enable-farp --enable-ha --enable-ipseckey --enable-vici LIBS="-lcrypt -ldl -lpthread -lm -lc "
--disable-shared
</pre>
I have compiled openssl and gmp for arm .
++steps followed+ for troubleshooting
1. verified /etc/strongswan.s/charon .all the config files are existing
2.My strongswan.conf file lookalike
<pre>
charon {
load_modular = yes
plugins {
include strongswan.d/charon/*.conf
}
plugins {
pkcs11 {
modules {
m-module {
path = /usr/lib/lib.so /*the format is definitly like this . but the path of the lib.so little different. I am out of my work station*/
}
}
}
}
}
include strongswan.d/*.conf
</pre>
3. I have tried to disable charon.load_modular option (commented out load_modular=yes in strongswan.conf)
4.removed the option '--disable-shared' (i cannot proceed due to the libc dependency of my target filesystem with the cross-compiler libc version)
But the response is the same. Any one Please help me to figure out what I miss to configure
Thanks in Advance
james