Link to home
Start Free TrialLog in
Avatar of PsiCop
PsiCopFlag for United States of America

asked on

Compile problem: sendmail 8.13.1 on Solaris v8

I am building sendmail v8.13.1 on Solaris v8 (with latest Recommended Patches) using gcc, and it is bombing during compilation with the error:

Undefined                       first referenced
 symbol                             in file
fdatasync                           /opt/db/lib/libdb.so

More about the system and environment:

Berkeley DB v4.3.21.NC

Results of: gcc -v
Reading specs from /usr/bin/../lib/gcc-lib/sparc-sun-solaris2.8/3.3.2/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --disable-nls --disable-libgcj --enable-languages=c,c++
Thread model: posix
gcc version 3.3.2

Results of: uname -a
SunOS host 5.8 Generic_117350-14 sun4m sparc SUNW,SPARCstation-20

Results of: more site.config.m4
dnl ### Changes to disable the default NIS support
APPENDDEF(`confENVDEF', `-UNIS')

define(`confSTDIO_TYPE', `portable')

dnl ### Disable IPv6 support
ADDENDDEF(`confENVDEF', `-DNETINET6=0')

dnl ### Include Berkeley DB support
APPENDDEF(`confENVDEF', `-DNEWDB')
APPENDDEF(`confLIBDIRS', `-L/opt/db/lib -R/opt/db/lib')

dnl ### Disable source routing
APPENDDEF(`confENVDEF', `-DIP_SRCROUTE=0')

APPENDDEF(`conf_libmilter_ENVDEF', `-D_FFR_MILTER_ROOT_UNSAFE')

APPENDDEF(`conf_sendmail_ENVDEF', `-DMILTER')
APPENDDEF(`conf_sendmail_MAPDEF', `-DDNSMAP=1')
APPENDDEF(`conf_sendmail_ENVDEF', `-DMAXBADCOMMANDS=1')
APPENDDEF(`conf_sendmail_ENVDEF', `-DMAXNOOPCOMMANDS=1')
APPENDDEF(`conf_sendmail_ENVDEF', `-DMAXVFYCOMMANDS=1')
Avatar of PsiCop
PsiCop
Flag of United States of America image

ASKER

Hmmm.... I've backrevved to Berkeley DB v4.2.52.NC and the problem seems to have vanished. The compile runs cleanly.
Avatar of PsiCop

ASKER

OK, I'm going to ask a Moderator to PAQ this - its seems that sendmail v8.13.1 (and presumably earlier versions of sendmail) does not get along with Sleepycat's Berkeley DB v4.3.x

The solution is to back-rev to Berkeley DB v4.2.x (v4.2.52.NC as of this writing - note that there are two patches available for that version).
ASKER CERTIFIED SOLUTION
Avatar of ee_ai_construct
ee_ai_construct
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial