🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #53486

__GLOBAL_OFFSET_TABLE_ problem...

#53486
From: Marc S. Poris
Date: Tue, 24 Dec 1991 23:08
28 lines
1470 bytes
Hi,

Maybe someone out there can help me (please!!!)...

I'm in the process of switching from cc to gcc on a Sun 4/330.  Everything
compiles just fine, but when it comes time to link, I get an Undefined symbol:

It seems that ld is looking for __GLOBAL_OFFSET_TABLE_ but can't find it.  So
my question is, where is __GLOBAL_OFFSET_TABLE_ defined???

Thanks!

- Marc

Here's what I get from gcc:

gcc -o forces forces_client.o build_forces.o deploy_forces.o  edit_forces.o trac
k_maint.o start_motion.o track_dbase.o -g  /home2/map/lib/Map/libXtMap.a /home2/
map/lib/ltdb/libXtltdb.a /home2/map/lib/Xm/libXm.a /home2/map/lib/Xm/libXtm.a -l
X11 -lm
BulletinB.o: Undefined symbol __GLOBAL_OFFSET_TABLE_ referenced from text segmen
t
BulletinB.o: Undefined symbol __GLOBAL_OFFSET_TABLE_ referenced from text segmen
t
...
*** Error code 1
make: Fatal error: Command failed for target `forces'
Technical Details
Message-ID: <3464@cod.NOSC.MIL>
Path: arc1-ca.pugleaf.net!gmdzi!ieee.org!sdd.hp.com!think.com!ames!agate!dog.ee.lbl.gov!nosc!cod!poris

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,8d558e9b29972091,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1991-12-24 16:05:55 PST
Path: arc1-ca.pugleaf.net!gmdzi!ieee.org!sdd.hp.com!think.com!ames!agate!dog.ee.lbl.gov!nosc!cod!poris
From: poris@cod.NOSC.MIL (Marc S. Poris)
Newsgroups: gnu.gcc.help
Subject: __GLOBAL_OFFSET_TABLE_ problem...
Keywords: gcc help __GLOBAL_OFFSET_TABLE_ ld link cc
Message-ID: <3464@cod.NOSC.MIL>
Date: 24 Dec 91 23:08:04 GMT
Organization: Naval Ocean Systems Center, San Diego
Lines: 28