Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!samsung!uunet!lccinc!bent From: bent@lccinc.UUCP (Ben Taylor) Newsgroups: comp.mail.sendmail Subject: Re: Say goodbye to sendmail.cf files! Message-ID: <588@lccinc.UUCP> Date: 27 Feb 91 18:45:13 GMT References: <14624@mcdphx.phx.mcd.mot.com> Organization: Lunayach Communications Consultants, Inc. Lines: 55 kjj@varese.UUCP (Kevin Johnson) writes: >In article barnett@crdgw1.ge.com writes: >>I appreciate any patches and bug reports. With your help, I hope to >>make this package an indespensible tool. >I've been trying my hand at porting it to SYSV... >et seems to memory faulting... >I'm trying to localize the source of the error - not having much luck yet... >If anyone can lend some insight into the problem - it would be appreciated. First, a couple of problems looking for . This is in C files as well as HARD-Coded into the makefile dependencies. WHY, WHY, WHY are the standard include files in the dependency list in the makefile? Define SYSV in the makefiles, and remove the /usr/include/strings.h from the dependency lines in the makefiles. Whereever is used in c files, #ifdef SYSV #include #else #include #endif Second. index/rindex are generally bsd calls. Whereever index/rindex show up add: #ifdef SYSV #define index strchr #define rindex strrchr #endif For src/fixstrings.h. Try the following to handle the second level of indirection this is causing. #ifdef SYSV #define strchr Xindex #define strrchr Xrindex #else #define index Xindex #define rindex Xrindex #endif I quickly hacked this out to get it working under UHC SYSVR4 with about an hours worth of work. I will be working on getting it running under Xenix next. Hope this helps. >| Kevin Johnson kjj@phx.mcd.mot.com | ...!mcdphx!QIS1!kjj | >| QIS System Administrator Motorola MCG | Ben Taylor Systems Administrator LCC Incorporated uunet!lccinc!bent