Hi David,<br> <br>I got stuck up in applying openssl patches from ocf link. Could you please send me those patches to reinclude to <br>give support for openssh.<br> <br>Fix to openssh will be really helpful.<br> <br>thanks<br>
Sara.<br><br>
<div class="gmail_quote">On Thu, Jul 10, 2008 at 2:40 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">
<div class="Ih2E3d"><br>Jivin saravanan chanemouganandam lays it down ...<br></div>
<div class="Ih2E3d">> Hello David,<br>><br>> I am using vendors ADI linux distribution which uses snapgear linux and tool<br>> chain to build kernel and rootfs. The distro contains<br>> older versions of dropbear and doesn't provide support to build ssh and sshd<br>
> ( missing libssl ). Even snapgear's latest version doesn't include support<br>> for building ssh ( throws missing openssl). I don't know whether am missing<br>> something to build ssh packages inside<br>
> snapgear. There are discussion about patches for ssh with older version but<br>> am not interested with the older version.<br><br></div>We do not include openssl in the dist due to export issues in Australia. We<br>
can provide a patch though.<br><br>You can locate dist instructions and a newer openssl patch from:<br><br> <a href="http://ocf-linux.sourceforge.net/" target="_blank">ocf-linux.sourceforge.net</a><br><br>If you get stuck I can send you a patch to re-include it.<br>
<div class="Ih2E3d"><br>> So I prefer to build dropbear an alternative to ssh outside the snapgear<br>> tree.<br>><br>> Well am using the stable version of arm-linux-tools-20061213.tar.gz from<br>> snapgear and moreover static leaves out a larger in size that doesn't<br>
> interest well for the small flash size.<br>><br>> I think by default it builds against glibc and not using uclibc. Is there a<br>> way to override by compiler options to use<br>> uclibc while building ?<br>
<br></div>You need to build against the includes and libraries built when you<br>build the dist. It is possible by setting ROOTDIR to point at the dist<br>toplevel and setting CC = $(ROOTDIR)/tools/ucfront-gcc arm-linux-gcc<br>
<br>But you will be much better off adding your apps to the dist build,<br><br>Cheers,<br>Davidm<br>
<div>
<div></div>
<div class="Wj3C7c"><br><br>> On Thu, Jul 10, 2008 at 1:53 PM, David McCullough <<br>> <a href="mailto:David_Mccullough@securecomputing.com">David_Mccullough@securecomputing.com</a>> wrote:<br>><br>> ><br>
> > Jivin saravanan chanemouganandam lays it down ...<br>> > > *Hi all; *<br>> > > **<br>> > > *I am trying to cross compile dropbear package outside the snapgear<br>> > 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,<br>
> > I<br>> > > 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>> > > 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></div></div>> > > <a href="http://ld-uclibc-0.9.27.so/" target="_blank">ld-uClibc-0.9.27.so</a> <<a href="http://ld-uclibc-0.9.27.so/" target="_blank">http://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><<a href="http://ld-uclibc-0.9.27.so/" target="_blank">http://ld-uclibc-0.9.27.so/</a>><br>
<div class="Ih2E3d">> > > 0 lrwxrwxrwx 1 0 0 19 ld-uClibc.so.0 -><br></div>> > > <a href="http://ld-uclibc-0.9.27.so/" target="_blank">ld-uClibc-0.9.27.so</a> <<a href="http://ld-uclibc-0.9.27.so/" target="_blank">http://ld-uclibc-0.9.27.so/</a>><br>
<div class="Ih2E3d">> > > 0 lrwxrwxrwx 1 0 0 19 libc.so.0 -><br></div>> > > <a href="http://libuclibc-0.9.27.so/" target="_blank">libuClibc-0.9.27.so</a> <<a href="http://libuclibc-0.9.27.so/" target="_blank">http://libuclibc-0.9.27.so/</a>><br>
<div class="Ih2E3d">> > > 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></div>> > > 73 -rw-rw-rw- 1 0 0 276256 <a href="http://libuclibc-0.9.27.so/" target="_blank">libuClibc-0.9.27.so</a><<a href="http://libuclibc-0.9.27.so/" target="_blank">http://libuclibc-0.9.27.so/</a>><br>
<div class="Ih2E3d">> > > 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<br>> > 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>> > > 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>> ><br>> > --<br>> > David McCullough, <a href="mailto:david_mccullough@securecomputing.com">david_mccullough@securecomputing.com</a>, Ph:+61<br>> > 734352815<br>
</div>> > Secure Computing - SnapGear <a href="http://www.ucdot.org/" target="_blank">http://www.uCdot.org</a> <<a href="http://www.ucdot.org/" target="_blank">http://www.ucdot.org/</a>><br>> > <a href="http://www.snapgear.com/" target="_blank">http://www.snapgear.com</a><br>
> ><br><font color="#888888"><br>--<br></font>
<div>
<div></div>
<div class="Wj3C7c">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>
</div></div></blockquote></div><br>