<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body link="#0000ee" text="#000000" vlink="#551a8b" alink="#ee0000"
    bgcolor="#ffffff">
    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. <br>
    <br>
    I'm trying to build <a
      href="http://download.strongswan.org/strongswan-4.5.0.tar.gz">strongswan
      v. 4.5.0</a> for <a href="http://maemo.org/development/">Maemo
      Linux Paltform</a>. <br>
    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.<br>
    <br>
    My working environment is Linux Mint Debian Testing, and for
    compilation I'm working in <a
href="http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Development_Environment/Maemo_SDK#Scratchbox">scratchbox</a>
    env.<br>
    <br>
    I downloaded the source  of strongswan 4.5.0 , first complied
    dependency which were lgmp - <font color="#3333ff"><u><i><a
            href="ftp://ftp.gmplib.org/pub/gmp-5.0.1/gmp-5.0.1.tar.bz2">gmp-5.0.1</a></i></u></font>
    and osso-af-settings - which is specific package for maemo <a
      href="http://en.wikipedia.org/wiki/Hildon">Hildon Desktop</a>
    package available in repositories, other required dependency already
    were there.<br>
    <br>
    The kernel that I'm using is enhanced one ( standard one does not
    have needed modules included) <br>
    which is <a href="http://wiki.maemo.org/Kernel_Power">kernel-power</a>
    v.46 and kernel-power-headers, I checked kernel configuration
    against required modules <a
      href="http://wiki.strongswan.org/projects/strongswan/wiki/KernelModules">here</a>,
    only one was missing which I think is not relevant right now (<small>IPv6:
      Multiple Routing Tables [CONFIG_IPV6_MULTIPLE_TABLES]<big>)<br>
        <br>
        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):<br>
        <br>
        <small><small>................<br>
            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<br>
            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<br>
            mv -f .deps/aes_crypter.Tpo .deps/aes_crypter.Plo<br>
            /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  <br>
            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<br>
            .libs/aes_plugin.o: In function `aes_plugin_create':<br>
            /home/mven/VPN/ipsec/strongswan-4.5.0/src/libstrongswan/plugins/aes/aes_plugin.c:57:
            undefined reference to `lib'<br>
            .libs/aes_plugin.o: In function `destroy':<br>
            /home/mven/VPN/ipsec/strongswan-4.5.0/src/libstrongswan/plugins/aes/aes_plugin.c:37:
            undefined reference to `lib'<br>
            collect2: ld returned 1 exit status<br>
            make[6]: *** [libstrongswan-aes.la] Error 1<br>
            make[6]: Leaving directory
            `/home/mven/VPN/ipsec/strongswan-4.5.0/src/libstrongswan/plugins/aes'<br>
            make[5]: *** [install-recursive] Error 1<br>
            make[5]: Leaving directory
            `/home/mven/VPN/ipsec/strongswan-4.5.0/src/libstrongswan'<br>
            make[4]: *** [install] Error 2<br>
            make[4]: Leaving directory
            `/home/mven/VPN/ipsec/strongswan-4.5.0/src/libstrongswan'<br>
            make[3]: *** [install-recursive] Error 1<br>
            make[3]: Leaving directory
            `/home/mven/VPN/ipsec/strongswan-4.5.0/src'<br>
            make[2]: *** [install-recursive] Error 1<br>
            make[2]: Leaving directory
            `/home/mven/VPN/ipsec/strongswan-4.5.0'<br>
            make[1]: *** [install] Error 2<br>
            make[1]: Leaving directory
            `/home/mven/VPN/ipsec/strongswan-4.5.0'<br>
            make: *** [install-arch] Error 2<br>
            [sbox-FREMANTLE_X86: ~/VPN/ipsec/strongswan-4.5.0] > </small></small><br>
        <br>
        <br>
        The strange thing is that when I build the classical way: <br>
      </big></small>
    <pre> wget <a class="moz-txt-link-freetext" href="http://download.strongswan.org/strongswan-4.5.0.tar.gz">http://download.strongswan.org/strongswan-4.5.0.tar.gz</a>
 tar jxvf strongswan-4.5.0.tar.gz;
 cd strongswan-4.5.0
 ./configure --prefix=/usr --sysconfdir=/etc --enable-maemo
 make
 fakeroot make install
</pre>
    <small><big> all seems to be Okay !? Any advice or direction are
        welcomed , appreciate your help!<br>
        <br>
        Thanks<br>
        <br>
        Martin<br>
        <br>
        <br>
        <br>
        <br>
      </big></small> 
  </body>
</html>