*BSD News Article 19150


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!howland.reston.ans.net!news.ans.net!malgudi.oar.net!sun!oucsboss!oucsace!sadkins
From: sadkins@bigbird.cs.ohiou.edu (Scott W. Adkins)
Subject: Re: compiling smail on 386bsd..
Message-ID: <1993Aug4.013228.18731@oucsace.cs.ohiou.edu>
Sender: usenet@oucsace.cs.ohiou.edu (Network News Poster)
Organization: Ohio University CS Dept., Athens
References: <wilko.743710453@spoetnix.idca.tds.philips.nl> <1993Jul27.130515.13198@oucsace.cs.ohiou.edu> <CAyF6q.CH@cyb.cojones.com>
Date: Wed, 4 Aug 1993 01:32:28 GMT
Lines: 53

In article <CAyF6q.CH@cyb.cojones.com> loodvrij%cyb@fredbox.cts.com writes:
>In article <1993Jul27.130515.13198@oucsace.cs.ohiou.edu> sadkins@bigbird.cs.ohiou.edu (Scott W. Adkins) writes:
>>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
>>
>It was more than just X_CC_X - I had that problem too for a while.  I think I
>initially kludged the way you recommend, but later found a more non-kludgy
>solution - I can't remember what off-hand.  No, even afterwards I had X_..._X
>type stuff all over - in man page extension numbers most notably.  Nothing
>really critical though, so I just left them.

Yeah, it worked for me, but there were still a lot of other problems.  The
one major problem with linking was with the dbm library.  I was compiling
all of this on a bsdi system, so I don't know what the differences would be
between this and the freebsd/netbsd/386bsd releases.  I found that the libc
came with "ndbm.o".  Well, smail expected a "-ldbm" for some linking, and 
not in others.  Sometimes it would conflict with ndbm.o, and other times it
would not.  Basically, things were so inconsistent, that I resorted to 
hacking the include files, makefiles, etc to get it all together in the end.
Quite kludgy, and not something I want to go through again.

The only other problem I had *was* with the man pages, as you had above.  The
problem was that the defs.sh script file which properly defines the compiling
stage of the man pages was not doing its job.  It was suppose to call sed up
and replace all instances of X...X macros with the proper pathnames... well,
I finally did this by hand as well.  I think it was something like:

	for i in *.0
	do
	    sed -e defs.sed $i > $i.out
	    nroff -man $i.out > $i.nroff
	done

That solved *that* problem, but then I still had to worry about the nroff
files and moving them to the proper names/places. :-)  Ah well.

And the final story... well, it turned out the I needed the power of sendmail
and not smail... (smail is good, but still lacks some functionality.)  So,
I went back to sendmail... :(  (I *did* get sendmail working though!)

Chuck all of that up to just another piece of knowledge and experience gained.

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