🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.emacs
Article #2123

Undefined _rindex on Sun-3 - FIXED

#2123
From: montnaro%chenengo.tcpip
Date: Wed, 15 Oct 1986 19:03
31 lines
1766 bytes
Received: by chenengo.steinmetz (1.1/1.1x Steinmetz)
	id AA11020; Wed, 15 Oct 86 13:47:37 EDT
Date: Wed, 15 Oct 86 13:47:37 EDT
From: Skip Montanaro <montnaro%chenengo.tcpip@csbvax>
Posted-Date: Wed, 15 Oct 86 13:47:37 EDT
Message-Id: <8610151747.AA11020@chenengo.steinmetz>
To: unix-emacs@cc5.bbn.com
Cc: mly@mit-prep.arpa
Subject: Undefined _rindex on Sun-3 - FIXED


Mly replied to me and suggested I use nm to see where rindex was defined. It
is referenced in libtermcap.a and defined in libc.a. Thus, the ld command I
showed was incorrect, since "-lc" was before "-ltermcap". In ymakefile, the
LIBES macro is defined as

 LIBES = LIB_STANDARD LIBS_SYSTEM LIBS_MACHINE LIBS_TERMCAP $(LIBX) LIBS_DEBUG

To fix things, I just moved LIB_STANDARD to the end of the line:

 LIBES = LIBS_SYSTEM LIBS_MACHINE LIBS_TERMCAP $(LIBX) LIBS_DEBUG LIB_STANDARD

After that temacs loaded successfully and xemacs dumped successfully.

Is there any reason that LIB_STANDARD should be first in the list?

-*--*--*--*--*--*--*--*--*--*--*--*--*--*--
Skip Montanaro
ARPA: montanaro%chenengo.tcpip@ge-crd.arpa
UUCP: seismo!rochester!steinmetz!chenengo!montanaro
-*--*--*--*--*--*--*--*--*--*--*--*--*--*--
Technical Details
Message-ID: <8610151819.AA10157@ucbvax.Berkeley.EDU>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rutgers!nike!ucbcad!ucbvax!GE-CRD.ARPA!montnaro%chenengo.tcpip

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rutgers!nike!ucbcad!ucbvax!GE-CRD.ARPA!montnaro%chenengo.tcpip
From: montnaro%chenengo.tcpip@GE-CRD.ARPA
Newsgroups: net.emacs
Subject: Undefined _rindex on Sun-3 - FIXED
Message-ID: <8610151819.AA10157@ucbvax.Berkeley.EDU>
Date: Wed, 15-Oct-86 15:03:00 EDT
Article-I.D.: ucbvax.8610151819.AA10157
Posted: Wed Oct 15 15:03:00 1986
Date-Received: Wed, 15-Oct-86 21:52:33 EDT
Sender: daemon@ucbvax.BERKELEY.EDU
Organization: The ARPA Internet
Lines: 31