Re: [strongSwan] Problems compiling strongswan 4.2.9 on SLES10SP2

2008-12-01 Thread Nicole Hähnel
Hi, I changed the line and recompiled strongswan by hand. This works, but I have to build a rpm for about 20 servers and that does not work. (spec attached) starterstroke.c: In function starter_stroke_add_conn: starterstroke.c:246: error: XFRM_MODE_TUNNEL undeclared (first use in this

Re: [strongSwan] Problems compiling strongswan 4.2.9 on SLES10SP2

2008-12-01 Thread Andreas Steffen
Hi Nicole, you can try the latest release candidate available from http://download.strongswan.org/strongswan-4.2.10rc5.tar.bz2 which fixes the xfrm.h header inclusion problem. If this doesn't help either, them your rpm builder probably changes your linux kernel header inclusion path. You can

[strongSwan] [patch] add missing include

2008-12-01 Thread Thomas Jarosch
Hello together, attached patch fixes a small compile error of struct tm not being defined. Cheers, Thomas diff -u -r -p strongswan-4.2.9/src/libstrongswan/utils.c strongswan.include/src/libstrongswan/utils.c --- strongswan-4.2.9/src/libstrongswan/utils.c 2008-09-17 23:10:35.0 +0200 +++

[strongSwan] [patch] add support for --disable-threads

2008-12-01 Thread Thomas Jarosch
Hello together, attached is a patch to make compilation without threads easier. Cheers, Thomas diff -u -r -p strongswan-4.2.9/configure.in strongswan-4.2.9.no_threads/configure.in --- strongswan-4.2.9/configure.in 2008-11-16 23:34:47.0 +0100 +++ strongswan-4.2.9.no_threads/configure.in

[strongSwan] [patch] refcount handling using atomic memory operations

2008-12-01 Thread Thomas Jarosch
Hello together, attached is a patch to implement refcount handling using atomic memory operations if supported by the compiler (gcc = 4.1) and platform. It was really tricky to get the configure.in part right as __sync_fetch_and_add() is defined on i386 but will result in a link error later on.