libc.so.6: aborted attempt to load
Carmelo AMOROSO
carmelo.amoroso at st.com
Thu Jul 10 14:28:52 UTC 2008
saravanan chanemouganandam wrote:
> Hi David,
>
> I got stuck up in applying openssl patches from ocf link. Could you
> please send me those patches to reinclude to
> give support for openssh.
>
> Fix to openssh will be really helpful.
>
> thanks
> Sara.
it seems not be uclibc related discussion, please move to proper list.
Thanks,
Carmelo
>
> On Thu, Jul 10, 2008 at 2:40 PM, David McCullough
> <David_Mccullough at securecomputing.com
> <mailto:David_Mccullough at securecomputing.com>> wrote:
>
>
> Jivin saravanan chanemouganandam lays it down ...
> > 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.
>
> We do not include openssl in the dist due to export issues in
> Australia. We
> can provide a patch though.
>
> You can locate dist instructions and a newer openssl patch from:
>
> ocf-linux.sourceforge.net <http://ocf-linux.sourceforge.net/>
>
> If you get stuck I can send you a patch to re-include it.
>
> > 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 ?
>
> You need to build against the includes and libraries built when you
> build the dist. It is possible by setting ROOTDIR to point at the dist
> toplevel and setting CC = $(ROOTDIR)/tools/ucfront-gcc arm-linux-gcc
>
> But you will be much better off adding your apps to the dist build,
>
> Cheers,
> Davidm
>
>
> > On Thu, Jul 10, 2008 at 1:53 PM, David McCullough <
> > David_Mccullough at securecomputing.com
> <mailto:David_Mccullough at securecomputing.com>> 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/>
> <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/><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/>
> <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/>
> <http://libuclibc-0.9.27.so/>
> > > > 11 -rw-rw-rw- 1 0 0 10688
> libcrypt-0.9.27.so <http://libcrypt-0.9.27.so/>
> > > > 0 lrwxrwxrwx 1 0 0 18 libcrypt.so.0 ->
> > > > libcrypt-0.9.27.so <http://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/><http://libuclibc-0.9.27.so/>
> > > > 5 -rw-rw-rw- 1 0 0 4120
> libutil-0.9.27.so <http://libutil-0.9.27.so/>
> > > > 0 lrwxrwxrwx 1 0 0 17 libutil.so.0 ->
> > > > libutil-0.9.27.so <http://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, david_mccullough at securecomputing.com
> <mailto:david_mccullough at securecomputing.com>, Ph:+61
> > > 734352815
> > > Secure Computing - SnapGear http://www.uCdot.org
> <http://www.ucdot.org/> <http://www.ucdot.org/>
> > > http://www.snapgear.com <http://www.snapgear.com/>
> > >
>
> --
> David McCullough, david_mccullough at securecomputing.com
> <mailto:david_mccullough at securecomputing.com>, Ph:+61 734352815
> Secure Computing - SnapGear http://www.uCdot.org
> <http://www.ucdot.org/> http://www.snapgear.com
> <http://www.snapgear.com/>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://busybox.net/cgi-bin/mailman/listinfo/uclibc
More information about the uClibc
mailing list