🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #6209

Missing global pointers on gcc/++ 2.7.2 mips ULTRIX

#6209
From: Melvin Smith
Date: Wed, 10 Jan 1996 00:00
52 lines
3105 bytes
I have successfully compiled 2.6.3 on a DEC ULTRIX before
but it was a while ago. I tried building 2.7.2 on
an ULTRIX 4.3 (mips) and got scads of missing gp's warnings.

There were some during the compile but I did not take much notice
since it compiled successfully it seemed. Then after
compiling my software (C++) I got over 2000 lines of the
following and a failed link.


csh> make
rm -f mud++ 
g++ -o mud++ area.o char.o char_act.o char_combat.o const.o dllist.o editarea.o editnpc.o editobj.o editroom.o file.o help.o index.o indexable.o io.o magic.o main.o nameable.o nanny.o npc.o object.o parse.o pc.o pc_act.o pc_combat.o pc_info.o pc_olc.o pc_wiz.o pulse.o random.o repop.o room.o server.o shop.o string.o thing.o utils.o -O -g -nostdlib -lm -lgcc -lc
collect2: ld returned 1 exit status
/usr/lib/cmplrs/cc/ld:
Undefined:
mmap(char *, unsigned int, int, int, int, int)
munmap(char *, unsigned int)
getrlimit(int, rlimit *)
setrlimit(int, rlimit *)
area.o: R_GPREL relocation entry with no global pointer reference

*SNIP*
editroom.o: R_GPREL relocation entry with no global pointer reference

*SNIP*
object.o: R_GPREL relocation entry with no global pointer reference

/lib/libc.a(gethostent.o): R_GPREL relocation entry with no global pointer reference
/lib/libc.a(rcmd.o): R_GPREL relocation entry with no global pointer reference
/lib/libc.a(malloc.o): R_GPREL relocation entry with no global pointer reference
/lib/libc.a(doprnt.o): R_GPREL relocation entry with no global pointer reference
/lib/libc.a(data.o): R_GPREL relocation entry with no global pointer reference
/lib/libc.a(data.o): R_GPREL relocation entry with no global pointer reference
/lib/libc.a(yp_match.o): R_GPREL relocation entry with no global pointer reference
/lib/libc.a(yp_match.o): R_GPREL relocation entry with no global pointer reference
/lib/libc.a(yp_enum.o): R_GPREL relocation entry with no global pointer reference
/lib/libc.a(yp_enum.o): R_GPREL relocation entry with no global pointer reference
/lib/libc.a(yp_enum.o): R_GPREL relocation entry with no global pointer reference
/lib/libc.a(getpwent.o): R_GPREL relocation entry with no global pointer reference
/lib/libc.a(clnt_udp.o): R_GPREL relocation entry with no global pointer reference
/lib/libc.a(clnt_perror.o): R_GPREL relocation entry with no global pointer reference
/lib/libc.a(rpcdtablesize.o): R_GPREL relocation entry with no global pointer reference
*** Error code 1

Stop.

Any clues?
Should I try going back to an earlier version or is this an ULTRIX bug?

-Melvin Smith (wonders wy gcc never compiles on anything but Linux)
Technical Details
Message-ID: <9601101853.AA14949@falcon.mercer.peachnet.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 113d02,fa9678e0ef55857e,start
X-Google-Attributes: gid113d02,public
From: msmith@falcon.mercer.peachnet.edu (Melvin Smith)
Subject: Missing global pointers on gcc/++ 2.7.2 mips ULTRIX
Date: 1996/01/10
Message-ID: <9601101853.AA14949@falcon.mercer.peachnet.edu>
X-Deja-AN: 135279383
distribution: gnu
sender: daemon@cis.ohio-state.edu
organization: GNUs Not Usenet
newsgroups: gnu.gcc.bug