Hi David,<br>&nbsp;<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>&nbsp;<br>Fix to openssh will be really helpful.<br>&nbsp;<br>thanks<br>
Sara.<br><br>
<div class="gmail_quote">On Thu, Jul 10, 2008 at 2:40 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">
<div class="Ih2E3d"><br>Jivin saravanan chanemouganandam lays it down ...<br></div>
<div class="Ih2E3d">&gt; Hello David,<br>&gt;<br>&gt; I am using vendors ADI linux distribution which uses snapgear linux and tool<br>&gt; chain to build kernel and rootfs. The distro contains<br>&gt; older versions of dropbear and doesn&#39;t provide support to build ssh and sshd<br>
&gt; ( missing libssl ). Even snapgear&#39;s latest version doesn&#39;t include support<br>&gt; for building ssh ( throws missing openssl). I don&#39;t know whether am missing<br>&gt; something to build ssh packages inside<br>
&gt; snapgear. There are discussion about patches for ssh with older version but<br>&gt; am not interested with the older version.<br><br></div>We do not include openssl in the dist due to export issues in Australia. &nbsp;We<br>
can provide a patch though.<br><br>You can locate dist instructions and a newer openssl patch from:<br><br>&nbsp; &nbsp; &nbsp; &nbsp;<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>&gt; So I prefer to build dropbear an alternative to ssh outside the snapgear<br>&gt; tree.<br>&gt;<br>&gt; Well am using the stable version of arm-linux-tools-20061213.tar.gz from<br>&gt; snapgear and moreover static leaves out a larger in size that doesn&#39;t<br>
&gt; interest well for the small flash size.<br>&gt;<br>&gt; I think by default it builds against glibc and not using uclibc. Is there a<br>&gt; way to override by compiler options to use<br>&gt; uclibc while building ?<br>
<br></div>You need to build against the includes and libraries built when you<br>build the dist. &nbsp;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>&gt; On Thu, Jul 10, 2008 at 1:53 PM, David McCullough &lt;<br>&gt; <a href="mailto:David_Mccullough@securecomputing.com">David_Mccullough@securecomputing.com</a>&gt; wrote:<br>&gt;<br>&gt; &gt;<br>
&gt; &gt; Jivin saravanan chanemouganandam lays it down ...<br>&gt; &gt; &gt; *Hi all; *<br>&gt; &gt; &gt; **<br>&gt; &gt; &gt; *I am trying to cross compile dropbear package outside the snapgear<br>&gt; &gt; source<br>&gt; &gt; &gt; tree for and embedded<br>
&gt; &gt; &gt; solution running ARM-linux on IXP425 Big endian system. &nbsp;*<br>&gt; &gt; &gt; **<br>&gt; &gt; &gt; *The package builds correctly using make PROGRAMS=&quot;dropbear scp&quot; with<br>&gt; &gt; &gt; options CC=arm-linux-gcc -mbig-endian. *<br>
&gt; &gt; &gt; *But, when I download and execute the scp: ELF 32-bit MSB executable, ARM<br>&gt; &gt; &gt; ,version 1 (ARM), for GNU/Linux 2.0.0, dynamically linked*<br>&gt; &gt; &gt; *(uses shared libs), for GNU/Linux 2.0.0, not stripped ...into my board,<br>
&gt; &gt; I<br>&gt; &gt; &gt; get the following error..*<br>&gt; &gt;<br>&gt; &gt; This will build dropbear against the compiler libraries, &nbsp;not the<br>&gt; &gt; snapgear libraries.<br>&gt; &gt;<br>&gt; &gt; The compilers are glibc based, &nbsp;the snapgear dist will be uClibc based.<br>
&gt; &gt; You will not be able to run the dropbear executable under the snapgear<br>&gt; &gt; image because the glibc libraries will not be there.<br>&gt; &gt;<br>&gt; &gt; You could try adding &quot;-static&quot;, &nbsp;but if it depends on any shared libs<br>
&gt; &gt; you will be out of luck. &nbsp;Check this with &quot;ldd dropbear&quot;<br>&gt; &gt;<br>&gt; &gt; &gt; **<br>&gt; &gt; &gt; *# ./scp<br>&gt; &gt; &gt; libc.so.6: aborted attempt to load ./scp!*<br>&gt; &gt; &gt; **<br>
&gt; &gt; &gt; *Snap shots of few libraries on the /lib of the target board are *<br>&gt; &gt; &gt; **<br>&gt; &gt; &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></div></div>&gt; &gt; &gt; <a href="http://ld-uclibc-0.9.27.so/" target="_blank">ld-uClibc-0.9.27.so</a> &lt;<a href="http://ld-uclibc-0.9.27.so/" target="_blank">http://ld-uclibc-0.9.27.so/</a>&gt;<br>
&gt; &gt; &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>&lt;<a href="http://ld-uclibc-0.9.27.so/" target="_blank">http://ld-uclibc-0.9.27.so/</a>&gt;<br>

<div class="Ih2E3d">&gt; &gt; &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></div>&gt; &gt; &gt; <a href="http://ld-uclibc-0.9.27.so/" target="_blank">ld-uClibc-0.9.27.so</a> &lt;<a href="http://ld-uclibc-0.9.27.so/" target="_blank">http://ld-uclibc-0.9.27.so/</a>&gt;<br>

<div class="Ih2E3d">&gt; &gt; &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></div>&gt; &gt; &gt; <a href="http://libuclibc-0.9.27.so/" target="_blank">libuClibc-0.9.27.so</a> &lt;<a href="http://libuclibc-0.9.27.so/" target="_blank">http://libuclibc-0.9.27.so/</a>&gt;<br>

<div class="Ih2E3d">&gt; &gt; &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; &gt; &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; &gt; &gt; <a href="http://libcrypt-0.9.27.so/" target="_blank">libcrypt-0.9.27.so</a><br>&gt; &gt; &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></div>&gt; &gt; &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>&lt;<a href="http://libuclibc-0.9.27.so/" target="_blank">http://libuclibc-0.9.27.so/</a>&gt;<br>

<div class="Ih2E3d">&gt; &gt; &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; &gt; &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; &gt; &gt; <a href="http://libutil-0.9.27.so/" target="_blank">libutil-0.9.27.so</a><br>&gt; &gt; &gt; **<br>&gt; &gt; &gt; *I think I&#39;m getting this error because I&#39;m using the snapgear packages<br>&gt; &gt; with<br>
&gt; &gt; &gt;<br>&gt; &gt; &gt; uClibc instead of glibc and tool chain arm-linux-tools-20061213.tar.gz.*<br>&gt; &gt; &gt; **<br>&gt; &gt; &gt; *Any ideas on how to correct this in the makefiles to use the correct<br>&gt; &gt; &gt; dynamic linking libraries? *<br>
&gt; &gt;<br>&gt; &gt; There is a version of dropbear in the snapgear/uClinux-dist, &nbsp;just use<br>&gt; &gt; that or upgrade it to the version you want and build dropbeasr within<br>&gt; &gt; the dist&#39;s build framework and you won&#39;t have any problems,<br>
&gt; &gt;<br>&gt; &gt; Cheers,<br>&gt; &gt; Davidm<br>&gt; &gt;<br>&gt; &gt; --<br>&gt; &gt; David McCullough, &nbsp;<a href="mailto:david_mccullough@securecomputing.com">david_mccullough@securecomputing.com</a>, &nbsp; Ph:+61<br>&gt; &gt; 734352815<br>
</div>&gt; &gt; Secure Computing - SnapGear &nbsp;<a href="http://www.ucdot.org/" target="_blank">http://www.uCdot.org</a> &lt;<a href="http://www.ucdot.org/" target="_blank">http://www.ucdot.org/</a>&gt;<br>&gt; &gt; <a href="http://www.snapgear.com/" target="_blank">http://www.snapgear.com</a><br>
&gt; &gt;<br><font color="#888888"><br>--<br></font>
<div>
<div></div>
<div class="Wj3C7c">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>
</div></div></blockquote></div><br>