<div>dear members:</div>
<div> I have to use openswan on arm£¬so i cross compiled it,there are some errors:</div>
<p style="TEXT-ALIGN: left; MARGIN: 0cm 0cm 0pt 36pt" class="MsoNormal" align="left"><span lang="EN-US"><font size="3" face="Calibri">arm-linux-gcc -g -Werror -DSCANDIR_HAS_CONST<span style="mso-spacerun: yes"> </span>-I/usr/local/src/openswan-2.6.26/ports/linux/include<span style="mso-spacerun: yes"> </span>-I/usr/local/src/openswan-2.6.26/ports/linux/include<span style="mso-spacerun: yes"> </span>-I/usr/local/src/openswan-2.6.26/ports/linux/include<span style="mso-spacerun: yes"> </span>-I/usr/local/src/openswan-2.6.26/ports/linux/include<span style="mso-spacerun: yes"> </span>-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<span style="mso-spacerun: yes"> </span>-Wall -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wbad-function-cast<span style="mso-spacerun: yes"> </span>-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<span style="mso-spacerun: yes"> </span>-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<span style="mso-spacerun: yes"> </span>/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<span style="mso-spacerun: yes"> </span>-lgmp </font></span></p>
<p style="TEXT-ALIGN: left; MARGIN: 0cm 0cm 0pt 36pt" class="MsoNormal" align="left"><span lang="EN-US"><font size="3" face="Calibri">/usr/local/arm/arm-2008q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lgmp</font></span></p>
<div style="BORDER-BOTTOM: windowtext 1pt solid; BORDER-LEFT: medium none; PADDING-BOTTOM: 1pt; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; MARGIN-LEFT: 36pt; BORDER-TOP: medium none; MARGIN-RIGHT: 0cm; BORDER-RIGHT: medium none; PADDING-TOP: 0cm; mso-element: para-border-div; mso-border-bottom-alt: solid windowtext .75pt">
<p style="BORDER-BOTTOM: medium none; TEXT-ALIGN: left; BORDER-LEFT: medium none; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0cm; mso-border-bottom-alt: solid windowtext .75pt; mso-padding-alt: 0cm 0cm 1.0pt 0cm" class="MsoNormal" align="left">
<span lang="EN-US"><font size="3" face="Calibri">collect2: ld returned 1 exit status</font></span></p></div>
<div>I found that: <font face="Calibri">L:/usr/local/gmp-4.1.4/lib/ shoud be changed to L/usr/local/gmp-4.1.4/lib</font></div>
<div><font face="Calibri">is it a bug in my cross-compiler-toolchain or in openswan-2.6.26 or other problemsӣhow to repair?</font></div>
<div><span style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: small arial, sans-serif; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class="Apple-style-span"><span style="LINE-HEIGHT: 16px; BORDER-COLLAPSE: collapse; WHITE-SPACE: nowrap; FONT-SIZE: medium; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px" class="Apple-style-span"></span></span> </div>
<div><span style="LINE-HEIGHT: normal; WIDOWS: 2; TEXT-TRANSFORM: none; FONT-VARIANT: normal; FONT-STYLE: normal; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT-FAMILY: arial, sans-serif; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); FONT-WEIGHT: normal; WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class="Apple-style-span"><span style="LINE-HEIGHT: 16px; BORDER-COLLAPSE: collapse; WHITE-SPACE: nowrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px" class="Apple-style-span">look forward to your replay,thanks.</span></span></div>
<div><span style="LINE-HEIGHT: normal; WIDOWS: 2; TEXT-TRANSFORM: none; FONT-VARIANT: normal; FONT-STYLE: normal; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT-FAMILY: arial, sans-serif; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); FONT-WEIGHT: normal; WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class="Apple-style-span"><span style="LINE-HEIGHT: 16px; BORDER-COLLAPSE: collapse; WHITE-SPACE: nowrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px" class="Apple-style-span"></span></span> </div>
<div><span style="LINE-HEIGHT: normal; WIDOWS: 2; TEXT-TRANSFORM: none; FONT-VARIANT: normal; FONT-STYLE: normal; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT-FAMILY: arial, sans-serif; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); FONT-WEIGHT: normal; WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class="Apple-style-span"><span style="LINE-HEIGHT: 16px; BORDER-COLLAPSE: collapse; WHITE-SPACE: nowrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px" class="Apple-style-span">tanchangsheng</span></span></div>