error glibc-2.3.3-lfs-5.1 make check chapter 5

rick shelton at onr.com
Mon Jul 12 23:23:19 PDT 2004



ESPASA Franck wrote:
> I use Fedore-core1 to make my LFS 5.1.1, when i make
> glibc-2.3.3-lfs-5.1, I get following compile error:
> 
> ../linuxthreads/sysdeps/pthread/timer_create.c:61: undefined reference to `pthread_once'
> /mnt/lfs/sources/glibc-build/rt/librt_pic.a(timer_delete.os)(.text+0xf4): In function `timer_delete':
> ../linuxthreads/sysdeps/pthread/timer_delete.c:51: undefined reference to `_pthread_cleanup_push'
> /mnt/lfs/sources/glibc-build/rt/librt_pic.a(timer_delete.os)(.text+0x10a):../linuxthreads/sysdeps/pthread/timer_delete.c:57: undefined reference to `_pthread_cleanup_pop'
> /mnt/lfs/sources/glibc-build/rt/librt_pic.a(timer_routines.os)(.text+0x201): In function `__timer_init_once':
> ../linuxthreads/sysdeps/pthread/timer_routines.c:221: undefined reference to `pthread_atfork'
> /mnt/lfs/sources/glibc-build/rt/librt_pic.a(timer_routines.os)(.text+0x5ec): In function `thread_func':
> ../linuxthreads/sysdeps/pthread/timer_routines.c:382: undefined reference to `_pthread_cleanup_push'/mnt/lfs/sources/glibc-build/rt/librt_pic.a(timer_routines.os)(.text+0x84c): In function `__timer_thread_start':
> ../linuxthreads/sysdeps/pthread/timer_routines.c:492: undefined reference to `pthread_create'
> collect2: ld returned 1 exit status
> make[2]: *** [/mnt/lfs/sources/glibc-build/rt/librt.so] Error 1
> make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.3.3-lfs-5.1/posix'
> make[1]: *** [posix/tests] Error 2
> make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.3.3-lfs-5.1'
> make: *** [check] Error 2
> lfs:/mnt/lfs/sources/glibc-build$
> 
> Can anyone help me ????
> 
> thanks !

in your subject line you mention "make check"
the LFS book does not recommend running this for this package until CH 6. if 
you're in CH 5 and you are getting this error from running "make check" then i'd 
say just skip that one command and move on. just be sure to run all the test 
suites in CH 6.

if you are getting this from running "make" as described in CH 5 for the 
glibc-2.3.3-lfs-5.1 package, then something is very wrong and you should double 
back and double check everything you've done up to this point.

patient: "doctor, it hurts when i go like this."
doctor: "well don't do that!"

~rick



More information about the lfs-support mailing list