<div>Hello David,</div>
<div> </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't provide support to build ssh and sshd ( missing libssl ). Even snapgear's latest version doesn't include support for building ssh ( throws missing openssl). I don'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> </div>
<div>So I prefer to build dropbear an alternative to ssh outside the snapgear tree. </div>
<div> </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't interest well for the small flash size. </div>
<div> </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> </div>
<div>Thanks</div>
<div>sara</div>
<div> </div>
<div><br><br> </div>
<div class="gmail_quote">On Thu, Jul 10, 2008 at 1:53 PM, David McCullough <<a href="mailto:David_Mccullough@securecomputing.com">David_Mccullough@securecomputing.com</a>> 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>> *Hi all; *<br>
<div class="Ih2E3d">> **<br>> *I am trying to cross compile dropbear package outside the snapgear source<br>> tree for and embedded<br>> solution running ARM-linux on IXP425 Big endian system. *<br>> **<br>
> *The package builds correctly using make PROGRAMS="dropbear scp" with<br>> options CC=arm-linux-gcc -mbig-endian. *<br>> *But, when I download and execute the scp: ELF 32-bit MSB executable, ARM<br>> ,version 1 (ARM), for GNU/Linux 2.0.0, dynamically linked*<br>
> *(uses shared libs), for GNU/Linux 2.0.0, not stripped ...into my board, I<br></div>> get the following error..*<br><br>This will build dropbear against the compiler libraries, not the<br>snapgear libraries.<br><br>
The compilers are glibc based, 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 "-static", but if it depends on any shared libs<br>
you will be out of luck. Check this with "ldd dropbear"<br><br>> **<br>> *# ./scp<br>
<div class="Ih2E3d">> libc.so.6: aborted attempt to load ./scp!*<br>> **<br>> *Snap shots of few libraries on the /lib of the target board are *<br>> **<br>> 0 lrwxrwxrwx 1 0 0 24 ld-linux.so.2 -> /lib/<br>
> <a href="http://ld-uclibc-0.9.27.so/" target="_blank">ld-uClibc-0.9.27.so</a><br>> 22 -rwxrwxrwx 1 0 0 21312 <a href="http://ld-uclibc-0.9.27.so/" target="_blank">ld-uClibc-0.9.27.so</a><br>> 0 lrwxrwxrwx 1 0 0 19 ld-uClibc.so.0 -><br>
> <a href="http://ld-uclibc-0.9.27.so/" target="_blank">ld-uClibc-0.9.27.so</a><br>> 0 lrwxrwxrwx 1 0 0 19 libc.so.0 -><br>> <a href="http://libuclibc-0.9.27.so/" target="_blank">libuClibc-0.9.27.so</a><br>
> 11 -rw-rw-rw- 1 0 0 10688 <a href="http://libcrypt-0.9.27.so/" target="_blank">libcrypt-0.9.27.so</a><br>> 0 lrwxrwxrwx 1 0 0 18 libcrypt.so.0 -><br>> <a href="http://libcrypt-0.9.27.so/" target="_blank">libcrypt-0.9.27.so</a><br>
> 930 -rwxr-xr-x 1 0 0 946960 libcrypto.so.0.9.8<br>> 73 -rw-rw-rw- 1 0 0 276256 <a href="http://libuclibc-0.9.27.so/" target="_blank">libuClibc-0.9.27.so</a><br>> 5 -rw-rw-rw- 1 0 0 4120 <a href="http://libutil-0.9.27.so/" target="_blank">libutil-0.9.27.so</a><br>
> 0 lrwxrwxrwx 1 0 0 17 libutil.so.0 -><br>> <a href="http://libutil-0.9.27.so/" target="_blank">libutil-0.9.27.so</a><br>> **<br>> *I think I'm getting this error because I'm using the snapgear packages with<br>
><br>> uClibc instead of glibc and tool chain arm-linux-tools-20061213.tar.gz.*<br>> **<br>> *Any ideas on how to correct this in the makefiles to use the correct<br></div>> dynamic linking libraries? *<br>
<br>There is a version of dropbear in the snapgear/uClinux-dist, just use<br>that or upgrade it to the version you want and build dropbeasr within<br>the dist's build framework and you won't have any problems,<br>
<br>Cheers,<br>Davidm<br><font color="#888888"><br>--<br>David McCullough, <a href="mailto:david_mccullough@securecomputing.com">david_mccullough@securecomputing.com</a>, Ph:+61 734352815<br>Secure Computing - SnapGear <a href="http://www.ucdot.org/" target="_blank">http://www.uCdot.org</a> <a href="http://www.snapgear.com/" target="_blank">http://www.snapgear.com</a><br>
</font></blockquote></div><br>