Subject: Re: odd runtime linker error
To: Dave Barr <barr@visi.com>
From: Paul Kranenburg <pk@cs.few.eur.nl>
List: current-users
Date: 10/19/1999 00:24:40
> /usr/X11R6/lib/libqt.so.1: Undefined symbol "" (reloc type = 12, symnum
> = 4)

This error seems to pop up with every shared library built from C++
sources by using the `libtool' to construct the link command to
build the library from (PIC) object files.  The generated link command
includes `-lgcc' -- which is a static (non-PIC) library -- that
should preferably not be mixed in with the PIC object files of
the shared library being built.

A solution would be to have libtool use a similar recipe for building
shared libraries as do our native `make' rules, i.e. calling ld(1)
directly with appropriate options.

Unfortunately, reading through the logic of `libtool' feels about the
same as trying to retrieve one's lost contact lenses from a pile of
horse manure..

-pk