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

Bruce Dubbs bruce.dubbs at gmail.com
Sat Sep 15 21:05:45 PDT 2012


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




More information about the lfs-support mailing list