Fixing my lib setup for gcc 2.6.3

Fixing my lib setup for gcc 2.6.3

Post by david guert » Sat, 15 Jul 1995 04:00:00



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

 
 
 

Fixing my lib setup for gcc 2.6.3

Post by Mitch DSou » Sun, 16 Jul 1995 04:00:00



-->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?

GCC-FAQ on ftp.mrc-apu.cam.ac.uk /pub/linux or the URL
ftp://ftp.mrc-apu.cam.ac.uk/pub/linux/GCC-FAQ.html

Mitch

 
 
 

1. /usr/lib/gcc-lib/i386-linux and /usr/lib/gcc-lib/i486-linux

Hi Linuxers,

I just got a new copy of gcc-2.4.5 and source code of the pl11.
After having done the installation of gcc-2.4.5, I realised that
I have an extra directory: /usr/lib/gcc-lib/i386-linux.
The question is whether I need to keep the old gcc stuff under
the i386-linux.  I really like to clean it up so as to save 5.1
meg disk space (another poor Linux user  ;-( ).

Your answer is very appreciated.  Please send answer directly
to my address or the corresponding interest parties to reduce
the network load.  Thank you in advance.

Wing



2. pcmcia on Dell Inspiron 3000

3. How to setup gcc include and lib path in Unix?

4. how to influence ftp sources for ports

5. How to setup the GNU GCC PATH and LIB, INCLUDE on Solaris?

6. rdump question

7. /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/include/asm causing errors...

8. Floating point exception

9. gcc 2.6 lib use with gcc 2.7?

10. Need Help: "/usr/lib/setup/setup: cannot create /mnt/etc/fstab: directory nonexistent"

11. error in /usr/lib/setup/setup

12. PATCH: 2.5.40 Fix stupid scsi setup bug in 53c406, fix addressing

13. Help - shared libs lib****.so.4 lib***.so.5