[lfs-support] the result of " ldd libz.so.1 " is right ?

lx lxlenovostar at gmail.com
Sat Sep 15 21:25:52 PDT 2012


thank you very much.

when i exec " ldd libz.so.1", the result is:
linux-gate.so.1 =>  (0x008e2000)
libc.so.6 => /tools/lib/libc.so.6 (0x0013b000)
/tools/lib/ld-linux.so.2 (0x003e4000)

/lib/ld-linux.so.2 => /mnt/lfs/tools...          maybe this is right?

the problem is that i make the file-5.10 in chapter 5 but the error message
is:
error while loading shared libraries: libz.so.1: cannot open shared object
file: No such file or directory

so, i check the libz.so.1 in my host system.









2012/9/16 Bruce Dubbs <bruce.dubbs at gmail.com>

> Don't post in html.  It makes the message hard to read.
>
> lx wrote:
> > hello:
> >         i encounter a problem.
>
> What problem?
>
> so i check " ldd libz.so.1 " in */lib*, and
> > the result is:
> >
> > *linux-gate.so.1 =>  (0x00460000)*
> > * **libc.so.6 => /lib/libc.so.6 (0x008bb000)*
> > * **/lib/ld-linux.so.2 (0x00825000)*
> >
> > the result is right or not ?
>
> Looks right for a 32-bit system
>
> > and i have adjusted the Toolchain by :
> >
> > *SPECS=`dirname $($LFS_TGT-gcc -print-libgcc-file-name)`/specs*
> > *$LFS_TGT-gcc -dumpspecs | sed \*
> > *-e 's@/lib\(64\)\?/ld@/tools&@g' \*
> > *-e "/^\*cpp:$/{n;s,$, -isystem /tools/include,}" > $SPECS*
> > *echo "New specs file is: $SPECS"*
> > *unset SPECS*
>
> What version of the book are you using?  You should be using 7.2  That
> part is no longer applicable.
>
>
> > and ensure it by:
> > *echo 'main(){}' > dummy.c*
> > *$LFS_TGT-gcc -B/tools/lib dummy.c*
>
> The -B switch is no longer used.
>
> > *readelf -l a.out | grep ': /tools'*
> >
> > the result is:
> >   *[Requesting program interpreter: /tools/lib/ld-linux.so.2]*
>
> Yes, that's what Sections 5.7 and 5.9 says.
>
> > so i'm confused, i still in chapter 5. please give me some advices.
> > thank you.
>
> What are you confused about?
>
>    -- Bruce
>
> --
> http://linuxfromscratch.org/mailman/listinfo/lfs-support
> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
> Unsubscribe: See the above information page
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20120916/b10da01c/attachment.html>


More information about the lfs-support mailing list