<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 11/19/2013 08:51 PM, Luka wrote:<br>
    </div>
    <blockquote
cite="mid:CAD5z2ypenTzCjHGx+HTTP1TTSLM2k7AGXF-xum0V38pHC3O8NQ@mail.gmail.com"
      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>
    You have installed the host library, i686 in your case. But you need
    GMP built for your target, i.e. PowerPC.<br>
    <br>
    <blockquote
cite="mid:CAD5z2ypenTzCjHGx+HTTP1TTSLM2k7AGXF-xum0V38pHC3O8NQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <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>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    Probably.<br>
    <br>
    /Mikma<br>
    <br>
    <blockquote
cite="mid:CAD5z2ypenTzCjHGx+HTTP1TTSLM2k7AGXF-xum0V38pHC3O8NQ@mail.gmail.com"
      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 moz-do-not-send="true"
              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>
              </div>
            </div>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>