[Openswan Users] Openswan on mips linux

Paul Wouters paul at xelerance.com
Wed Jan 18 16:16:43 CET 2006


On Wed, 18 Jan 2006, Sumedh Degaonkar wrote:

> /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

You need to install (crosscompile) gmp.

> 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)

Yes, that is wrong. And you will still miss the mips compiled gmp library
that you need.

Paul
-- 

"Happiness is never grand"

	--- Mustapha Mond, World Controller (Brave New World)


More information about the Users mailing list