Problem Linking ?
Michael Zapka
mzapka@iwantnospam.pacbell.net
Wed Dec 15 22:26:00 GMT 1999
Got an easy one for most of you. Gettign weird library errors on a simple
"Hello World" program:
#include <stdio.h>
main()
{
printf("Blah");
}
my version compiler is:
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
I'm receiving following error during a compile or make:
/lib/libc.so.6: undefined reference to `_dl_mcount@@GLIBC_2.1'
/lib/libc.so.6: undefined reference to `_dl_origin_path@@GLIBC_2.1.1'
/lib/libc.so.6: undefined reference to `_dl_lazy@@GLIBC_2.1.1'
/lib/libc.so.6: undefined reference to `_dl_debug_initialize@@GLIBC_2.0'
/lib/libc.so.6: undefined reference to `_dl_start_profile@@GLIBC_2.1'
/lib/libc.so.6: undefined reference to `_dl_check_all_versions@@GLIBC_2.0'
/lib/libc.so.6: undefined reference to `_dl_dst_count@@GLIBC_2.1.1'
/lib/libc.so.6: undefined reference to `_dl_catch_error@@GLIBC_2.0'
/lib/libc.so.6: undefined reference to `_dl_map_object@@GLIBC_2.0'
/lib/libc.so.6: undefined reference to `_dl_loaded@@GLIBC_2.1'
/lib/libc.so.6: undefined reference to `_dl_main_searchlist@@GLIBC_2.1'
/lib/libc.so.6: undefined reference to `_dl_profile_map@@GLIBC_2.1'
/lib/libc.so.6: undefined reference to `_dl_dst_substitute@@GLIBC_2.1.1'
/lib/libc.so.6: undefined reference to `_dl_profile_output@@GLIBC_2.1'
/lib/libc.so.6: undefined reference to `_dl_map_object_deps@@GLIBC_2.0'
/lib/libc.so.6: undefined reference to `_dl_debug_impcalls@@GLIBC_2.0'
/lib/libc.so.6: undefined reference to `_dl_debug_state@@GLIBC_2.0'
/lib/libc.so.6: undefined reference to `_dl_lookup_symbol@@GLIBC_2.0'
/lib/libc.so.6: undefined reference to `_dl_platformlen@@GLIBC_2.1.1'
/lib/libc.so.6: undefined reference to `__libc_enable_secure@@GLIBC_2.0'
/lib/libc.so.6: undefined reference to `__libc_
stack_end@@GLIBC_2.1'
collect2: ld returned 1 exit status
make: *** [test] Error 1
Hopefully someone will recognize and suggest a solution... ldconfig has no
effect.. I assume I have some problems in my libraries... Running an
(upgraded to) Redhat 6.1 (from Redhat 6.0).
b/r,
Mike.
More information about the Gcc-help
mailing list