[Openswan Users] some questions about openswan

Tan tanchangsheng at gmail.com
Tue Jun 8 05:22:18 EDT 2010


dear members:
 I have to use openswan on arm,so i cross compiled it,there are some errors:

arm-linux-gcc -g -Werror -DSCANDIR_HAS_CONST
-I/usr/local/src/openswan-2.6.26/ports/linux/include
-I/usr/local/src/openswan-2.6.26/ports/linux/include
-I/usr/local/src/openswan-2.6.26/ports/linux/include
-I/usr/local/src/openswan-2.6.26/ports/linux/include
-I/usr/local/src/openswan-2.6.26
-I/usr/local/src/openswan-2.6.26/linux/include
-I/usr/local/src/openswan-2.6.26/include  -Wall -Wpointer-arith -Wcast-qual
-Wstrict-prototypes -Wbad-function-cast  -DKLIPS -DNAT_TRAVERSAL
-DNAT_TRAVERSAL -DKERNEL_ALG -DIKE_ALG -DFINALCONFDIR=\"/etc\"
-DFINALCONFDDIR=\"/etc/ipsec.d\" -DFINALCONFFILE=\"/etc/ipsec.conf\"
-DFINALVARDIR=\"/var\" -Werror -o showpolicy showpolicy.o
-L:/usr/local/gmp-4.1.4/lib/
/usr/local/src/openswan-2.6.26/OBJ.linux.i386/lib/libipsecpolicy/libipsecpolicy.a
/usr/local/src/openswan-2.6.26/OBJ.linux.i386/lib/libopenswan/libopenswan.a
/usr/local/src/openswan-2.6.26/OBJ.linux.i386/lib/libipsecpolicy/libipsecpolicy.a
/usr/local/src/openswan-2.6.26/OBJ.linux.i386/lib/libopenswan/libopenswan.a
-lgmp

/usr/local/arm/arm-2008q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld:
cannot find -lgmp

collect2: ld returned 1 exit status
I found that: L:/usr/local/gmp-4.1.4/lib/  shoud be changed to
L/usr/local/gmp-4.1.4/lib
is it a bug in my cross-compiler-toolchain or in openswan-2.6.26 or other
problems。how to repair?

look forward to your replay,thanks.

tanchangsheng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openswan.org/pipermail/users/attachments/20100608/87c5e9b5/attachment.html 


More information about the Users mailing list