[Openswan Users] cross-compiling -to- mips.

Megharaj megharaj at isofttech.com
Thu Sep 9 10:58:35 CEST 2004


hi,

i tried cross-compile the openswan-2.1.5 for mips,

steps i fallowed:
1) first i tried to compile the linux for mips architecture : it is 
compiling properly.
2) Exported the fallowing variables....

#!/bin/sh
ARCH=mips
CC=/usr/local/mips-linux/bin/mips-linux-gcc
LD=/usr/local/mips-linux/bin/mips-linux-ld
RANLIB=/usr/local/mips-linux/bin/mips-linux-ranlib
AR=/usr/local/mips-linux/bin/mips-linux-ar
AS=/usr/local/mips-linux/bin/mips-linux-as
STRIP=/usr/local/mips-linux/bin/mips-linux-strip
KERNELSRC=/usr/src/linux
LD_LIBRARY_PATH=/usr/local/mips-linux/lib/gcc-lib/mips-linux/2.95.3/
PATH=$PATH:/usr/local/mips-linux/bin
DESTDIR=/usr/src/binaries
export ARCH CC LD RANLIB AR AS STRIP KERNELSRC LD_LIBRARY_PATH DESTDIR PATH


3) Then i tried to build the programs in the openswan.
    it is giving the fallwoing error:

[root at home openswan-2.1.5]# make programs
make[1]: Entering directory `/usr/src/openswan-2.1.5/doc'
make[1]: Nothing to be done for `programs'.
make[1]: Leaving directory `/usr/src/openswan-2.1.5/doc'
make[1]: Entering directory `/usr/src/openswan-2.1.5/lib'
make[2]: Entering directory `/usr/src/openswan-2.1.5/lib/libfreeswan'
mips-linux-gcc -I. -I../../linux/lib/libfreeswan -I../../linux/include -I../.. 
 -g -O3 -Wall -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wbad-function-cast 
  -DNAT_TRAVERSAL   -c -o addrtoa.o ../../linux/lib/libfreeswan/addrtoa.c
In file included from ../../linux/lib/libfreeswan/addrtoa.c:17:
../../linux/lib/libfreeswan/internal.h:56: sys/types.h: No such file or 
directory
../../linux/lib/libfreeswan/internal.h:57: netinet/in.h: No such file or 
directory
../../linux/lib/libfreeswan/internal.h:58: string.h: No such file or 
directory
../../linux/lib/libfreeswan/internal.h:59: ctype.h: No such file or 
directory
../../linux/lib/libfreeswan/internal.h:60: assert.h: No such file or 
directory
In file included from ../../linux/lib/libfreeswan/addrtoa.c:17:
../../linux/lib/libfreeswan/internal.h:73: netdb.h: No such file or 
directory
../../linux/lib/libfreeswan/internal.h:76: stdlib.h: No such file or 
directory
In file included from ../../linux/lib/libfreeswan/addrtoa.c:18:
../../linux/include/openswan.h:34: stdio.h: No such file or directory
../../linux/include/openswan.h:35: netinet/in.h: No such file or directory
make[2]: *** [addrtoa.o] Error 1
make[2]: Leaving directory `/usr/src/openswan-2.1.5/lib/libfreeswan'
make[1]: *** [programs] Error 1
make[1]: Leaving directory `/usr/src/openswan-2.1.5/lib'
make: *** [programs] Error 1
[root at home openswan-2.1.5]#




can ne body tell me what cud be the problem?
It will be a grate help to me....!

Thanx n Rgds
========= 





More information about the Users mailing list