*BSD News Article 18918


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!network.ucsd.edu!swrinde!cs.utexas.edu!uunet!caen!malgudi.oar.net!sun!oucsboss!oucsace!sadkins
From: sadkins@bigbird.cs.ohiou.edu (Scott W. Adkins)
Subject: Re: compiling smail on 386bsd..
Message-ID: <1993Jul27.130515.13198@oucsace.cs.ohiou.edu>
Sender: usenet@oucsace.cs.ohiou.edu (Network News Poster)
Organization: Ohio University CS Dept., Athens
References: <586@apdnews.idca.tds.philips.nl> <CAL695.2xL@cyb.cojones.com> <wilko.743710453@spoetnix.idca.tds.philips.nl>
Date: Tue, 27 Jul 1993 13:05:15 GMT
Lines: 43

In article <wilko.743710453@spoetnix.idca.tds.philips.nl> wilko@idca.tds.philips.nl (Wilko Bulte) writes:
>loodvrij@cyb.cojones.com (Bruce 'Loodvrij' Keeler) writes:
>>In article <586@apdnews.idca.tds.philips.nl> wilko@idca.tds.philips.nl (Wilko Bulte) writes:
>>>Has anybody succeeded in compiling smail 3.1.28 (from ref) on 386bsd?
>>>It seems the make depend always screws up on my system. It leaves
>>>#define <nothing else> and '=yes' in the defs.* files. This happens

This is definitely an sh (or ash) problem.  Using bash solves this problem
rather nicely.  (By the way, I am in the process of compiling bash, so the
solutions to these problems are still fresly in my mind...)

>>Well, I took to using bash as sh when the time came to compile cnews, so that
>>might have something to do with it.  I too had problems with various defines
>>of the form X_..._X all over but they didn't seem to hurt anything.  I had to
>>make up a new os configuration file (I can send it if need be),  and compile.
>>I had problems with the vfprintf supplied with smail (it caused a core dump)
>>so I commented it out of the source.  Other than that it seemed to work just
>>fine.

The X_CC_X that you saw is necessary for make depend to work properly.  If
you don't get that to work, then why are you doing it at all?  So, the 
solution to this problem is to edit "smail-3.1.28/conf/lib/mkdepend.sh" and
define CC to whatever your current compiler is:

CC="`echo X_CC_X | sed -f defs.sed`"	<=== This line was already there
[ -z "$CC" ] && CC=cc			<=== This line was already there
CC=gcc					<=== I added this line

Just adding the third line will force CC to be what you need it to be, and
the X_CC_X problem will go away.

>>>(And I was only hoping that I could get smail to work for me better 
>>>than sendmail itself sofar has. It seems hacking sendmail.cf is not
>>>my line of business ;-)

Agreed... and that is the same reason I am getting smail... I don't have the
time to figure the format of sendmail.cf (yes, I tried the ease program...).

Scott
-- 
         Scott W. Adkins           Internet: sadkins@ohiou.edu
         ~~~~~~~~~~~~~~~                     ak323@cleveland.freenet.edu
    Ohio University of Athens        Bitnet: adkins@ouaccvma.bitnet