XForms: Compiling gcc with libc5

Michael Glickman (michaelg@linx.com.au)
Mon, 11 Oct 1999 17:49:05 +1000

# To subscribers of the xforms list from Michael Glickman <michaelg@linx.com.au> :

This question has a rather remote relation to XForms,
but the answer should be pretty straighforward ...
for the one who knows.

I have a Linux system with both glibc and libc5
kept in separate directoris. Since XForms 0.81 is
available only in libc5 format, I can't test backward
compatibility with glibc. This is why I desperately
need to be able to compile in both glibc and libc5
formats.

Tried -L<path to libc5>, tried changing lookup order
in /etc/ld.so.conf . At last I just renamed /usr/lib
and provided a symlink for /usr/lib to libc5 path.

As a result, gcc always picks up glibc modules,
and if unavailable, comes up with unresolved references.

Looks like the compiler uses different names for glibc
and libc5 modules, to ensure that the old modules
(compiled for libc5) can resolve the references only
in libc5 shared library, avoiding interference.

Since same compiler is used with glibc and libc5,
it should be a way to tell the compiler which libraries
are going to be used. It could be a part of gcc
configuration file (where are you?), or a special
command line argument (which one?).

Oh, it will be an enormous relief.
Thanks, Michael

_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuhs.mil or see
http://bob.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuhs.mil/mailserv/list-archives/