Hi.
Ever since I upgraded to gcc 2.6.3 from 2.5.8 a few months
ago, I've experienced a library problem on and off when I compile
programs. Most programs compile and link fine, but a few *during
the linking process with messages like:
/usr/X11R6/lib/libX11.sa(__T00005.o): Undefined symbol
"__NEEDS_SHRLIB_libc_4" referenced
/usr/X11R6/lib/libX11.sa(__T00037.o): Undefined symbol
"__NEEDS_SHRLIB_libc_4" referenced
/usr/X11R6/lib/libX11.sa(__T00045.o): Undefined symbol
"__NEEDS_SHRLIB_libc_4" referenced
etc. etc.
If I edit the make file to include the flag -V2.5.8, it links
successfully, but then what's the point of having 2.6.3? I've run
ldconfig -v, and all my libs seem to be where they should be:
/lib contains libc.so.4.6.27
/usr/X11R6/lib contains libX*.so.6.0, libX*.a, and libX*.sa
/usr/X11/lib contains libX*.so.3.1.0, libX*.a, and libX*.sa
I'm afraid I'm pretty baffled by why the libs aren't working
for *some* compilations. Can someone give me some hints that might
help me solve this?
Cheers,
Dave
--
* Dept. of Agricultural Meteorology ph: (402) 437-5178 x 20
* University of Nebraska FAX: (402) 437-5712
* Lincoln, NE 68583-0728