Is there a config file that the linker reads to know what libraries to link in
by default? I have tried to explicitly link in -lc but that didn't seem to
work, and neither did messing with /etc/ld.so.conf in Linux.
I tried moving my new libc library with the debugging symbols into the master
location in /lib, but since I didn't want to loose my old one I renamed it
first. Bad idea. The mv command stopped working along with everything else and
the machine basically came to a halt. I didn't think to use rpm which is
statically linked to force a reinstall of the glibc pakage, but whatever,
I have a Tom's rescue disk.
Thanks
Dave
A better solution might be to put an abort in your
prog somewhere, and use gdb to analyze the mess.
Speaking only for myself,
Joe Durusau
testglibc = /usr/local/glibc2.2.3
gcc = gcc
.PHONY: all
all: hello
hello: hello.o
$(gcc) -Wl,--dynamic-linker=$(testglibc)/lib/ld-linux.so.2 \
-B$(testglibc)/lib/ \
-Wl,-rpath=$(testglibc)/lib \
$< -o $@
hello.o: hello.c
$(gcc) -c -g -O0 -I$(testglibc)/include $< -o $@
clean:
rm -f hello hello.o
"Joe Durusau" <dur...@bellsouth.net> wrote in message
news:3B0FC146...@bellsouth.net...