Installing Glibc-2.3.3 - Chapter 6 - missing symlinks

Edwin van Vliet cheatah at tweakers.net
Sat Mar 20 07:10:09 PST 2004


Hi there,

When I got to the 'Re-adjusting the toolchain' phase, _after_ completing 
  'Installing Glibc-2.3.3 - Chapter 6' apparently successfully, I got 
the following error doing the sanity check:

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

It appears the ld-linux.so.2 and libc.so.6 symlinks heve not been 
created. The specs file contains /lib/ld-linux.so.2, NOT 
/tools/lib/ld-linux.so.2, so I figure the sed command went all right.

I have installed LFS before, and I am using version CVS-2004-03-14 at 
this moment. Did I miss anything, or is this a known error?
And as to fix it, will creating those symlinks be enough?
My /lib directory contains the following:

---
root:~# ls -al /lib
total 21104
drwxr-xr-x    2 root     root         4096 Mar 20 13:59 .
drwxr-xr-x   18 root     root         4096 Mar 20 11:45 ..
-rwxr-xr-x    1 root     root       691672 Mar 20 13:17 ld-2.3.3.so
-rwxr-xr-x    1 root     root        52797 Mar 20 13:18 
libBrokenLocale-2.3.3.so
-rwxr-xr-x    1 root     root     19399801 Mar 20 13:17 libc-2.3.3.so
-rwxr-xr-x    1 root     root       141296 Mar 20 13:21 libdl-2.3.3.so
-rwxr-xr-x    1 root     root      1208074 Mar 20 13:20 libm-2.3.3.so
-rwxr-xr-x    1 root     root        53317 Mar 20 13:21 libmemusage.so
root:~#
---

Any help is very much appreciated.

Edwin.



More information about the lfs-support mailing list