sendmail Build errors
CB
charles-brewster at ntlworld.com
Mon Apr 3 15:50:54 BST 2006
Hello again - I'm still struggling intermittently with sendmail
I'm using sendmail-8.13.5 with FreeBSD 5.3 (i386 on a PC).
Following various docs, the READMEs, Bryan Costales sendmail "bat book",
Craig Hunt's sendmail cookbook, etc, I'm trying to Build/configure sendmail
starting out with the generic-bsd4.4.mc file with comes with the
distribution.
Logged in as root, if I copy the generic-bsd4.4.mc file into the
devtools/Site directory and rename as site.config.m4
I can cd to /usr/local/src/sendmail-8.13.5 and run './Build -c' and it all
runs fine, but I need to make some changes to configure sendmail for my
site.
The generic-bsd4.4.mc file contains (omitting commented lines):
divert(-1)
divert(0)dnl
VERSIONID(`$Id: generic-bsd4.4.mc,v 8.10 1999/02/07 07:26:02 gshapiro Exp
$')
OSTYPE(bsd4.4)dnl
DOMAIN(generic)dnl
MAILER(local)dnl
MAILER(smtp)dnl
To use the file 'local-host-names' in /etc/mail I change the generic to:
divert(-1)
divert(0)dnl
VERSIONID(`$Id: generic-bsd4.4.mc,v 8.10 1999/02/07 07:26:02 gshapiro Exp
$')
OSTYPE(bsd4.4)dnl
DOMAIN(generic)dnl
FEATURE(use_cw_file)dnl
MAILER(local)dnl
MAILER(smtp)dnl
- i.e. adding the one line 'FEATURE(use_cw_file)dnl'
When I run './Build -c' with that one change I get:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Making all in:
/usr/local/src/sendmail-8.13.5/libsm
Configuration: pfx=, os=FreeBSD, rel=5.3-RELEASE, rbase=5,
rroot=5.3-RELEASE, arch=i386, sfx=, variant=optimized
Clearing out existing
/usr/local/src/sendmail-8.13.5/obj.FreeBSD.5.3-RELEASE.i386/libsm tree
Using M4=/usr/bin/m4
Creating /usr/local/src/sendmail-8.13.5/obj.FreeBSD.5.3-RELEASE.i386/libsm
using /usr/local/src/sendmail-8.13.5/devtools/OS/FreeBSD
Including /usr/local/src/sendmail-8.13.5/devtools/Site/site.config.m4
Making dependencies in
/usr/local/src/sendmail-8.13.5/obj.FreeBSD.5.3-RELEASE.i386/libsm
No closing parenthesis in archive specification
Making in /usr/local/src/sendmail-8.13.5/obj.FreeBSD.5.3-RELEASE.i386/libsm
No closing parenthesis in archive specification
*** Error code 1
Stop in /usr/local/src/sendmail-8.13.5.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The above text was captured by sending output from Build to a file, also on
the console I get:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Makefile", line 1: Error in archive specification: "VERSIONID"
"Makefile", line 2: Missing dependency operator
make: fatal errors encountered -- cannot continue
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
these three lines being printed out twice.
If I edit the site.config.m4 file to comment out the VERSIONID line with
dnl, I still get the "Missing dependency operator" error and the build
terminates.
The Makefile in /usr/local/src/sendmail-8.13.5 contains:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# $Id: Makefile.dist,v 8.15 2001/08/23 20:44:39 ca Exp $
SHELL= /bin/sh
SUBDIRS= libsm libsmutil libsmdb sendmail editmap mail.local \
mailstats makemap praliases rmail smrsh vacation
# libmilter: requires pthread
BUILD= ./Build
OPTIONS= $(CONFIG) $(FLAGS)
all: FRC
@for x in $(SUBDIRS); \
do \
(cd $$x; echo Making $@ in:; pwd; \
$(SHELL) $(BUILD) $(OPTIONS)); \
done
clean: FRC
@for x in $(SUBDIRS); \
do \
(cd $$x; echo Making $@ in:; pwd; \
$(SHELL) $(BUILD) $(OPTIONS) $@); \
done
install: FRC
@for x in $(SUBDIRS); \
do \
(cd $$x; echo Making $@ in:; pwd; \
$(SHELL) $(BUILD) $(OPTIONS) $@); \
done
install-docs: FRC
@for x in $(SUBDIRS); \
do \
(cd $$x; echo Making $@ in:; pwd; \
$(SHELL) $(BUILD) $(OPTIONS) $@); \
done
fresh: FRC
@for x in $(SUBDIRS); \
do \
(cd $$x; echo Making $@ in:; pwd; \
$(SHELL) $(BUILD) $(OPTIONS) -c); \
done
$(SUBDIRS): FRC
@cd $@; pwd; \
$(SHELL) $(BUILD) $(OPTIONS)
FRC:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Please could anyone who knows their way around sendmail give me some hint
about what I might be doing wrong - quite possibly something trivially
stupid!
Many thanks for any wise words and useful suggestions
regards
Charles Brewster
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Please note: the text below is appended
automatically by my ISP to any mail routed
through their SMTP server. It should not
be interpreted as a personal endorsement.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
512k Broadband £14.99 per month
Unlimited Downloads - No extra Costs
£14.99 per month (inc. VAT)
Order Now www.adsl4less.com
More information about the Ukfreebsd
mailing list