Error with 'make check'/ch 5/glibc-2.3.3/lfs v5.1.1

Carl Sopchak carl.sopchak at cegis123.com
Fri Aug 20 09:57:59 PDT 2004


I was up to the point of running "make check" in chapter 5 of the 5.1.1 
version of LFS, when I got the following error message:

gcc -B/tools/bin/   -shared -static-libgcc -Wl,-O1  -Wl,-z,defs 
-Wl,-dynamic-linker=/tools/lib/ld-linux.so.2  -B/LFS/src/glibc-build/csu/  
-Wl,--version-script=/LFS/src/glibc-build/librt.map -Wl,-soname=librt.so.1 
-Wl,-z,combreloc  -L/LFS/src/glibc-build -L/LFS/src/glibc-build/math 
-L/LFS/src/glibc-build/elf -L/LFS/src/glibc-build/dlfcn 
-L/LFS/src/glibc-build/nss -L/LFS/src/glibc-build/nis 
-L/LFS/src/glibc-build/rt -L/LFS/src/glibc-build/resolv 
-L/LFS/src/glibc-build/crypt -L/LFS/src/glibc-build/linuxthreads 
-Wl,-rpath-link=/LFS/src/glibc-build:/LFS/src/glibc-build/math:/LFS/src/glibc-build/elf:/LFS/src/glibc-build/dlfcn:/LFS/src/glibc-build/nss:/LFS/src/glibc-build/nis:/LFS/src/glibc-build/rt:/LFS/src/glibc-build/resolv:/LFS/src/glibc-build/crypt:/LFS/src/glibc-build/linuxthreads 
-o /LFS/src/glibc-build/rt/librt.so -T /LFS/src/glibc-build/shlib.lds 
/LFS/src/glibc-build/csu/abi-note.o -Wl,--whole-archive 
/LFS/src/glibc-build/rt/librt_pic.a -Wl,--no-whole-archive 
/LFS/src/glibc-build/elf/interp.os
/LFS/src/glibc-build/rt/librt_pic.a(aio_misc.os)(.text+0x59c): In function 
`__aio_enqueue_request':
../sysdeps/pthread/aio_misc.c:412: undefined reference to `pthread_create'
/LFS/src/glibc-build/rt/librt_pic.a(aio_misc.os)(.text+0x89a): In function 
`handle_fildes_io':
../sysdeps/pthread/aio_misc.c:653: undefined reference to `pthread_create'
/LFS/src/glibc-build/rt/librt_pic.a(aio_suspend.os)(.text+0x396): In function 
`aio_suspend':
../sysdeps/pthread/aio_suspend.c:146: undefined reference to 
`_pthread_cleanup_push'
/LFS/src/glibc-build/rt/librt_pic.a(aio_suspend.os)(.text+0x415):../sysdeps/pthread/aio_suspend.c:170: 
undefined reference to `_pthread_cleanup_pop'
/LFS/src/glibc-build/rt/librt_pic.a(aio_notify.os)(.text+0xd9): In function 
`__aio_notify_only':
../sysdeps/pthread/aio_notify.c:85: undefined reference to `pthread_create'
/LFS/src/glibc-build/rt/librt_pic.a(clock_gettime.os)(.text+0x8b): In function 
`clock_gettime':
../sysdeps/unix/clock_gettime.c:107: undefined reference to `_rtld_global'
/LFS/src/glibc-build/rt/librt_pic.a(clock_settime.os)(.text+0x110): In 
function `clock_settime':
../sysdeps/unix/clock_settime.c:114: undefined reference to `_rtld_global'
/LFS/src/glibc-build/rt/librt_pic.a(timer_create.os)(.text+0x50): In function 
`timer_create':
../linuxthreads/sysdeps/pthread/timer_create.c:61: undefined reference to 
`pthread_once'
/LFS/src/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'
/LFS/src/glibc-build/rt/librt_pic.a(timer_delete.os)(.text+0x10a):../linuxthreads/sysdeps/pthread/timer_delete.c:57: 
undefined reference to `_pthread_cleanup_pop'
/LFS/src/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'
/LFS/src/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'
/LFS/src/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]: *** [/LFS/src/glibc-build/rt/librt.so] Error 1
make[2]: Leaving directory `/LFS/src/glibc-2.3.3-lfs-5.1/posix'
make[1]: *** [posix/tests] Error 2
make[1]: Leaving directory `/LFS/src/glibc-2.3.3-lfs-5.1'
make: *** [check] Error 2

I tried looking in the wiki and lfs-support archives, but found nothing.  Host 
is Red Hat Linux 9 (fully updated through EOL).

If anyone has any ideas as to what might be the problem, hints would be 
greatly appreciated!

TIA,

Carl



More information about the lfs-support mailing list