From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078712011451.tru64-unix-managers.marc@archive.invalid> From: Larry Griffith Date: Thu, 04 Jun 1998 15:27:09 +0000 To: tru64-unix-managers Subject: [FOLLOW UP]Problems compiling sendmail 8.9.0 X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078712011451 Dear Managers, No joy on this one. I did receive two responses, asking whether I had included the proper link options (yes I had and the sendmail Build script was indeed transmitting them to the cc command used to link). Arrigo suggested check for patches at www.sendmail.com (not .org). I tried this but could not locate any. On my own I tried recompiling the DB 2.4.10 package with my original configuration (C++ support and DB 1.85 compatibility) and with the basic configuration (no options). The sendmail build script reacted in exactly the same way: "db_open" unresolved. I also tried putting the correct db library into the cc command explicitly, without using the link flags. That also failed in exactly the same way. Finally I tried writing a simple C program of my own that just basically just consists of a call to db_open. I compiled with the correct -L and -I options. The link failed in exactly the same way: "db_open" is unresolved. The only conclusion I can come to is that DB 2.4.10 has a serious bug in it. I'll try contacting sleepcat to see if I can find out anything. As far as sendmail is concerned, the only thing I can think of at this point is to remove the NEWDB support (I already removed NIS since that seems to cause problems on my system) and rely solely on NDBM. This does at least compile, although I have not tested it further as yet. Responses from and thanks to: Arrigo Triulzi "Allen, Mark R (PBD)" Original post -------- ---- 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?