On Monday 13 October 2014 19:35, in comp.mail.sendmail, "Harry Putnam"
<
rea...@newsguy.com> wrote:
> I've been fiddling for a while now with an error I get on a solaris
> host when m4'ing the
sendmail.mc to
sendmail.cf
>
> the error happens when compile with the normal technique on solaris.
>
> /etc/mail has all the needed m4 tools and things are setup to run off
> Makefile files
>
> So, cd /etc/mail/cf/cf
> root # make
sendmail.cf
> test ! -f
sendmail.cf || /usr/bin/mv
sendmail.cf sendmail.cf.prev
> /usr/ccs/bin/m4 ../m4/cf.m4
sendmail.mc >
sendmail.cf
>
> /usr/ccs/bin/m4:
sendmail.mc:13 cannot open file: No such file or
> directory include(../feature/authinfo.m4)
> make: *** [
sendmail.cf] Error 1
>
> What file is that about?
The file in question defines M4 macros that build the
sendmail.cf
configuration entries that govern the definition of the authinfo table.
> Also what significance if any is the inclusion of the line:
>
> ` include(../feature/authinfo.m4) '
This line tells the M4 macro processor to include the macro definitions that
construct the
sendmail.cf authinfo settings
> I checked and double checked to make sure the file mentioned at line
> 13 is where it is supposed to be.
Ah, but did you check to ensure that ../feature/authinfo.m4 (in your
case, /etc/mail/cf/feature/authinfo.m4) exists, is readable, and contains
the expected M4 macros?
> Also tried opening permissions to
> see if that was the problem,,, neither showed any help.
>
> However if I dnl out the line. The error disappears. So it has to be
> something wrong with that line. Just for the record:
>
> ls -l /etc/mail/authinfo*
> -r--r--r-- 1 root root 66 Oct 13 11:55 /etc/mail/authinfo
> -r--r--r-- 1 root root 81920 Oct 13 18:49 /etc/mail/authinfo.db
>
> (also tried with chmod 600 & 666 )
>
> The problem line:
>
> FEATURE(`authinfo', `hash /etc/mail/authinfo')dnl
the FEATURE macro expands to an M4 "include" line to grab the appropriate
feature definition macro, and then an invocation of that macro (in this
case, the 'authinfo' macro, with the parameters provided in the remainder
of the FEATURE line.
So, this line
FEATURE(`authinfo', `hash /etc/mail/authinfo')dnl
is replaced by
include(../feature/authinfo.m4)
and an expansion of the
authinfo(`hash /etc/mail/authinfo')dnl
macro
The
`hash /etc/mail/authinfo'
has nothing to do with the macro definition itself, it is only a parameter
into the macro. The macro transforms it into sendmail configuration
parameters that tell Sendmail where to find the authinfo table.
Your problem is that your installation of the sendmail macros is either
incomplete or corrupt; you don't seem to have the appropriate
cf/feature/authinfo.m4 file available, and thus the M4 macro processor
cannot expand the FEATURE(`authinfo' instruction.
[snip]
--
Lew Pitcher
"In Skills, We Trust"
PGP public key available upon request