[lug] Redhat 9 Library Linking problems
agilmore at uc.usbr.gov
Tue May 27 08:55:03 MDT 2003
I dug into this a bit, and found when I run ld as myself, a different
ld-linux.so was found than when I run under sudo. Go figure. I ended up
running strace on ld and watched the birdie.
Problem solved by copying /lib/ld-linux.so to the offending location
(copied oracle installation from a different machine). I could also have
fixed my LD_LIBRARY_PATH, but I was lazy.
Thanks for the reply,
On Fri, 2003-05-23 at 16:50, D. Stimits wrote:
> Andrew Gilmore wrote:
> > 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
> Perhaps the /lib/libc.so.6 (a sym link ot a real file somewhere in the
> same directory) is telling you that only root has permission to read the
> file. See if the lib pointed to has minimum perms r-xr-xr-x.
> D. Stimits, stimits AT attbi DOT com
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: lug.boulder.co.us port=6667 channel=#colug
More information about the LUG