Return to BSD News archive
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!zombie.ncsc.mil!news.mathworks.com!europa.chnt.gtegsc.com!howland.reston.ans.net!agate!soda.CSUA.Berkeley.EDU!tmonroe From: tmonroe@soda.CSUA.Berkeley.EDU (Anthony Monroe) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: sendmail8.6.12 Date: 27 Jun 1995 20:39:58 GMT Organization: Computer Science Undergraduate Association, UC Berkeley Lines: 50 Message-ID: <3spqau$hd9@agate.berkeley.edu> References: <3slnq7$mpd@wabe.csir.co.za> NNTP-Posting-Host: soda.csua.berkeley.edu In article <3slnq7$mpd@wabe.csir.co.za>, Operator <root@wabe.csir.co.za> wrote: > >Hi > > >I am wanting to domain aliasing, and have found a way using sendmail8.6.12 >The problem is I can not get it to compile on FreeBSD2.0. Does anybody have a >patch, or know where I can get a patch for this. I am not a C programmer so >I have to rely on your help. > >Thanks in advance. That's okay, you don't have to be a C programmer to compile sendmail, you just have to be a C preprocessor programmer. Sendmail has no real code, just preprocessor #defines and #ifdefs. :) Note: I'll use $sendmail to indicate the place where you unpacked the sources, i.e. /usr/src/sendmail-8.6.12 (on my machine). One thing that you can do to get it to compile (with abundant warnings, but it will compile) is find this line in $sendmail/src/conf.h and comment it out: # define SETPROCTITLE 1 /* munge argv to display current status */ I do remember that my system (2.0.5) couldn't handle SETPROCTITLE, and once I commented this line out, things worked. Why? When compiling conf.c, I got error messages like this: conf.c: In function `setproctitle': conf.c:1077: `NKPDE' undeclared (first use this function) conf.c:1077: (Each undeclared identifier is reported only once conf.c:1077: for each function it appears in.) conf.c:1077: `pt_entry_t' undeclared (first use this function) Once you get it to compile, getting it to install without multiple make barfs is another matter :) You'll find yourself using 'mv' and 'ln -s' alot, and generally trying to shove the install the rest of the way. (It's not pretty.) The Makefiles are just badly written (Makefile.FreeBSD was written for 1.0-E, I think) and you'll just have to do your best to work around that. Apparently, the Makefile authors haven't bothered to update their stuff... Side note about setproctitle: the local Sequent machine of infamy, this machine called soda.csua.berkeley.edu, makes it an absolute pain to compile anything but the simplest programs, even with gcc. Of course, setproctitle works absolutely fine on this machine... :P Tony -- tmonroe@csua.berkeley.edu "Experimental Non-Rabbit" Tony Monroe http://www.csua.berkeley.edu/~tmonroe/ Computer Weenie and Weirdo in General