<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Courier;
        panose-1:2 7 4 9 2 2 5 2 4 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Anyone,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>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:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><a href="http://git.xilinx.com/?p=xldk/microblaze_v1.0.git;a=summary">http://git.xilinx.com/?p=xldk/microblaze_v1.0.git;a=summary</a><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I use the following make command after configuring:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>make CROSS_COMPILE=mb-linux- LIBTOOL=mb-linux-libtool CC=mb-linux-gcc AR=mb-linux-ar RANLIB=mb-linux-ranlib<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>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.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Making all in starter<o:p></o:p></p><p class=MsoNormal>make[3]: Entering directory `/root/strongswan-4.5.0/src/starter'<o:p></o:p></p><p class=MsoNormal>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<o:p></o:p></p><p class=MsoNormal>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<o:p></o:p></p><p class=MsoNormal>../../src/libstrongswan/.libs/libstrongswan.so: undefined reference to `pthread_condattr_setclock'<o:p></o:p></p><p class=MsoNormal>../../src/libstrongswan/.libs/libstrongswan.so: undefined reference to `__sync_fetch_and_add_4'<o:p></o:p></p><p class=MsoNormal>../../src/libstrongswan/.libs/libstrongswan.so: undefined reference to `register_printf_specifier'<o:p></o:p></p><p class=MsoNormal>../../src/libstrongswan/.libs/libstrongswan.so: undefined reference to `__sync_sub_and_fetch_4'<o:p></o:p></p><p class=MsoNormal>collect2: ld returned 1 exit status<o:p></o:p></p><p class=MsoNormal>make[3]: *** [starter] Error 1<o:p></o:p></p><p class=MsoNormal>make[3]: Leaving directory `/root/strongswan-4.5.0/src/starter'<o:p></o:p></p><p class=MsoNormal>make[2]: *** [all-recursive] Error 1<o:p></o:p></p><p class=MsoNormal>make[2]: Leaving directory `/root/strongswan-4.5.0/src'<o:p></o:p></p><p class=MsoNormal>make[1]: *** [all-recursive] Error 1<o:p></o:p></p><p class=MsoNormal>make[1]: Leaving directory `/root/strongswan-4.5.0'<o:p></o:p></p><p class=MsoNormal>make: *** [all] Error 2<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:Courier;color:#1F497D'>-LT</span><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>