[Openswan Users] Openswan 2.6.50 programs segfault (kernel 2.6.39) with cross compile
Brian Tuchten
brian.tuchten at redlion.net
Wed Oct 4 17:26:52 EDT 2017
Hello,
Cross compiling for arm/eldk Openswan 2.6.50 with Kernel 2.6.39, every exe segfaults. Core files wiith gdb give me no useful information
[root at RAM-066e4f tmp]# ipsec auto --status
/usr/local/libexec/ipsec/auto: line 111: 18166 Segmentation fault (core dumped) ipsec whack --status
[root at RAM-066e4f tmp]# ipsec whack --status
Segmentation fault (core dumped)
[root at RAM-066e4f tmp]# /usr/local/libexec/ipsec/addconn --checkconfig
Segmentation fault (core dumped)
[root at RAM-066e4f tmp]#
I assume it is a compile issue. I have USE_WEAKSTUFF=true USE_NOCRYPTO=true set because without them lots of missing struct entry errors and compile errors occur. With them enabled I had to change :
diff --git a/openswan_latest/programs/pluto/crypto.c b/openswan_latest/programs/pluto/crypto.c
index 4a27f51..33627c6 100644
--- a/openswan_latest/programs/pluto/crypto.c
+++ b/openswan_latest/programs/pluto/crypto.c
@@ -242,7 +242,7 @@ init_crypto(void)
#ifdef USE_1DES
/*#warning YOUR PLUTO IS INSECURE, IT HAS 1DES. DO NOT USE IT. */
{
- ike_alg_add((struct ike_alg *) &crypto_encrypter_des);
+ ike_alg_add((struct ike_alg *) &crypto_encrypter_des, FALSE);
}
#endif
To compile, but something is still odd.
Thanks for any help!
-Brian
More information about the Users
mailing list