Hello David, I am using vendors ADI linux distribution which uses snapgear linux and tool chain to build kernel and rootfs. The distro contains 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 snapgear. There are discussion about patches for ssh with older version but am not interested with the older version.
So I prefer to build dropbear an alternative to ssh outside the snapgear tree. 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. I think by default it builds against glibc and not using uclibc. Is there a way to override by compiler options to use uclibc while building ? Thanks sara On Thu, Jul 10, 2008 at 1:53 PM, David McCullough < [EMAIL PROTECTED]> wrote: > > Jivin saravanan chanemouganandam lays it down ... > > *Hi all; * > > ** > > *I am trying to cross compile dropbear package outside the snapgear > source > > tree for and embedded > > solution running ARM-linux on IXP425 Big endian system. * > > ** > > *The package builds correctly using make PROGRAMS="dropbear scp" with > > options CC=arm-linux-gcc -mbig-endian. * > > *But, when I download and execute the scp: ELF 32-bit MSB executable, ARM > > ,version 1 (ARM), for GNU/Linux 2.0.0, dynamically linked* > > *(uses shared libs), for GNU/Linux 2.0.0, not stripped ...into my board, > I > > get the following error..* > > This will build dropbear against the compiler libraries, not the > snapgear libraries. > > The compilers are glibc based, the snapgear dist will be uClibc based. > You will not be able to run the dropbear executable under the snapgear > image because the glibc libraries will not be there. > > You could try adding "-static", but if it depends on any shared libs > you will be out of luck. Check this with "ldd dropbear" > > > ** > > *# ./scp > > libc.so.6: aborted attempt to load ./scp!* > > ** > > *Snap shots of few libraries on the /lib of the target board are * > > ** > > 0 lrwxrwxrwx 1 0 0 24 ld-linux.so.2 -> /lib/ > > ld-uClibc-0.9.27.so <http://ld-uclibc-0.9.27.so/> > > 22 -rwxrwxrwx 1 0 0 21312 > > ld-uClibc-0.9.27.so<http://ld-uclibc-0.9.27.so/> > > 0 lrwxrwxrwx 1 0 0 19 ld-uClibc.so.0 -> > > ld-uClibc-0.9.27.so <http://ld-uclibc-0.9.27.so/> > > 0 lrwxrwxrwx 1 0 0 19 libc.so.0 -> > > libuClibc-0.9.27.so <http://libuclibc-0.9.27.so/> > > 11 -rw-rw-rw- 1 0 0 10688 libcrypt-0.9.27.so > > 0 lrwxrwxrwx 1 0 0 18 libcrypt.so.0 -> > > libcrypt-0.9.27.so > > 930 -rwxr-xr-x 1 0 0 946960 libcrypto.so.0.9.8 > > 73 -rw-rw-rw- 1 0 0 276256 > > libuClibc-0.9.27.so<http://libuclibc-0.9.27.so/> > > 5 -rw-rw-rw- 1 0 0 4120 libutil-0.9.27.so > > 0 lrwxrwxrwx 1 0 0 17 libutil.so.0 -> > > libutil-0.9.27.so > > ** > > *I think I'm getting this error because I'm using the snapgear packages > with > > > > uClibc instead of glibc and tool chain arm-linux-tools-20061213.tar.gz.* > > ** > > *Any ideas on how to correct this in the makefiles to use the correct > > dynamic linking libraries? * > > There is a version of dropbear in the snapgear/uClinux-dist, just use > that or upgrade it to the version you want and build dropbeasr within > the dist's build framework and you won't have any problems, > > Cheers, > Davidm > > -- > David McCullough, [EMAIL PROTECTED], Ph:+61 > 734352815 > Secure Computing - SnapGear http://www.uCdot.org <http://www.ucdot.org/> > http://www.snapgear.com >
_______________________________________________ uClibc mailing list [email protected] http://busybox.net/cgi-bin/mailman/listinfo/uclibc
