[Openswan Users] Openswan on mips linux
Sumedh Degaonkar
dsumedh at gmail.com
Wed Jan 18 19:24:33 CET 2006
Hi!
I know there was a thread that discused this issue, but im having some
problem still!
im using the uclibc toolchain for mips-linux
i downloaded openswan-2.4.4 and made the following (init.sh) file
===
#!/bin/sh
ARCH=mips
CC=/opt/uclibc_mips-toolchain/gcc-3.3.x/toolchain_mips/bin/mips-linux-gcc
LD=/opt/uclibc_mips-toolchain/gcc-3.3.x/toolchain_mips/bin/mips-linux-ld
RANLIB=/opt/uclibc_mips-toolchain/gcc-3.3.x
/toolchain_mips/bin/mips-linux-ranlib
AR=/opt/uclibc_mips-toolchain/gcc-3.3.x/toolchain_mips/bin/mips-linux-ar
AS=/opt/uclibc_mips-toolchain/gcc-3.3.x/toolchain_mips/bin/mips-linux-as
STRIP=/opt/uclibc_mips-toolchain/gcc-3.3.x
/toolchain_mips/bin/mips-linux-strip
KERNELSRC=/root/sumedh/vobs/comac_lsb/source/kernel/opensource/linux_2_4_20
LD_LIBRARY_PATH=/lib:/usr/lib:/opt/uclibc_mips-toolchain/gcc-3.3.x
/toolchain_mips/lib
PATH=$PATH:/opt/uclibc_mips-toolchain/gcc-3.3.x/toolchain_mips/bin
DESTDIR=/sumedh/osb
export ARCH CC LD RANLIB AR AS STRIP KERNELSRC LD_LIBRARY_PATH DESTDIR PATH
===
Now when i say
# make programs
All goes well till i get this error
==
/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
In file included from /root/sumedh/openswan/openswan-2.4.4
/linux/net/ipsec/pfkey_v2_parse.c:64:
/root/sumedh/openswan/openswan-2.4.4/programs/pluto/defs.h:88:17: gmp.h: No
such file or directory
In file included from /root/sumedh/openswan/openswan-2.4.4
/linux/net/ipsec/pfkey_v2_parse.c:64:
/root/sumedh/openswan/openswan-2.4.4/programs/pluto/defs.h:91: error: parse
error before '*' token
/root/sumedh/openswan/openswan-2.4.4/programs/pluto/defs.h:91: warning:
function declaration isn't a prototype
/root/sumedh/openswan/openswan-2.4.4/programs/pluto/defs.h:92: warning: type
defaults to `int' in declaration of `MP_INT'
/root/sumedh/openswan/openswan-2.4.4/programs/pluto/defs.h:92: error: parse
error before '*' token
/root/sumedh/openswan/openswan-2.4.4/programs/pluto/defs.h:92: warning:
function declaration isn't a prototype
make[2]: *** [pfkey_v2_parse.o] Error 1
make[2]: Leaving directory `/root/sumedh/openswan/openswan-2.4.4
/lib/libopenswan'
make[1]: *** [programs] Error 1
make[1]: Leaving directory `/root/sumedh/openswan/openswan-2.4.4/lib'
make: *** [programs] Error 1
==
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"
This i think is made for x86 (the machine on which im building is a fedora
core-3 on x86)
So then when i compile, i get the following error:
===
make[2]: Leaving directory `/root/sumedh/openswan/openswan-2.4.4
/programs/pf_key'
make[2]: Entering directory `/root/sumedh/openswan/openswan-2.4.4
/programs/proc'
make[2]: Nothing to be done for `programs'.
make[2]: Leaving directory `/root/sumedh/openswan/openswan-2.4.4
/programs/proc'
make[2]: Entering directory `/root/sumedh/openswan/openswan-2.4.4
/programs/pluto'
/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=\"root at blramz04.amazon.infineon.com\" -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
/tmp/ccJ3W3g7.s: Assembler messages:
/tmp/ccJ3W3g7.s:6198: Error: unrecognized opcode `rorw $8,$3'
/tmp/ccJ3W3g7.s:6213: Error: unrecognized opcode `rorw $8,$3'
/tmp/ccJ3W3g7.s:8210: Error: unrecognized opcode `rorw $8,$11'
/tmp/ccJ3W3g7.s:8235: Error: unrecognized opcode `rorw $8,$4'
/tmp/ccJ3W3g7.s:15603: Error: unrecognized opcode `rorw $8,$16'
make[2]: *** [connections.o] Error 1
make[2]: Leaving directory `/root/sumedh/openswan/openswan-2.4.4
/programs/pluto'
make[1]: *** [programs] Error 1
make[1]: Leaving directory `/root/sumedh/openswan/openswan-2.4.4/programs'
make: *** [programs] Error 1
===
What do i do ???
thanks in advance :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openswan.org/pipermail/users/attachments/20060118/5284c5c8/attachment.htm
More information about the Users
mailing list