Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cuae2!ltuxa!we53!sw013b!dj3b1!killer!ndmce!pollux!infotel!ut-ngp!ut-sally!seismo!columbia!rutgers!sri-spam!nike!ucbcad!ucbvax!GE-CRD.ARPA!montnaro%chenengo.tcpip From: montnaro%chenengo.tcpip@GE-CRD.ARPA@ndmce.uucp Newsgroups: net.emacs Subject: Undefined _rindex on Sun-3 - FIXED Message-ID: <346@ndmce.uucp> Date: Fri, 17-Oct-86 17:11:41 EDT Article-I.D.: ndmce.346 Posted: Fri Oct 17 17:11:41 1986 Date-Received: Tue, 21-Oct-86 05:30:44 EDT Sender: news@ndmce.uucp Organization: The ARPA Internet Lines: 31 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 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 -*--*--*--*--*--*--*--*--*--*--*--*--*--*--