Hi Team,<div><br></div><div>I was trying to build strongswan for mips and the building is failing due to the missing of gmp libraries.</div><div><br></div><div><span style="background-color:rgb(255,255,51)">./configure --host=mips64-octeon-linux-gnu --build=mips6</span>4</div>
<div><br></div><div>Error : </div><div><br></div><div><span style="background-color:rgb(255,255,0)"><br></span></div><div><div><span style="background-color:rgb(255,255,0)">checking for linux/udp.h... yes</span></div><div>
<span style="background-color:rgb(255,255,0)">checking for struct sockaddr.sa_len... no</span></div><div><span style="background-color:rgb(255,255,0)">checking for struct sadb_x_policy.sadb_x_policy_priority... yes</span></div>
<div><span style="background-color:rgb(255,255,0)">checking for in6addr_any... yes</span></div><div><span style="background-color:rgb(255,255,0)">checking for in6_pktinfo... yes</span></div><div><span style="background-color:rgb(255,255,0)">checking for IPSEC_MODE_BEET... yes</span></div>
<div><span style="background-color:rgb(255,255,0)">checking for IPSEC_DIR_FWD... yes</span></div><div><span style="background-color:rgb(255,255,0)">checking for RTA_TABLE... yes</span></div><div><span style="background-color:rgb(255,255,0)">checking for gcc atomic operations... no</span></div>
<div><span style="background-color:rgb(255,255,0)">checking for register_printf_specifier... no</span></div><div><span style="background-color:rgb(255,255,0)">checking for register_printf_function... yes</span></div><div>
<span style="background-color:rgb(255,255,0)">checking for main in -lgmp... no</span></div><div><span style="background-color:rgb(255,255,0)">configure: error: GNU Multi Precision library gmp not found</span></div></div><div>
<br></div><div>I got the gmp plugin but the issue here and tried installing in the sdk tools which is not permissible.</div><div><br></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,0)">../configure --target=mips64-octeon-linux-</span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,0)">gnu --host=mips64-octeon-linux-gnu --prefix=krishna</span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,0)">/gmp-4.2.2/</span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,0)">target</span></div>
<div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,0)"><br></span></div><div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<span style="background-color:rgb(255,255,0)">test -z "krishnagmp-4.2.2/target/share/info" || /bin/mkdir -p "/krishna/gmp-4.2.2/target/share/info"</span></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<span style="background-color:rgb(255,255,0)">/bin/mkdir: cannot create directory `</span><span style="background-color:rgb(255,255,0)">/krishna</span><span style="background-color:rgb(255,255,0)">/</span><span style="background-color:rgb(255,255,0)">/gmp-4.2.2': Permission denied</span></div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span style="background-color:rgb(255,255,0)">make[3]: *** [install-info-am] Error 1</span></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<span style="background-color:rgb(255,255,0)">make[3]: Leaving directory `/home/kchaitanya/gmp-5.0.5/doc'</span></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<span style="background-color:rgb(255,255,0)">make[2]: *** [install-am] Error 2</span></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span style="background-color:rgb(255,255,0)">make[2]: Leaving directory `/home/kchaitanya/gmp-5.0.5/doc'</span></div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span style="background-color:rgb(255,255,0)">make[1]: *** [install-recursive] Error 1</span></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<span style="background-color:rgb(255,255,0)">make[1]: Leaving directory `/home/kchaitanya/gmp-5.0.5'</span></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<span style="background-color:rgb(255,255,0)">make: *** [install] Error 2</span></div></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span style="background-color:rgb(255,255,0)"><br>
</span></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">So the question is, Is it fine if I build gmp library in a separate <span style="background-color:transparent">permissible folder and copy the header (gmp.h) . Please let me know if its fine or in other case let me know if I need to make changes in the make file for this. If this is true advise/direct me on the required changes in the make file. </span></div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span style="background-color:transparent"><br></span></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<span style="background-color:transparent"><br></span></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span style="background-color:transparent"><br></span></div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span style="background-color:transparent">Thanks,</span></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<span style="background-color:transparent">KC </span></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span style="background-color:rgb(255,255,0)"><br></span></div>