Le 04/07/2013 16:14, hans kaper a écrit :
> I am building LFS 7.3, copy-pasting from the book into scriptfiles.
> I restarted with ch.5 about five times, but I get no further then ch. 5.13,
> building Check 0.9.9.
>
> I have not seen any conspicuous errors building from the earlier paragraphs
> and certainly no FAILURES.
>
> The end of the make-log is:
>
> /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.7.2/../../../../i686-pc-linux-gnu/bin/ld:
>  check_thread_stress-check_thread_stress.o: undefined reference to symbol 
> 'pthread_create@@GLIBC_2.1'
> /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.7.2/../../../../i686-pc-linux-gnu/bin/ld:
>  note: 'pthread_create@@GLIBC_2.1' is defined in DSO 
> /tools/lib/libpthread.so.0 so try adding it to the linker command line
> /tools/lib/libpthread.so.0: could not read symbols: Invalid operation
> collect2: error: ld returned 1 exit status
> make[2]: *** [check_thread_stress] Error 1
> make[2]: Leaving directory `/mnt/lfs/sources/check-0.9.9/tests'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/mnt/lfs/sources/check-0.9.9'
> make: *** [all] Error 2
> FAILED!
>
> libpthread.so.0 is a link to libpthread-2.17.so.
>
> Anyone any ideas? Or can I just carry on, because it is a failure
> in a test?
>
>
Have you applied the errata :
--- from "Errata for the 7.3 Version of the LFS Book"------------
Changes to some distros cause the build of *check-0.9.9* to fail in 
Chapter 5. The proper fix is to add
--with-sysroot to the end of the configure line in *Binutils-2.23.1 - 
Pass 2*.
-----------------------

It might address your error too.

Regards
Pierre

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to