[strongSwan] Compile StrongSwan for Maemo Linux hitch

Martin Lambev fsh3mve at gmail.com
Mon Jan 24 19:11:23 CET 2011


Hello , I'm not sure that users list is the right place to ask for such 
a question but ... or should be in developers one you can judge.

I'm trying to build strongswan v. 4.5.0 
<http://download.strongswan.org/strongswan-4.5.0.tar.gz> for Maemo Linux 
Paltform <http://maemo.org/development/>.
My final goal is to have deb packaged strongswan for installing it on 
Maemo (currently Nokia N900 device) using dh_make and dpkg-buildpackege 
tools available in scratchbox.

My working environment is Linux Mint Debian Testing, and for compilation 
I'm working in scratchbox 
<http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Development_Environment/Maemo_SDK#Scratchbox> 
env.

I downloaded the source  of strongswan 4.5.0 , first complied dependency 
which were lgmp - _/gmp-5.0.1 
<ftp://ftp.gmplib.org/pub/gmp-5.0.1/gmp-5.0.1.tar.bz2>/_ and 
osso-af-settings - which is specific package for maemo Hildon Desktop 
<http://en.wikipedia.org/wiki/Hildon> package available in repositories, 
other required dependency already were there.

The kernel that I'm using is enhanced one ( standard one does not have 
needed modules included)
which is kernel-power <http://wiki.maemo.org/Kernel_Power> v.46 and 
kernel-power-headers, I checked kernel configuration against required 
modules here 
<http://wiki.strongswan.org/projects/strongswan/wiki/KernelModules>, 
only one was missing which I think is not relevant right now (IPv6: 
Multiple Routing Tables [CONFIG_IPV6_MULTIPLE_TABLES])

The problem I'm facing is during final stage of building the package : 
dpkg-buildpackage fakeroot , I got the fallowing error (not full log, 
just the end):

................
libtool: compile:  i486-linux-gnu-gcc -DPACKAGE_NAME=\"strongSwan\" 
-DPACKAGE_TARNAME=\"strongswan\" -DPACKAGE_VERSION=\"4.5.0\" 
"-DPACKAGE_STRING=\"strongSwan 4.5.0\"" -DPACKAGE_BUGREPORT=\"\" 
-DPACKAGE_URL=\"\" -DPACKAGE=\"strongswan\" -DVERSION=\"4.5.0\" 
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 
-DLT_OBJDIR=\".libs/\" -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 
-DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_BACKTRACE=1 
-DHAVE_CLOCK_GETTIME=1 -DHAVE_DLADDR=1 -DHAVE_CONDATTR_CLOCK_MONOTONIC=1 
-DHAVE_PTHREAD_CONDATTR_INIT=1 -DHAVE_PTHREAD_CANCEL=1 
-DHAVE_PTHREAD_RWLOCK_INIT=1 -DHAVE_PRCTL=1 -DHAVE_MALLINFO=1 
-DHAVE_LINUX_UDP_H=1 
-DHAVE_STRUCT_SADB_X_POLICY_SADB_X_POLICY_PRIORITY=1 
-DHAVE_IN6ADDR_ANY=1 -DHAVE_IN6_PKTINFO=1 -DHAVE_IPSEC_MODE_BEET=1 
-DHAVE_IPSEC_DIR_FWD=1 -DHAVE_PRINTF_FUNCTION=1 -DHAVE_LIBGMP=1 
-DHAVE_MPZ_POWM_SEC=1 -I. -I../../../../src/libstrongswan -rdynamic 
-Wall -g -O2 -MT aes_crypter.lo -MD -MP -MF .deps/aes_crypter.Tpo -c 
aes_crypter.c  -fPIC -DPIC -o .libs/aes_crypter.o
libtool: compile:  i486-linux-gnu-gcc -DPACKAGE_NAME=\"strongSwan\" 
-DPACKAGE_TARNAME=\"strongswan\" -DPACKAGE_VERSION=\"4.5.0\" 
"-DPACKAGE_STRING=\"strongSwan 4.5.0\"" -DPACKAGE_BUGREPORT=\"\" 
-DPACKAGE_URL=\"\" -DPACKAGE=\"strongswan\" -DVERSION=\"4.5.0\" 
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 
-DLT_OBJDIR=\".libs/\" -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 
-DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_BACKTRACE=1 
-DHAVE_CLOCK_GETTIME=1 -DHAVE_DLADDR=1 -DHAVE_CONDATTR_CLOCK_MONOTONIC=1 
-DHAVE_PTHREAD_CONDATTR_INIT=1 -DHAVE_PTHREAD_CANCEL=1 
-DHAVE_PTHREAD_RWLOCK_INIT=1 -DHAVE_PRCTL=1 -DHAVE_MALLINFO=1 
-DHAVE_LINUX_UDP_H=1 
-DHAVE_STRUCT_SADB_X_POLICY_SADB_X_POLICY_PRIORITY=1 
-DHAVE_IN6ADDR_ANY=1 -DHAVE_IN6_PKTINFO=1 -DHAVE_IPSEC_MODE_BEET=1 
-DHAVE_IPSEC_DIR_FWD=1 -DHAVE_PRINTF_FUNCTION=1 -DHAVE_LIBGMP=1 
-DHAVE_MPZ_POWM_SEC=1 -I. -I../../../../src/libstrongswan -rdynamic 
-Wall -g -O2 -MT aes_crypter.lo -MD -MP -MF .deps/aes_crypter.Tpo -c 
aes_crypter.c -o aes_crypter.o >/dev/null 2>&1
mv -f .deps/aes_crypter.Tpo .deps/aes_crypter.Plo
/bin/sh ../../../../libtool --tag=CC   --mode=link i486-linux-gnu-gcc 
-rdynamic -Wall -g -O2 -module -avoid-version -Wl,-z,defs -o 
libstrongswan-aes.la -rpath /usr/libexec/ipsec/plugins aes_plugin.lo 
aes_crypter.lo
libtool: link: i486-linux-gnu-gcc -shared  .libs/aes_plugin.o 
.libs/aes_crypter.o    -Wl,-z -Wl,defs   -Wl,-soname 
-Wl,libstrongswan-aes.so -o .libs/libstrongswan-aes.so
.libs/aes_plugin.o: In function `aes_plugin_create':
/home/mven/VPN/ipsec/strongswan-4.5.0/src/libstrongswan/plugins/aes/aes_plugin.c:57: 
undefined reference to `lib'
.libs/aes_plugin.o: In function `destroy':
/home/mven/VPN/ipsec/strongswan-4.5.0/src/libstrongswan/plugins/aes/aes_plugin.c:37: 
undefined reference to `lib'
collect2: ld returned 1 exit status
make[6]: *** [libstrongswan-aes.la] Error 1
make[6]: Leaving directory 
`/home/mven/VPN/ipsec/strongswan-4.5.0/src/libstrongswan/plugins/aes'
make[5]: *** [install-recursive] Error 1
make[5]: Leaving directory 
`/home/mven/VPN/ipsec/strongswan-4.5.0/src/libstrongswan'
make[4]: *** [install] Error 2
make[4]: Leaving directory 
`/home/mven/VPN/ipsec/strongswan-4.5.0/src/libstrongswan'
make[3]: *** [install-recursive] Error 1
make[3]: Leaving directory `/home/mven/VPN/ipsec/strongswan-4.5.0/src'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/home/mven/VPN/ipsec/strongswan-4.5.0'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/home/mven/VPN/ipsec/strongswan-4.5.0'
make: *** [install-arch] Error 2
[sbox-FREMANTLE_X86: ~/VPN/ipsec/strongswan-4.5.0] >


The strange thing is that when I build the classical way:

  wget http://download.strongswan.org/strongswan-4.5.0.tar.gz
  tar jxvf strongswan-4.5.0.tar.gz;
  cd strongswan-4.5.0
  ./configure --prefix=/usr --sysconfdir=/etc --enable-maemo
  make
  fakeroot make install

all seems to be Okay !? Any advice or direction are welcomed , 
appreciate your help!

Thanks

Martin




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strongswan.org/pipermail/users/attachments/20110125/1664aad6/attachment.html>


More information about the Users mailing list