<div dir="ltr">Hi Andreas.<div>I've installed: apt-get install  libgmp3-dev</div><div>gmp.h is under: /usr/include/gmp.h</div><div>How can I include it during compilation time ? <br><div><br></div><div>I've also tried to crosscompile with "<span style="color:rgb(0,0,0)">--disable-gmp" option.</span><div>

<div><span style="color:rgb(0,0,0)">Then it works, but when I start strongswan, I get some errors in strongswan log file:</span></div></div></div><div><p style="margin:0px;font-size:11px;font-family:Menlo">[CFG]   loading ca certificate from '/usr/local/etc/ipsec.d/cacerts/caCert.pem' failed</p>


<p style="margin:0px;font-size:11px;font-family:Menlo">[LIB] building CRED_CERTIFICATE - X509 failed, tried 3 builders</p><p style="margin:0px;font-size:11px;font-family:Menlo">...</p><p style="margin:0px;font-size:11px;font-family:Menlo">

[LIB] loaded plugins: charon aes des rc2 sha1 sha2 md5 random nonce x509 revocation constraints pubkey pkcs1 pkcs7 pkcs8 pkcs12 pgp dnskey sshkey pem</p><p style="margin:0px;font-size:11px;font-family:Menlo">
</p><p style="margin:0px;font-size:11px;font-family:Menlo">[LIB] unable to load 6 plugin features (6 due to unmet dependencies)  </p><p style="margin:0px;font-size:11px;font-family:Menlo"><br></p><p style="margin:0px;font-size:11px;font-family:Menlo">

<span style="font-family:arial;font-size:small">Is GMP reason for those ? </span><br></p><p style="margin:0px;font-size:11px;font-family:Menlo"><br></p><p style="margin:0px;font-size:11px;font-family:Menlo">Thanks</p></div>

</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Nov 19, 2013 at 8:40 PM, Andreas Steffen <span dir="ltr"><<a href="mailto:andreas.steffen@strongswan.org" target="_blank">andreas.steffen@strongswan.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Luka,<br>
<br>
you must provide the gmp.h header file during compilation time.<br>
<br>
Regards<br>
<br>
Andreas<br>
<div class="im"><br>
On 19.11.2013 15:46, Luka wrote:<br>
> I'm getting following error when I try to crosscompile strongswan on<br>
> ubuntu for my Synology NAS server:<br>
</div>> *error: GNU Multi Precision library gmp not found*<br>
<div><div class="h5">><br>
> Host:<br>
> hostname = ubuntu<br>
> uname -m = i686<br>
> uname -r = 3.8.0-32-generic<br>
> uname -s = Linux<br>
><br>
> Target:<br>
> Synology:<br>
> - model DS213+<br>
> - CPU: Freescale QorIQ P1022<br>
> - Arch: PowerPC<br>
> - Endianness: Big Endian<br>
> - Linux 2.6.32<br>
> - uname -a:<br>
> Linux LupoDiskStation 2.6.32.12 #3776 SMP Sat Aug 17 02:11:24 CST 2013<br>
> ppc GNU/Linux synology_qoriq_213+<br>
><br>
> I'm using official Synology toolchain.<br>
><br>
> Here is terminal output after I run configure command:<br>
> x@ubuntu:~/strongswan-5.1.1env<br>
> CC=/usr/local/powerpc-none-linux-gnuspe/bin/powerpc-none-linux-gnuspe-gcc LD=/usr/local/powerpc-none-linux-gnuspe/bin/powerpc-none-linux-gnuspe-ld<br>
> RANLIB=/usr/local/powerpc-none-linux-gnuspe/bin/powerpc-none-linux-gnuspe-ranlib<br>
> CFLAGS="-I/usr/local/powerpc-none-linux-gnuspe/include -mcpu=8548<br>
> -mhard-float -mfloat-gprs=double"<br>
> LDFLAGS="-L/usr/local/powerpc-none-linux-gnuspe/lib" ./configure<br>
> --host=powerpc-unknown-linux --target=powerpc-unknown-linux<br>
> --build=i686-pc-linux --prefix=/usr/local > configureOut.txt<br>
> configure: WARNING: using cross tools not prefixed with host triplet<br>
> configure: WARNING: linux/fib_rules.h: present but cannot be compiled<br>
> configure: WARNING: linux/fib_rules.h:     check for missing<br>
> prerequisite headers?<br>
> configure: WARNING: linux/fib_rules.h: see the Autoconf documentation<br>
> configure: WARNING: linux/fib_rules.h:     section "Present But Cannot<br>
> Be Compiled"<br>
> configure: WARNING: linux/fib_rules.h: proceeding with the compiler's result<br>
> configure: error: GNU Multi Precision library gmp not found<br>
><br>
> Here is full configure output:<br>
> <a href="https://dl.dropboxusercontent.com/u/2261256/forums/ipsec/crosscompile/configureOutput.txt" target="_blank">https://dl.dropboxusercontent.com/u/2261256/forums/ipsec/crosscompile/configureOutput.txt</a><br>
><br>
> And here is config.log file:<br>
> <a href="https://dl.dropboxusercontent.com/u/2261256/forums/ipsec/crosscompile/config.log" target="_blank">https://dl.dropboxusercontent.com/u/2261256/forums/ipsec/crosscompile/config.log</a><br>
><br>
><br>
> Any idea what should I do to make crosscompile work ?<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.strongswan.org">Users@lists.strongswan.org</a><br>
> <a href="https://lists.strongswan.org/mailman/listinfo/users" target="_blank">https://lists.strongswan.org/mailman/listinfo/users</a><br>
><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
======================================================================<br>
Andreas Steffen                         <a href="mailto:andreas.steffen@strongswan.org">andreas.steffen@strongswan.org</a><br>
strongSwan - the Open Source VPN Solution!          <a href="http://www.strongswan.org" target="_blank">www.strongswan.org</a><br>
Institute for Internet Technologies and Applications<br>
University of Applied Sciences Rapperswil<br>
CH-8640 Rapperswil (Switzerland)<br>
===========================================================[ITA-HSR]==<br>
<br>
</font></span></blockquote></div><br></div>