William K Helbig Jr wrote:
> Greetings to all,
>
> I am attempting to build the LFS system following the current instructions
> from the LFS 7.3 book. When building check-0.9.9 I get the above error. I
> believe the relative part of the build log is:
>
> /bin/sh ../libtool --tag=CC   --mode=link gcc  -g -O2 -Wall -ansi
> -pedantic -Wextra -Wstrict-prototypes -Wmissing-prototypes
> -Wwrite-strings -Wno-variadic-macros   -o check_thread_stress
> check_thread_stress-check_thread_stress.o ../src/libcheck.la
> ../lib/libcompat.la  -lrt
> libtool: link: gcc -g -O2 -Wall -ansi -pedantic -Wextra
> -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings
> -Wno-variadic-macros -o .libs/check_thread_stress
> check_thread_stress-check_thread_stress.o ../src/.libs/libcheck.so
> ../lib/.libs/libcompat.a -lrt -Wl,-rpath -Wl,/tools/lib

> /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

You don't say what the host system is.

Try:

LDFLAGS=-pthread make

Also, take a look at the thread starting at 
http://comments.gmane.org/gmane.linux.lfs.devel/13656

   -- Bruce
-- 
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