Problems compiling sendmail 8.9.0

From: Larry Griffith <larry_at_garfield.wsc.mass.edu>
Date: Tue, 02 Jun 1998 18:13:17 -0400

Dear Managers,

          I've been trying to compile sendmail 8.9.0. I have
installed bind-8.1.2 and db-2.4.10 (the latter as recommended in the
sendmail documentation). The libraries and include files for both are
installed in the default locations under /usr/local.

          I had to patch src/sendmail.h and src/map.c because of a
compiler error concerning the declaration of "map_rewrite". I put a

         #define MAP_REWRITE_FIX

before the #include "sendmail.h" in map.c and surrounded the
prototype of "map_rewrite" in sendmail.h with a preprocessor test of
this symbol.

          Once you do this, the following command compiles all of the
sendmail files, but fails to link sendmail itself:

         ./Build -L/usr/local/lib -L/usr/local/bind/lib
-I/usr/local/include -I/usr/local/bind/include

(this is on one line)

          The linker error complains that "db_open" is unresolved.

          I checked the db-2.4.10 software; there is indeed a db_open
function in it. The command

          nm /usr/local/lib/libdb.a | grep "db_open"

seems to show the presence of db_open. What am I doing wrong here?

                                                  Larry

============================================================================
Larry Griffith Dept. of Computer & Info Science
larry_at_garfield.wsc.mass.edu Westfield State College
(413) 572-5294 Westfield, MA 01086 USA
PGP public key available at: http://garfield.wsc.mass.edu/dcis/griffith.html
============================================================================
Received on Wed Jun 03 1998 - 00:14:21 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:37 NZDT