On 02/14/2013 11:24 PM, Thanos Baloukas wrote: > Hi > > I'm doing a jhalfs test build on LFS SVN-20130213. > On chapter 5 Check-0.9.9 failed with > > 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,-rp > ath -Wl,/tools/lib > /mnt/lfs/tools/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../x86_64-unknown-linux-gnu/bin/ld: > check_thread_stress-check_th > read_stress.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5' > /mnt/lfs/tools/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../x86_64-unknown-linux-gnu/bin/ld: > note: 'pthread_create@@GLIBC > _2.2.5' 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[3]: *** [check_thread_stress] Error 1 > make[3]: Leaving directory `/mnt/lfs/sources/check-0.9.9/tests' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory `/mnt/lfs/sources/check-0.9.9' > make[1]: *** [all] Error 2 > make[1]: Leaving directory `/mnt/lfs/sources/check-0.9.9' > > After adding LDFLAGS=-pthread to configure, built finished OK. > > Thanos > I forgot to mention the host. /etc/os-release has
NAME="Ubuntu" VERSION="12.10, Quantal Quetzal" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu quantal (12.10)" VERSION_ID="12.10" but the iso was linuxmint-14-xfce-dvd-64bit.iso Thanos -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page