[net.emacs] "Undefined _rindex" on Sun-3

montnaro%chenengo.tcpip@GE-CRD.ARPA (10/15/86)

Received: by chenengo.steinmetz (1.1/1.1x Steinmetz)
	id AA09428; Tue, 14 Oct 86 14:52:24 EDT
Date: Tue, 14 Oct 86 14:52:24 EDT
From: Skip Montanaro <montnaro%chenengo.tcpip@csbvax>
Posted-Date: Tue, 14 Oct 86 14:52:24 EDT
Message-Id: <8610141852.AA09428@chenengo.steinmetz>
To: unix-emacs@cc5.bbn.com
Subject: "Undefined _rindex" on Sun-3


When I compile and load temacs (version 18.24) on a Sun-3/75 (Release 3.1 of
Sun's UNIX) ld complains that the symbol, "_rindex", is undefined.
s-bsd4-2.h and m-sun3.h are included from config.h and HAVE_X_WINDOWS is
left undefined.

The only files that "rindex" occurs in are fileio.c, several s-*.h files for
System V variants, and in the files xfns.c, xterm.c, and xterm.h. xfns.c and
xterm.c are not even compiled, since HAVE_X_WINDOWS is not defined.

The generated ld command looks okay as far as I can tell:

    ld  -X  -o temacs crt0.o dispnew.o scroll.o xdisp.o window.o  term.o cm.o
    emacs.o keyboard.o macros.o keymap.o sysdep.o  buffer.o filelock.o insdel.o
    marker.o  minibuf.o fileio.o dired.o filemode.o  cmds.o casefiddle.o
    indent.o search.o regex.o undo.o  alloc.o data.o doc.o editfns.o callint.o
    eval.o fns.o print.o lread.o  abbrev.o syntax.o unexec.o mocklisp.o
    bytecode.o  process.o callproc.o   doprnt.o tparam.o lastfile.o alloca.o
    malloc.o -lc   -ltermcap  -lg
    Undefined:
    _rindex

Does anyone have any ideas where this undefined symbol is coming from?

Thanks

-*--*--*--*--*--*--*--*--*--*--*--*--*--*--
Skip Montanaro
ARPA: montanaro%chenengo.tcpip@ge-crd.arpa
UUCP: seismo!rochester!steinmetz!chenengo!montanaro
-*--*--*--*--*--*--*--*--*--*--*--*--*--*--