CH 5, LFS 5.0, undefined reference in libc.so.6

Peter Kerschl peter at pkerschl.de
Fri Feb 6 07:22:31 PST 2004


Dear all,

I've created the first toolchain (binutils,gcc,linux headers,glibc) 
according to the LFS 5.0 book until page 72 on a SUSE Linux 9.0 host.
I've done everthing as described in the manual (no deviation), and 
everthing seems to be fine up to now, but the final test went wrong with 
the following error (gcc command run as user lfs, the new binaries under 
/tools-for-lfs are used).

lfs at linux:~/C-programs> gcc dummy.c
/tools-for-lfs/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/../../../../i686-pc-linux-gnu/bin/ld: 
warning: ld-linux.so.2, needed by /tools-for-lfs/lib/libc.so.6, not 
found (try using -rpath or -rpath-link)
/tools-for-lfs/lib/libc.so.6: undefined reference to 
`_dl_lookup_versioned_symbol_skip at GLIBC_PRIVATE'
/tools-for-lfs/lib/libc.so.6: undefined reference to 
`_rtld_global at GLIBC_PRIVATE'
/tools-for-lfs/lib/libc.so.6: undefined reference to 
`_dl_lookup_versioned_symbol at GLIBC_PRIVATE'
/tools-for-lfs/lib/libc.so.6: undefined reference to 
`_dl_start_profile at GLIBC_PRIVATE'
/tools-for-lfs/lib/libc.so.6: undefined reference to 
`_dl_check_map_versions at GLIBC_PRIVATE'
/tools-for-lfs/lib/libc.so.6: undefined reference to `_dl_mcount at GLIBC_2.1'
/tools-for-lfs/lib/libc.so.6: undefined reference to 
`__libc_enable_secure at GLIBC_PRIVATE'
/tools-for-lfs/lib/libc.so.6: undefined reference to 
`_dl_get_origin at GLIBC_PRIVATE'
/tools-for-lfs/lib/libc.so.6: undefined reference to 
`_dl_dst_substitute at GLIBC_PRIVATE'
/tools-for-lfs/lib/libc.so.6: undefined reference to 
`_dl_debug_state at GLIBC_PRIVATE'
/tools-for-lfs/lib/libc.so.6: undefined reference to 
`_dl_init at GLIBC_PRIVATE'
/tools-for-lfs/lib/libc.so.6: undefined reference to 
`_dl_dst_count at GLIBC_PRIVATE'
/tools-for-lfs/lib/libc.so.6: undefined reference to 
`_dl_out_of_memory at GLIBC_PRIVATE'
/tools-for-lfs/lib/libc.so.6: undefined reference to 
`_dl_signal_error at GLIBC_PRIVATE'
/tools-for-lfs/lib/libc.so.6: undefined reference to 
`_dl_debug_printf at GLIBC_PRIVATE'
/tools-for-lfs/lib/libc.so.6: undefined reference to `_r_debug at GLIBC_2.0'
/tools-for-lfs/lib/libc.so.6: undefined reference to 
`_dl_map_object_deps at GLIBC_PRIVATE'
/tools-for-lfs/lib/libc.so.6: undefined reference to 
`_dl_unload_cache at GLIBC_PRIVATE'
/tools-for-lfs/lib/libc.so.6: undefined reference to 
`_dl_relocate_object at GLIBC_PRIVATE'
/tools-for-lfs/lib/libc.so.6: undefined reference to 
`__libc_stack_end at GLIBC_PRIVATE'
/tools-for-lfs/lib/libc.so.6: undefined reference to 
`_dl_argv at GLIBC_PRIVATE'
/tools-for-lfs/lib/libc.so.6: undefined reference to 
`_dl_catch_error at GLIBC_PRIVATE'
/tools-for-lfs/lib/libc.so.6: undefined reference to 
`_dl_lookup_symbol_skip at GLIBC_PRIVATE'
/tools-for-lfs/lib/libc.so.6: undefined reference to 
`_dl_lookup_symbol at GLIBC_PRIVATE'
/tools-for-lfs/lib/libc.so.6: undefined reference to 
`_dl_map_object at GLIBC_PRIVATE'
collect2: ld returned 1 exit status

No a.out is created,
I've checked the mailing list (nothing only something from LFS 3.0 found),
also I could nothing see using nm. Where does this GLIBC_PRIVATE comes from?
Do I miss a library ore only a libpath?
I've checked everthing again and again, but now I've no idea anymore how 
to solve this problem.
Any help would be fine, thanks a lot
Best regards
Peter

    







More information about the lfs-support mailing list