error compile dummy.c

Carlos Martin carlosmn at gmail.com
Wed Nov 24 07:55:24 PST 2004


On Fri, 19 Nov 2004 23:06:32 +0100, Jean-Luc Rasschaert
<jeanlucrasschaert at versateladsl.be> wrote:
> Hi, i'm always a newbie. I work with the french book LFS 5.1.1
> I use SUSE 9.1.
> I'm in the chapter 5  where i have to compile dummy.c
> I have this message:
> 
> lfs/tools/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../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
> 
> I need help. Thank you. And thanks to Carlos Martin for his help.

Where does your specs file point? Remeber that it needs to be a
full-path. Your system can't find the linux-ld.so.2, although it looks
like it's not fatal. I'm guessing that's where the problem resides.
I'm also guessing that all the _dl* stuff has to do with dynamic
loading, so it's not finding libraries it needs.

I'm not sure if what I've just said makes sense, somebody with more
experience with the libc should be able to say something that makes
more sense.

-- 
Carlos Martín
SoKrA-BTS



More information about the lfs-chat mailing list