[strongSwan] Help with Strongswan crosscompile (Ubuntu - Synology)

Mikael Magnusson mikma264 at gmail.com
Wed Nov 20 18:34:00 CET 2013


On 11/19/2013 08:51 PM, Luka wrote:
> Hi Andreas.
> I've installed: apt-get install  libgmp3-dev
> gmp.h is under: /usr/include/gmp.h
> How can I include it during compilation time ? 
>

You have installed the host library, i686 in your case. But you need GMP
built for your target, i.e. PowerPC.

> I've also tried to crosscompile with "--disable-gmp" option.
> Then it works, but when I start strongswan, I get some errors in
> strongswan log file:
>
> [CFG]   loading ca certificate from
> '/usr/local/etc/ipsec.d/cacerts/caCert.pem' failed
>
> [LIB] building CRED_CERTIFICATE - X509 failed, tried 3 builders
>
> ...
>
> [LIB] loaded plugins: charon aes des rc2 sha1 sha2 md5 random nonce
> x509 revocation constraints pubkey pkcs1 pkcs7 pkcs8 pkcs12 pgp dnskey
> sshkey pem
>
> [LIB] unable to load 6 plugin features (6 due to unmet dependencies)  
>
>
> Is GMP reason for those ? 
>
>

Probably.

/Mikma

> Thanks
>
>
>
> On Tue, Nov 19, 2013 at 8:40 PM, Andreas Steffen
> <andreas.steffen at strongswan.org
> <mailto:andreas.steffen at strongswan.org>> wrote:
>
>     Hi Luka,
>
>     you must provide the gmp.h header file during compilation time.
>
>     Regards
>
>     Andreas
>
>     On 19.11.2013 15:46, Luka wrote:
>     > I'm getting following error when I try to crosscompile strongswan on
>     > ubuntu for my Synology NAS server:
>     > *error: GNU Multi Precision library gmp not found*
>     >
>     > Host:
>     > hostname = ubuntu
>     > uname -m = i686
>     > uname -r = 3.8.0-32-generic
>     > uname -s = Linux
>     >
>     > Target:
>     > Synology:
>     > - model DS213+
>     > - CPU: Freescale QorIQ P1022
>     > - Arch: PowerPC
>     > - Endianness: Big Endian
>     > - Linux 2.6.32
>     > - uname -a:
>     > Linux LupoDiskStation 2.6.32.12 #3776 SMP Sat Aug 17 02:11:24
>     CST 2013
>     > ppc GNU/Linux synology_qoriq_213+
>     >
>     > I'm using official Synology toolchain.
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strongswan.org/pipermail/users/attachments/20131120/71d07e2d/attachment.html>


More information about the Users mailing list