[lug] Redhat 9 Library Linking problems

Andrew Gilmore agilmore at uc.usbr.gov
Fri May 23 15:35:14 MDT 2003


I recently did an upgrade to Redhat 9 on my laptop.

Things appear to have gone well.

Sometime since that upgrade, and perhaps due to updates from up2date?
linking fails to create executables.

I've tried several different compliations, but they all seem to fail.
However, they work as root!

It looks like a libc problem?

Here are the glibc rpms installed:
glibc-kernheaders-2.4-8.10
glibc-devel-2.3.2-27.9
glibc-2.3.2-27.9
glibc-common-2.3.2-27.9

Here is an example:

[agilmore at somehost cabextract-0.6]$ make
gcc  -g -O2  -o cabextract  cabextract.o
/lib/libc.so.6: undefined reference to
`_dl_lookup_versioned_symbol_skip at GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `_rtld_global at GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to
`_dl_lookup_versioned_symbol at GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `_dl_start_profile at GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to
`_dl_check_map_versions at GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to
`__libc_enable_secure at GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `_dl_get_origin at GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to
`_dl_dst_substitute at GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `_dl_debug_state at GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `_dl_init at GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `_dl_dst_count at GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `_dl_out_of_memory at GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `_dl_signal_error at GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `_dl_debug_printf at GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to
`_dl_map_object_deps at GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `_dl_unload_cache at GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to
`_dl_relocate_object at GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `_dl_tls_symaddr at GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `_dl_argv at GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `_dl_catch_error at GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to
`_dl_lookup_symbol_skip at GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `_dl_lookup_symbol at GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `_dl_map_object at GLIBC_PRIVATE'
collect2: ld returned 1 exit status
make: *** [cabextract] Error 1
[agilmore at somehost cabextract-0.6]$

If I run the above command as root it works.

What is going on?

Andrew




More information about the LUG mailing list