[strongSwan] StrongSwan Cross Compile

Larry Tovey ltovey at innoflight.com
Wed May 18 20:06:43 CEST 2011


Anyone,

 

I am trying to cross compile StrongSwan from a standard Linux distribution
to a Microblaze target.  I am using xldk/microblaze_v1.0 toolchain available
from the Xilinx git site at:

 

http://git.xilinx.com/?p=xldk/microblaze_v1.0.git;a=summary

 

I use the following make command after configuring:

 

make CROSS_COMPILE=mb-linux- LIBTOOL=mb-linux-libtool CC=mb-linux-gcc
AR=mb-linux-ar RANLIB=mb-linux-ranlib

 

It starts compiling for a few moments, then gives the following errors shown
below.  Any ideas about what the problem might be?  Thanks for your help.

 

Making all in starter

make[3]: Entering directory `/root/strongswan-4.5.0/src/starter'

mb-linux-libtool --tag=CC   --mode=link mb-linux-gcc
-DIPSEC_DIR=\"/opt/filesystem_microblaze/usr/libexec/ipsec\"
-DIPSEC_CONFDIR=\"/opt/filesystem_microblaze/etc\"
-DIPSEC_PIDDIR=\"/var/run\" -DIPSEC_EAPDIR=\"\" -DDEV_RANDOM=\"/dev/random\"
-DDEV_URANDOM=\"/dev/urandom\" -DDEBUG  -DSTART_CHARON -DLOAD_WARNING -g -O2
-Wall -Wno-format -Wno-pointer-sign -Wno-strict-aliasing
-L/opt/filesystem_microblaze/usr/lib -o starter y.tab.o netkey.o
starterwhack.o starterstroke.o invokepluto.o confread.o interfaces.o args.o
keywords.o cmp.o starter.o exec.o invokecharon.o lex.yy.o loglite.o klips.o
defs.o ../../src/libfreeswan/libfreeswan.a
../../src/libstrongswan/libstrongswan.la

mb-linux-libtool: link: mb-linux-gcc
-DIPSEC_DIR=\"/opt/filesystem_microblaze/usr/libexec/ipsec\"
-DIPSEC_CONFDIR=\"/opt/filesystem_microblaze/etc\"
-DIPSEC_PIDDIR=\"/var/run\" -DIPSEC_EAPDIR=\"\" -DDEV_RANDOM=\"/dev/random\"
-DDEV_URANDOM=\"/dev/urandom\" -DDEBUG -DSTART_CHARON -DLOAD_WARNING -g -O2
-Wall -Wno-format -Wno-pointer-sign -Wno-strict-aliasing -o .libs/starter
y.tab.o netkey.o starterwhack.o starterstroke.o invokepluto.o confread.o
interfaces.o args.o keywords.o cmp.o starter.o exec.o invokecharon.o
lex.yy.o loglite.o klips.o defs.o  -L/opt/filesystem_microblaze/usr/lib
../../src/libfreeswan/libfreeswan.a
../../src/libstrongswan/.libs/libstrongswan.so -lpthread -ldl -lrt
-Wl,-rpath -Wl,/opt/filesystem_microblaze/usr/lib

../../src/libstrongswan/.libs/libstrongswan.so: undefined reference to
`pthread_condattr_setclock'

../../src/libstrongswan/.libs/libstrongswan.so: undefined reference to
`__sync_fetch_and_add_4'

../../src/libstrongswan/.libs/libstrongswan.so: undefined reference to
`register_printf_specifier'

../../src/libstrongswan/.libs/libstrongswan.so: undefined reference to
`__sync_sub_and_fetch_4'

collect2: ld returned 1 exit status

make[3]: *** [starter] Error 1

make[3]: Leaving directory `/root/strongswan-4.5.0/src/starter'

make[2]: *** [all-recursive] Error 1

make[2]: Leaving directory `/root/strongswan-4.5.0/src'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/root/strongswan-4.5.0'

make: *** [all] Error 2

 

-LT

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strongswan.org/pipermail/users/attachments/20110518/f4d392d0/attachment.html>


More information about the Users mailing list