Hi all,
I recently upgraded my binutils & gcc. I then compiled and installed glibc 2.3 with prefix=/usr/local/glibc2.3. I wrote this :
Code:
#include <unistd.h>
#include <stdio.h>
int main() { printf "abc\n"; return 0; }
called it t.c and did #gcc -o t t.c . The output is as follows :
/usr/local/lib/libc.so.6: undefined reference to `_dl_lazy@GLIBC_2.1.1'
/usr/local/lib/libc.so.6: undefined reference to `_dl_dst_substitute@GLIBC_2.1.1
'
/usr/local/lib/libc.so.6: undefined reference to `_dl_out_of_memory@GLIBC_2.2'
/usr/local/lib/libc.so.6: undefined reference to `_dl_relocate_object@GLIBC_2.0'
/usr/local/lib/libc.so.6: undefined reference to `_dl_clktck@GLIBC_2.2'
/usr/local/lib/libc.so.6: undefined reference to `__libc_enable_secure@GLIBC_2.0
'
/usr/local/lib/libc.so.6: undefined reference to `_dl_catch_error@GLIBC_2.0'
/usr/local/lib/libc.so.6: undefined reference to `_dl_platformlen@GLIBC_2.1.1'
/usr/local/lib/libc.so.6: undefined reference to `_dl_lookup_versioned_symbol_sk
ip@GLIBC_2.0'
/usr/local/lib/libc.so.6: undefined reference to `_dl_lookup_versioned_symbol@GL
IBC_2.0'
/usr/local/lib/libc.so.6: undefined reference to `_dl_dst_count@GLIBC_2.1.1'
/usr/local/lib/libc.so.6: undefined reference to `_dl_initial_searchlist@GLIBC_2
.1'
/usr/local/lib/libc.so.6: undefined reference to `_dl_start_profile@GLIBC_2.1'
/usr/local/lib/libc.so.6: undefined reference to `_dl_lookup_symbol@GLIBC_2.0'
/usr/local/lib/libc.so.6: undefined reference to `__libc_stack_end@GLIBC_2.1'
/usr/local/lib/libc.so.6: undefined reference to `_dl_argv@GLIBC_2.2'
/usr/local/lib/libc.so.6: undefined reference to `_dl_loaded@GLIBC_2.1'
/usr/local/lib/libc.so.6: undefined reference to `_dl_origin_path@GLIBC_2.1.1'
/usr/local/lib/libc.so.6: undefined reference to `_dl_check_map_versions@GLIBC_2
.2'
/usr/local/lib/libc.so.6: undefined reference to `_dl_map_object@GLIBC_2.0'
/usr/local/lib/libc.so.6: undefined reference to `_dl_main_searchlist@GLIBC_2.1'
/usr/local/lib/libc.so.6: undefined reference to `_dl_debug_mask@GLIBC_2.2.3'
/usr/local/lib/libc.so.6: undefined reference to `_dl_load_lock@GLIBC_2.2'
/usr/local/lib/libc.so.6: undefined reference to `_dl_profile@GLIBC_2.1'
/usr/local/lib/libc.so.6: undefined reference to `_dl_debug_state@GLIBC_2.0'
/usr/local/lib/libc.so.6: undefined reference to `_dl_init_all_dirs@GLIBC_2.2'
/usr/local/lib/libc.so.6: undefined reference to `_dl_unload_cache@GLIBC_2.1'
/usr/local/lib/libc.so.6: undefined reference to `_dl_signal_error@GLIBC_2.0'
/usr/local/lib/libc.so.6: undefined reference to `_dl_debug_printf@GLIBC_2.2.3'
/usr/local/lib/libc.so.6: undefined reference to `_dl_init@GLIBC_2.2'
/usr/local/lib/libc.so.6: undefined reference to `_dl_all_dirs@GLIBC_2.2'
/usr/local/lib/libc.so.6: undefined reference to `_dl_map_object_deps@GLIBC_2.0'
/usr/local/lib/libc.so.6: undefined reference to `_dl_nloaded@GLIBC_2.2'
/usr/local/lib/libc.so.6: undefined reference to `_dl_profile_map@GLIBC_2.1'
/usr/local/lib/libc.so.6: undefined reference to `_dl_profile_output@GLIBC_2.1'
/usr/local/lib/libc.so.6: undefined reference to `_dl_pagesize@GLIBC_2.2'
/usr/local/lib/libc.so.6: undefined reference to `_dl_lookup_symbol_skip@GLIBC_2
.0'
/usr/local/lib/libc.so.6: undefined reference to `_dl_fpu_control@GLIBC_2.1'
/usr/local/lib/libc.so.6: undefined reference to `_dl_global_scope_alloc@GLIBC_2
.1'
collect2: ld returned 1 exit status
now,
ls -l /usr/local/lib/ld-linux.so.2
reports
lrwxrwxrwx 1 root root 9 Dec 22 21:57 /usr/local/lib/ld-linux.so.2 -> ld-2.3.so*
and
ls -l /usr/local/lib/libc.so.6
reports
lrwxrwxrwx 1 root root 11 Dec 22 21:57 /usr/local/lib/libc.so.6 -> libc-2.3.so*
it looks like they're going to the correct version, what have I done wrong? thanks in advance