[SunHELP] Getting Sendmail 8.12.6 to compile on Solaris 8 with BerkeleyDB 4.1.24

Joost van Baal J.E.vanBaal at uvt.nl
Fri Nov 15 05:05:54 CST 2002


Hi,

I had exactly the same problem as Chris reported (and I don't have a
good solution...)

I am trying to build sendmail 8.12.6 on Solaris 8, with Berkely DB
4.1.24, which fails, out of the box.

This:

 joostvb at mailone:/usr....SunOS.5.8.sun4/sendmail% gcc -O -I. -I../../include
\
    -I/usr/local/BerkeleyDB.4.1/include -DNEWDB -DSOLARIS=20800 -DMAP_REGEX \
    -c -o map.o map.c

(which is what happens when one has the documented

    APPENDDEF(`confINCDIRS', `-I/usr/local/BerkeleyDB.4.1/include')
    APPENDDEF(`confLIBDIRS', `-L/usr/local/BerkeleyDB.4.1/lib')

in .../sendmail-8.12.6/devtools/Site/site.config.m4, and runs

 joostvb at mailone:/usr...sendmail-8.12.6/sendmail% sh Build

)

fails with

  map.c: In function `db_map_open':
  map.c:2118: warning: passing arg 2 of pointer to function from incompatible
pointer type
  map.c:2118: incompatible type for argument 4 of indirect function call
  map.c:2118: too few arguments to function

while this:
  joostvb at mailone:/usr....SunOS.5.8.sun4/sendmail% gcc -O -I. -I../../include
\
   -I/usr/local/BerkeleyDB.4.1/include -DNDBM -DSOLARIS=20800 -DMAP_REGEX -c
-o map.o map.c

works out fine.  So sticking with old-style NDBM instead of new NEWDB,
and having aliases.{dir,pag} instead of aliases.db, results in a fine
build.

One can force the Build script to compile this way, by supplying:

 define(`confMAPDEF', `-DNDBM -DMAP_REGEX')
 APPENDDEF(`confINCDIRS', `-I/usr/local/BerkeleyDB.4.1/include')
 APPENDDEF(`confLIBDIRS', `-L/usr/local/BerkeleyDB.4.1/lib')
 APPENDDEF(`conf_sendmail_LIBS', `-lresolv')

in site.config.m4, and running

 joostvb at banach:/usr...sendmail-8.12.6/sendmail% sh Build -S

.  (Beware: Build's --help output is buggy, it documents the -S flag
incorrectly.)

Hope this workaround is of any use.   I don't know how to fix sendmail
to get it build with -DNEWDB.  I'm very interested in any help on this.

Bye,

Joost

--
                          Joost van Baal
joostvb at uvt.nl                                                  DRC
(013-466-)3519                                   http://www.uvt.nl/
kamer C 230A                               Universiteit van Tilburg

[demime 0.99d.1 removed an attachment of type application/pgp-signature]



More information about the SunHELP mailing list