Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!crdgw1!uunet!mcsun!ukc!slxsys!ibmpcug!robobar!ronald From: ronald@robobar.co.uk (Ronald S H Khoo) Newsgroups: comp.unix.xenix.sco Subject: Re: Problems creating Patch 2.0.12u3 Message-ID: <1991May3.152414.12200@robobar.co.uk> Date: 3 May 91 15:24:14 GMT References: <44@hlthnt.UUCP> <6278@vela.acs.oakland.edu> Organization: Robobar Ltd., Perivale, Middx., ENGLAND. Lines: 21 srodawa@vela.acs.oakland.edu (Ron Srodawa) writes: > >/bin/ld : error: Unresolved externals: > >_rindex in file(s): > You have bumped into one of several common Berkeley BSD library routines > that are not supported in the SCO Development System. (They are included > as a part of the SCO TCP/IP Development System.) What follows is a shar > file containing my own source code which I wrote when I had the same > problem and before I had the SCO TCP/IP Development System. I can understand bzero, etc (and Henry Spencer's string library in the sources.unix archives has a re-implementation of almost all of these), but for index and rindex, wouldn't it be simpler just to add -Dindex=strchr -Drindex=strrchr to your cc command line? -- Ronald Khoo +44 81 991 1142 (O) +44 71 229 7741 (H)