Problem solved.
It seems I need to do
*reconfigration *after setting CFLAGS="-L/tools/lib -lpthread", and then
proceed to *make* .

It's all about the ./configure.
Better add one command *$ CFLAGS="-L/tools/lib -lpthread"* before  *./configure
--prefix=/tools*
in the user manual.


cheers
Pei

On Wed, Dec 19, 2012 at 1:55 AM, JIA Pei <[email protected]> wrote:

>
> Hi, Chris:
>
> Unfortunately, I spent another 4 hours to rebuild everything from scratch,
> with glibc patched this time. Still, the same. I still obtained the
> following error message:
>
>
> */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*
>
>
> Can you please just give me some hint? I just want to save some time...
> Thank you..
> Just let me know which page I need to read again?
> BTW, I promise, I read  every details of
> http://www.linuxfromscratch.org/lfs/view/development/index.html
>
>
> Thanks again...
>
>
> Best Regards
> Pei
>
>
>
>
> On Tue, Dec 18, 2012 at 7:14 PM, Chris Staub <[email protected]> wrote:
>
>> On 12/18/2012 09:07 PM, JIA Pei wrote:
>> >
>> > Thank you so much Bruce...
>> > I proceed to expect 5.45 now !!!!
>> > But, I got two test fails as follows. Is this normal?
>> >
>>
>> If you had read the book like you're expected to, you would already know
>> the answer to this. If you can't be bothered to read it, quit wasting
>> time here and figure it all out yourself.
>> --
>> http://linuxfromscratch.org/mailman/listinfo/lfs-support
>> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
>> Unsubscribe: See the above information page
>>
>
>
>
> --
>
> Pei JIA
>
> Email: [email protected]
> cell:    +1 604-362-5816
>
> Welcome to Vision Open
> http://www.visionopen.com
>



-- 

Pei JIA

Email: [email protected]
cell:    +1 604-362-5816

Welcome to Vision Open
http://www.visionopen.com
-- 
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