<div>Hi!</div>
<div>I know there was a thread that discused this issue, but im having some problem still!</div>
<div> </div>
<div>im using the uclibc toolchain for mips-linux</div>
<div> </div>
<div>i downloaded openswan-2.4.4 and made the following (init.sh) file</div>
<div>===</div>
<div>#!/bin/sh<br>ARCH=mips<br>CC=/opt/uclibc_mips-toolchain/gcc-3.3.x/toolchain_mips/bin/mips-linux-gcc<br>LD=/opt/uclibc_mips-toolchain/gcc-3.3.x/toolchain_mips/bin/mips-linux-ld<br>RANLIB=/opt/uclibc_mips-toolchain/gcc-
3.3.x/toolchain_mips/bin/mips-linux-ranlib<br>AR=/opt/uclibc_mips-toolchain/gcc-3.3.x/toolchain_mips/bin/mips-linux-ar<br>AS=/opt/uclibc_mips-toolchain/gcc-3.3.x/toolchain_mips/bin/mips-linux-as<br>STRIP=/opt/uclibc_mips-toolchain/gcc-
3.3.x/toolchain_mips/bin/mips-linux-strip<br>KERNELSRC=/root/sumedh/vobs/comac_lsb/source/kernel/opensource/linux_2_4_20<br>LD_LIBRARY_PATH=/lib:/usr/lib:/opt/uclibc_mips-toolchain/gcc-3.3.x/toolchain_mips/lib<br>PATH=$PATH:/opt/uclibc_mips-toolchain/gcc-
3.3.x/toolchain_mips/bin<br>DESTDIR=/sumedh/osb<br>export ARCH CC LD RANLIB AR AS STRIP KERNELSRC LD_LIBRARY_PATH DESTDIR PATH<br> </div>
<div>===</div>
<div> </div>
<div>Now when i say </div>
<div># make programs</div>
<div>All goes well till i get this error</div>
<div>==</div>
<div>/opt/uclibc_mips-toolchain/gcc-3.3.x/toolchain_mips/bin/mips-linux-gcc -I. -I/root/sumedh/openswan/openswan-2.4.4/linux/net/ipsec -I/root/sumedh/openswan/openswan-2.4.4/linux/include -I/root/sumedh/openswan/openswan-
2.4.4 -DDEBUG -DWITH_UDPFROMTO -DHAVE_IP_PKTINFO -I/root/sumedh/openswan/openswan-2.4.4/include -g -O3 -Wall -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wbad-function-cast -DX509_VERSION=\"X.509-1.5.4\" -DNAT_TRAVERSAL -c -o pfkey_v2_parse.o /root/sumedh/openswan/openswan-
2.4.4/linux/net/ipsec/pfkey_v2_parse.c<br>In file included from /root/sumedh/openswan/openswan-2.4.4/linux/net/ipsec/pfkey_v2_parse.c:64:<br>/root/sumedh/openswan/openswan-2.4.4/programs/pluto/defs.h:88:17: gmp.h: No such file or directory
<br>In file included from /root/sumedh/openswan/openswan-2.4.4/linux/net/ipsec/pfkey_v2_parse.c:64:<br>/root/sumedh/openswan/openswan-2.4.4/programs/pluto/defs.h:91: error: parse error before '*' token<br>/root/sumedh/openswan/openswan-
2.4.4/programs/pluto/defs.h:91: warning: function declaration isn't a prototype<br>/root/sumedh/openswan/openswan-2.4.4/programs/pluto/defs.h:92: warning: type defaults to `int' in declaration of `MP_INT'<br>/root/sumedh/openswan/openswan-
2.4.4/programs/pluto/defs.h:92: error: parse error before '*' token<br>/root/sumedh/openswan/openswan-2.4.4/programs/pluto/defs.h:92: warning: function declaration isn't a prototype<br>make[2]: *** [pfkey_v2_parse.o] Error 1
<br>make[2]: Leaving directory `/root/sumedh/openswan/openswan-2.4.4/lib/libopenswan'<br>make[1]: *** [programs] Error 1<br>make[1]: Leaving directory `/root/sumedh/openswan/openswan-2.4.4/lib'<br>make: *** [programs] Error 1
<br> </div>
<div>==</div>
<div> </div>
<div>so i figure i dont have gmp.h (for mips-linux) and i just say in programs/pluto/defs.h #include "/usr/include/gmp.h"</div>
<div>This i think is made for x86 (the machine on which im building is a fedora core-3 on x86)</div>
<div> </div>
<div>So then when i compile, i get the following error:</div>
<div>===</div>
<div>make[2]: Leaving directory `/root/sumedh/openswan/openswan-2.4.4/programs/pf_key'<br>make[2]: Entering directory `/root/sumedh/openswan/openswan-2.4.4/programs/proc'<br>make[2]: Nothing to be done for `programs'.<br>
make[2]: Leaving directory `/root/sumedh/openswan/openswan-2.4.4/programs/proc'<br>make[2]: Entering directory `/root/sumedh/openswan/openswan-2.4.4/programs/pluto'<br>/opt/uclibc_mips-toolchain/gcc-3.3.x/toolchain_mips/bin/mips-linux-gcc -I/root/sumedh/openswan/openswan-
2.4.4/programs/pluto/linux26 -I/root/sumedh/openswan/openswan-2.4.4/include -I/root/sumedh/openswan/openswan-2.4.4/lib/libcrypto -I/root/sumedh/openswan/openswan-2.4.4/linux/include -I/usr/include -DPLUTO_SENDS_VENDORID -DUSE_KEYRR -DKERNEL26_SUPPORT -DKERNEL26_HAS_KAME_DUPLICATES -DX509_VERSION=\"
X.509-1.5.4\" -DPLUTO -DKLIPS -DBUILDER=\"<a href="mailto:root@blramz04.amazon.infineon.com\">root@blramz04.amazon.infineon.com\</a>" -DDEBUG -DGCC_LINT -DUSE_AES -DUSE_3DES -DIKE_ALG -DKERNEL_ALG -DDB_CONTEXT -DAGGRESSIVE -DXAUTH -DMODECFG -DNAT_TRAVERSAL -DVIRTUAL_IP -DI_KNOW_TRANSPORT_MODE_HAS_SECURITY_CONCERN_BUT_I_WANT_IT -DSHARED_SECRETS_FILE=\"/root/sumedh/amazon_build/root_filesystem/etc/ipsec.secrets\" -DPOLICYGROUPSDIR=\"/root/sumedh/amazon_build/root_filesystem/etc/ipsec.d/policies\" -DPERPEERLOGDIR=\"/tmp/tmp/pluto/peer\" -g -Wall -W -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wmissing-declarations -Wwrite-strings -Wstrict-prototypes -g -O3 -c
connections.c<br>/tmp/ccJ3W3g7.s: Assembler messages:<br>/tmp/ccJ3W3g7.s:6198: Error: unrecognized opcode `rorw $8,$3'<br>/tmp/ccJ3W3g7.s:6213: Error: unrecognized opcode `rorw $8,$3'<br>/tmp/ccJ3W3g7.s:8210: Error: unrecognized opcode `rorw $8,$11'
<br>/tmp/ccJ3W3g7.s:8235: Error: unrecognized opcode `rorw $8,$4'<br>/tmp/ccJ3W3g7.s:15603: Error: unrecognized opcode `rorw $8,$16'<br>make[2]: *** [connections.o] Error 1<br>make[2]: Leaving directory `/root/sumedh/openswan/openswan-
2.4.4/programs/pluto'<br>make[1]: *** [programs] Error 1<br>make[1]: Leaving directory `/root/sumedh/openswan/openswan-2.4.4/programs'<br>make: *** [programs] Error 1<br>===</div>
<div> </div>
<div>What do i do ??? </div>
<div> </div>
<div>thanks in advance :)</div>
<div> </div>