Thanos Baloukas wrote:
> On 02/14/2013 11:24 PM, Thanos Baloukas wrote:

>> I'm doing a jhalfs test build on LFS SVN-20130213.
>> On chapter 5 Check-0.9.9 failed with

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

What is the output related to pthread in configure?  I should be:

checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no

That should set things up properly.

   -- Bruce

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

Reply via email to