[comp.sys.sun] problem linking /usr/lib/libresolv.a with g++-ld

asb@wren.cs.rmit.oz.au (Anthony Scott Botham) (04/18/91)

I am trying to compile the InterViews toolkit using g++ on a Sparc-Server
II.  When I link in /usr/lib/libresolv.a, g++-ld complains

gethostnamadr.o: Undefined symbol __GLOBAL_OFFSET_TABLE_ referenced
from text segment

All of the routines in the resolver library contain an undefined global
sysbol __GLOBAL_OFFSET_TABLE_.  The table is generated when using the -pic
option to cc.

Does anyone have another version of /usr/lib/libresolv.a, or public domain
source for the resolver library or can offer any hints about what to do
next.

Anthony Botham                     ACSNET: asb@goanna.cs.rmit.OZ