🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #49926

gcc-2.5.5 on mips-sgi-irix5.1.1 with shared libs

#49926
From: Time Warner Interactive Group
Date: Tue, 07 Dec 1993 02:01
31 lines
2188 bytes
Hello,

I have compiled and am running gcc-2.5.5 on my indigo, the configuration is
mips-sgi-irix5.1.1.  Simple programs, even big ones, compile and run.  The 
ONLY problem i'm having (and it's a biggie) is that many libraries cause the
g++ link to fail.  This release of the SGI irix seems to provide mostly
just SHARED libraries.  There are some static libraries distributed, but not
enough to build real applications.  For example, the GL graphics library is not
available as a static (non-shared) library.  

So anyway, when i link with libGL.so, the shared library, the link seems to
succeed, but at runtime i get this error:

6147:exec_name: rld: Fatal Error: search_for_undefineds: symbol abort should 
	not have any relocation entry.

sure enough, the libGL library has a namelist entry (via nm -B) for abort
which has an address tied to it.  the runtime-loader (rld) that sgi uses
at runtime to resolve links to shared libs does not seem able to relocate the 
code.  on this assumption, i have tried to link against a variety of other libs
and don't seem to have these problems.

i don't know if the problem is with sgi or gcc, please help my if you can.  
thanks!

-matt papakipos
 time warner interactive group

ps.  please reply to me directly at matt@heaven.com, NOT via news since
we have such a lame network connection that it is indescribably painful for 
me to arrange to read news.  ah, the joys of uucp.  thanks again.
Technical Details
Message-ID: <heavenCHn6z1.D03@netcom.com>
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!yale.edu!spool.mu.edu!sgiblab!swrinde!elroy.jpl.nasa.gov!decwrl!netcomsv!netcom.com!heaven

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,4dc088722e3f49c9,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-12-07 17:49:15 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!yale.edu!spool.mu.edu!sgiblab!swrinde!elroy.jpl.nasa.gov!decwrl!netcomsv!netcom.com!heaven
From: heaven@netcom.com (Time Warner Interactive Group)
Subject: gcc-2.5.5 on mips-sgi-irix5.1.1 with shared libs
Message-ID: <heavenCHn6z1.D03@netcom.com>
Summary: shared libs fail (e.g. libGL.a)
Keywords: sgi,irix,mips,shared,dynamic,c++
Sender: matt@heaven.com
Organization: Netcom - Online Communication Services (408 241-9760 guest)
Date: Tue, 7 Dec 1993 02:01:49 GMT
Lines: 31