<div>Hello David,</div>
<div>&nbsp;</div>
<div>I am using vendors ADI linux distribution which uses snapgear linux and tool chain to build kernel and rootfs. The distro contains</div>
<div>older versions of dropbear and doesn&#39;t provide support&nbsp;to build ssh and sshd ( missing libssl ). Even snapgear&#39;s latest version doesn&#39;t include support for building ssh ( throws missing openssl). I don&#39;t know whether am missing something to build ssh packages inside</div>

<div>snapgear. There are discussion about patches for ssh with older version but am not interested with the older version.</div>
<div>&nbsp;</div>
<div>So I prefer to build dropbear an alternative to ssh outside the snapgear tree. </div>
<div>&nbsp;</div>
<div>Well am using the stable version of arm-linux-tools-20061213.tar.gz from snapgear and moreover static leaves out a larger in size that doesn&#39;t interest well for the small flash size. </div>
<div>&nbsp;</div>
<div>I think by default it builds against glibc and not using uclibc. Is there a way to override by compiler options to use </div>
<div>uclibc while building ?</div>
<div>&nbsp;</div>
<div>Thanks</div>
<div>sara</div>
<div>&nbsp;</div>
<div><br><br>&nbsp;</div>
<div class="gmail_quote">On Thu, Jul 10, 2008 at 1:53 PM, David McCullough &lt;<a href="mailto:David_Mccullough@securecomputing.com">David_Mccullough@securecomputing.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>Jivin saravanan chanemouganandam lays it down ...<br>&gt; *Hi all; *<br>
<div class="Ih2E3d">&gt; **<br>&gt; *I am trying to cross compile dropbear package outside the snapgear source<br>&gt; tree for and embedded<br>&gt; solution running ARM-linux on IXP425 Big endian system. &nbsp;*<br>&gt; **<br>
&gt; *The package builds correctly using make PROGRAMS=&quot;dropbear scp&quot; with<br>&gt; options CC=arm-linux-gcc -mbig-endian. *<br>&gt; *But, when I download and execute the scp: ELF 32-bit MSB executable, ARM<br>&gt; ,version 1 (ARM), for GNU/Linux 2.0.0, dynamically linked*<br>
&gt; *(uses shared libs), for GNU/Linux 2.0.0, not stripped ...into my board, I<br></div>&gt; get the following error..*<br><br>This will build dropbear against the compiler libraries, &nbsp;not the<br>snapgear libraries.<br><br>
The compilers are glibc based, &nbsp;the snapgear dist will be uClibc based.<br>You will not be able to run the dropbear executable under the snapgear<br>image because the glibc libraries will not be there.<br><br>You could try adding &quot;-static&quot;, &nbsp;but if it depends on any shared libs<br>
you will be out of luck. &nbsp;Check this with &quot;ldd dropbear&quot;<br><br>&gt; **<br>&gt; *# ./scp<br>
<div class="Ih2E3d">&gt; libc.so.6: aborted attempt to load ./scp!*<br>&gt; **<br>&gt; *Snap shots of few libraries on the /lib of the target board are *<br>&gt; **<br>&gt; &nbsp;0 lrwxrwxrwx &nbsp; &nbsp;1 0 &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;24 ld-linux.so.2 -&gt; /lib/<br>
&gt; <a href="http://ld-uclibc-0.9.27.so/" target="_blank">ld-uClibc-0.9.27.so</a><br>&gt; &nbsp; 22 -rwxrwxrwx &nbsp; &nbsp;1 0 &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 21312 <a href="http://ld-uclibc-0.9.27.so/" target="_blank">ld-uClibc-0.9.27.so</a><br>&gt; &nbsp; &nbsp;0 lrwxrwxrwx &nbsp; &nbsp;1 0 &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;19 ld-uClibc.so.0 -&gt;<br>
&gt; <a href="http://ld-uclibc-0.9.27.so/" target="_blank">ld-uClibc-0.9.27.so</a><br>&gt; &nbsp; &nbsp;0 lrwxrwxrwx &nbsp; &nbsp;1 0 &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;19 libc.so.0 -&gt;<br>&gt; <a href="http://libuclibc-0.9.27.so/" target="_blank">libuClibc-0.9.27.so</a><br>
&gt; &nbsp; 11 -rw-rw-rw- &nbsp; &nbsp;1 0 &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 10688 <a href="http://libcrypt-0.9.27.so/" target="_blank">libcrypt-0.9.27.so</a><br>&gt; &nbsp; &nbsp;0 lrwxrwxrwx &nbsp; &nbsp;1 0 &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;18 libcrypt.so.0 -&gt;<br>&gt; <a href="http://libcrypt-0.9.27.so/" target="_blank">libcrypt-0.9.27.so</a><br>
&gt; &nbsp;930 -rwxr-xr-x &nbsp; &nbsp;1 0 &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;946960 libcrypto.so.0.9.8<br>&gt; 73 -rw-rw-rw- &nbsp; &nbsp;1 0 &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;276256 <a href="http://libuclibc-0.9.27.so/" target="_blank">libuClibc-0.9.27.so</a><br>&gt; &nbsp; &nbsp;5 -rw-rw-rw- &nbsp; &nbsp;1 0 &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;4120 <a href="http://libutil-0.9.27.so/" target="_blank">libutil-0.9.27.so</a><br>
&gt; &nbsp; &nbsp;0 lrwxrwxrwx &nbsp; &nbsp;1 0 &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;17 libutil.so.0 -&gt;<br>&gt; <a href="http://libutil-0.9.27.so/" target="_blank">libutil-0.9.27.so</a><br>&gt; **<br>&gt; *I think I&#39;m getting this error because I&#39;m using the snapgear packages with<br>
&gt;<br>&gt; uClibc instead of glibc and tool chain arm-linux-tools-20061213.tar.gz.*<br>&gt; **<br>&gt; *Any ideas on how to correct this in the makefiles to use the correct<br></div>&gt; dynamic linking libraries? *<br>
<br>There is a version of dropbear in the snapgear/uClinux-dist, &nbsp;just use<br>that or upgrade it to the version you want and build dropbeasr within<br>the dist&#39;s build framework and you won&#39;t have any problems,<br>
<br>Cheers,<br>Davidm<br><font color="#888888"><br>--<br>David McCullough, &nbsp;<a href="mailto:david_mccullough@securecomputing.com">david_mccullough@securecomputing.com</a>, &nbsp; Ph:+61 734352815<br>Secure Computing - SnapGear &nbsp;<a href="http://www.ucdot.org/" target="_blank">http://www.uCdot.org</a> &nbsp; <a href="http://www.snapgear.com/" target="_blank">http://www.snapgear.com</a><br>
</font></blockquote></div><br>