SUMMARY: problem compiling sendmail 8.9.1 on solaris 2.5.1 with g cc 2.8.1 and db 2.4.14

From: Lee, Zeno (ECCS) (ZLee@exchange.ml.com)
Date: Tue Aug 04 1998 - 19:11:46 CDT


The problem, after some troubleshooting was with a db package I installed
previously. I had GDBM 1.7.3 installed and the db libs were interfering.
After pkgrm, I reinstalled Berkeley's DB 2.4.14 and the sendmail install
preceded fine.

Thanks to the following for their quick responses
James Ford [jford@tusc.net]
Al Hopper [al@logical-approach.com]
Gustavo A. Lozano [glozano@colinter.net]
Marcelo Maraboli [maraboli@dcsc.utfsm.cl]
Rik Schneider [rik@netasset.com]
John P. Dodge [john.p.dodge@boeing.com]

Hello sun managers
I am trying to compile sendmail, but I'm having trouble with my db libs
I tried compiling with the db libs that came with Solaris, but since they
didn't work I installed db 2.4.14 from www.sleepycat.com but the problems
persist. Does anyone know how to rectify this problem? What am I doing
wrong?

/opt/inst/sendmail-8.9.1/src $ Build
Configuration: os=SunOS, rel=5.5.1, rbase=5, rroot=5.5, arch=sun4, sfx=
Making in obj.SunOS.5.5.1.sun4
/usr/local/bin/gcc -o sendmail -L/usr/local/lib alias.o arpadate.o clock.o
coll
ect.o conf.o convtime.o daemon.o deliver.o domain.o envelope.o err.o
headers.o
macro.o main.o map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o
saf
efile.o savemail.o snprintf.o srvrsmtp.o stab.o stats.o sysexits.o trace.o
udb.
o usersmtp.o util.o version.o -lresolv -lsocket -lnsl -lkstat
Undefined first referenced
 symbol in file
dbm_pagfno map.o
dbm_dirfno map.o
ld: fatal: Symbol referencing errors. No output written to sendmail
*** Error code 1
make: Fatal error: Command failed for target `sendmail'

I specified the following in the Makefile so that's not the issue
INCDIRS -I/usr/local/include
LIBDIRS= -L/usr/local/lib

I also installed UCB's db2.4.14 libs in /usr/local/lib shown below

/usr/local/lib $ ls -l
total 9348
lrwxrwxrwx 1 root other 22 Jul 22 15:05 X11 ->
/usr/local/X11R6.3/
lib
drwxr-xr-x 3 root root 512 Jul 22 00:45 gcc-lib
-rw-r--r-- 1 root root 1371892 Mar 18 1997 libbfd.a
-r--r--r-- 1 root other 439164 Aug 1 13:56 libdb.a
-rw-r--r-- 1 root root 4172 Jul 8 09:47 libfl.a
-rw-r--r-- 1 root root 45388 Jul 8 10:42 libgdbm.a
-rw-r--r-- 1 bin bin 220750 Apr 21 03:05 libiberty.a
-rw-r--r-- 1 root root 77108 Mar 18 1997 libmmalloc.a
-rw-r--r-- 1 root root 204572 Mar 18 1997 libopcodes.a
-rw-r--r-- 1 root root 450988 Mar 18 1997 libreadline.a
-rw-r--r-- 1 bin bin 1900320 Apr 21 03:09 libstdc++.a
drwxr-xr-x 28 root root 2048 Jul 22 00:54 perl5
/usr/local/lib $

Any ideas would be greatly appreciated

-Zeno



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:45 CDT