Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!columbia!rutgers!sri-spam!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: <8610152227.AA02108@ucbvax.Berkeley.EDU> Date: Wed, 15-Oct-86 16:05:00 EDT Article-I.D.: ucbvax.8610152227.AA02108 Posted: Wed Oct 15 16:05:00 1986 Date-Received: Wed, 15-Oct-86 23:57:51 EDT Sender: daemon@ucbvax.BERKELEY.EDU 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 -*--*--*--*--*--*--*--*--*--*--*--*--*--*--