OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
libdb issues

From: Jim Raney (mlistsmad-seumas.net)
Date: Wed Sep 01 2004 - 13:00:51 CDT


I'm working on upgrading our postfix machines from 2.0.16 to 2.1.4 and
have run into a small snag. On my test machine, a quad-UltraSparc II
running Solaris 9, I'm seeing "fatal: unsupported dictionary type: hash"
in the logs.

I've compiled postfix against libdb-4.2 with the following:

make -f Makefile.init makefiles \
CCARGS='-static-libgcc -Duse64bitall \
-mcpu=v9 -m64 \
-DDEF_CONFIG_DIR=\"/opt/postfix-a/etc\" \
-DDEF_COMMAND_DIR=\"/opt/postfix-a/sbin\" \
-DDEF_DAEMON_DIR=\"/opt/postfix-a/libexec\" \
-DDEF_MAILQ_PATH=\"/opt/postfix-a/bin/mailq\" \
-DDEF_MANPAGE_DIR=\"/opt/postfix-a/man\" \
-DDEF_NEWALIAS_PATH=\"/opt/postfix-a/bin/newaliases\" \
-DDEF_QUEUE_DIR=\"/var/spool/postfix/a\" \
-DDEF_SENDMAIL_PATH=\"/opt/postfix-a/sbin/sendmail\" \
-DFD_SETSIZE=2048 \
-DHAS_PCRE -I/opt/local/sparcv9/include -DHASDB' \
AUXLIBS='-L/opt/local/sparcv9/lib -R/opt/local/sparcv9/lib -lpcre -ldb'

This is with a 64-bit gcc-3.4.1 against a 64-bit libdb-4.2. LDD shows:

bash-2.05# ldd /opt/postfix-a/sbin/postfix
        libpcre.so.0 => /opt/local/sparcv9/lib/libpcre.so.0
        libdb-4.2.so => /opt/local/sparcv9/lib/libdb-4.2.so
        libresolv.so.2 => /usr/lib/64/libresolv.so.2
        libsocket.so.1 => /usr/lib/64/libsocket.so.1
        libnsl.so.1 => /usr/lib/64/libnsl.so.1
        libc.so.1 => /usr/lib/64/libc.so.1
        libdl.so.1 => /usr/lib/64/libdl.so.1
        libmp.so.2 => /usr/lib/64/libmp.so.2
        /usr/platform/SUNW,UltraAX-MP/lib/sparcv9/libc_psr.so.1

So its finding libdb-4.2 both during compilation and runtime.

postconf -m gives me:

bash-2.05# /opt/postfix-a/sbin/postconf -m
static
cidr
pcre
nis
dbm
regexp
environ
proxy unix

The compilation went off OK with no issues. Can anyone shed some light on
why I can't use the hash: (or for that matter, btree: ) maps with the
above?

TIA,

--
Jim Raney