<div dir="ltr"><div>Ok now I've downloaded gmp and cross coompiled it with synology toolchain on ubuntu.<br>After that I've tried again to cross compile Strongswan, but I got same error (gmp is missing).<br>Here are configure logs:<br>
<br>Configure command output (output is then redirected to file, see next gist):<br><a href="https://gist.github.com/Lukapple/5688663bbe7814182ebc" target="_blank">https://gist.github.com/Lukapple/5688663bbe7814182ebc</a><br>
<br>Configure console output:<br><a href="https://gist.github.com/Lukapple/f20bcc7a3ae0589dbc13" target="_blank">https://gist.github.com/Lukapple/f20bcc7a3ae0589dbc13</a><br><br>Configure log file (config.log, created by configure command):<br>
<a href="https://gist.github.com/Lukapple/1bf085c25c8fc30e27e1" target="_blank">https://gist.github.com/Lukapple/1bf085c25c8fc30e27e1</a><br><br>Gcc version (Synology toolchain):<br><a href="https://gist.github.com/Lukapple/8fd8dc797c3bac5bf9c8" target="_blank">https://gist.github.com/Lukapple/8fd8dc797c3bac5bf9c8</a><br>
<br><br></div>L<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Nov 20, 2013 at 6:34 PM, Mikael Magnusson <span dir="ltr"><<a href="mailto:mikma264@gmail.com" target="_blank">mikma264@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF"><div class="im">
    <div>On 11/19/2013 08:51 PM, Luka wrote:<br>
    </div>
    <blockquote type="cite">
      <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>
      </div>
    </blockquote>
    <br></div>
    You have installed the host library, i686 in your case. But you need
    GMP built for your target, i.e. PowerPC.<div class="im"><br>
    <br>
    <blockquote type="cite">
      <div dir="ltr">
        <div>
          <div>I've also tried to crosscompile with "<span style>--disable-gmp" option.</span>
            <div>
              <div><span style>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>
          </div>
        </div>
      </div>
    </blockquote>
    <br></div>
    Probably.<br>
    <br>
    /Mikma<div><div class="h5"><br>
    <br>
    <blockquote type="cite">
      <div dir="ltr">
        <div>
          <div>
            <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><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>><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>
              </div>
            </div>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <br>
  </div></div></div>

<br>_______________________________________________<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></blockquote></div><br></div>