Hi,
When compiling the latest cyrus imap server 2.2.12 with berkeley db
4.5.20 on Solaris 9 with gcc I get this error:
==CUT==
bernd@adnpool02:/tmp/cyrus-imapd-2.2.12> gmake
### Making all in /tmp/cyrus-imapd-2.2.12/man
gmake[1]: Entering directory `/tmp/cyrus-imapd-2.2.12/man'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/tmp/cyrus-imapd-2.2.12/man'
### Making all in /tmp/cyrus-imapd-2.2.12/et
gmake[1]: Entering directory `/tmp/cyrus-imapd-2.2.12/et'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/tmp/cyrus-imapd-2.2.12/et'
### Making all in /tmp/cyrus-imapd-2.2.12/lib
gmake[1]: Entering directory `/tmp/cyrus-imapd-2.2.12/lib'
gcc -c -I.. -I/opt/adncyrus/include -I/opt/adncyrus/include
-I/opt/adncyrus/include -I../et -I/opt/adncyrus/include -DHAVE_CONFIG_H
-g -O2 \
cyrusdb_berkeley.c
cyrusdb_berkeley.c: In function `init':
cyrusdb_berkeley.c:152: warning: passing arg 2 of pointer to function
from incompatible pointer type
cyrusdb_berkeley.c:162: error: structure has no member named `set_lk_max'
gmake[1]: *** [cyrusdb_berkeley.o] Error 1
gmake[1]: Leaving directory `/tmp/cyrus-imapd-2.2.12/lib'
gmake: *** [all] Error 1
==CUT==
Looks like an API fluctuation of Berkely DB. Thanks in advance.
Regards,
Bernd
*System Information*
> uname -a
SunOS adnpool02 5.9 Generic_112233-12 sun4u sparc SUNW,Sun-Fire-V240
> gcc -v
Reading specs from
/share/app/gnu/gcc/3.4.1/lib/gcc/sparc-sun-solaris2.8/3.4.1/specs
Configured with: ../configure --prefix=/share/app/gnu/gcc/3.4.1
Thread model: posix
gcc version 3.4.1
> ld -v
GNU ld version 2.14 20030612
*Compile Instructions*
PATH="/share/app/gnu/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/ccs/bin"
CC=gcc
CFLAGS=-O3 -fPIC -Wall
CXX=g++
CXXFLAGS=-O3 -fPIC -Wall
CPPFLAGS="-I/opt/adncyrus/include"
LDFLAGS="-R/opt/adncyrus/lib -L/opt/adncyrus/lib
-R/opt/adncyrus/lib/sparcv9 -L/opt/adncyrus/lib/sparcv9"
LD_OPTIONS=$LDFLAGS
unset LD_LIBRARY_PATH
export PATH CC CFLAGS CXX CXXFLAGS LDFLAGS CPPFLAGS LD_OPTIONS
### OpenSSL
gtar -C /tmp -xvpzf openssl-0.9.8d.tar.gz
cd /tmp/openssl-0.9.8d
./config --prefix=/opt/adncyrus \
--openssldir=/opt/adncyrus/openssl shared \
-R/opt/adncyrus/lib -L/opt/adncyrus/lib \
-R/opt/adncyrus/lib/sparcv9 -L/opt/adncyrus/lib/sparcv9
gmake
gmake install
cd -
### OpenLDAP
gtar -C /tmp -xvpzf openldap-2.3.27.tgz
cd /tmp/openldap-2.3.27
./configure --prefix=/opt/adncyrus \
--sysconfdir=/etc/opt/adncyrus \
--disable-slapd --disable-slurpd \
--localstatedir=/var/opt/adncyrus \
--with-tls
gmake depend
gmake
gmake install
cd -
### Berkeley DB
gtar -C /tmp -xvpzf db-4.5.20.tar.gz
cd /tmp/db-4.5.20/build_unix
../dist/configure --prefix=/opt/adncyrus
gmake
gmake install
cd -
### Cyrus SASL
gtar -C /tmp -xvpzf cyrus-sasl-2.1.22.tar.gz
cd /tmp/cyrus-sasl-2.1.22
./configure --prefix=/opt/adncyrus \
--with-dbpath=/var/opt/adncyrus/sasldb2 \
--sysconfdir=/etc/opt/adncyrus \
--with-dblib=berkeley \
--with-bdb-libdir=/opt/adncyrus/lib \
--with-bdb-incdir=/opt/adncyrus/include \
--with-openssl=/opt/adncyrus \
--with-ldap=/opt/adncyrus \
--with-plugindir=/opt/adncyrus/lib/sasl2 \
--with-saslauthd=/var/opt/adncyrus/socket \
--with-des=/opt/adncyrus \
--enable-shared \
--enable-static \
--disable-gssapi \
--disable-kerb5
gmake
gmake install
cd -
### Cyrus IMAP
gtar -C /tmp -xvzf cyrus-imapd-2.2.12.tar.gz
cd /tmp/cyrus-imapd-2.2.12
./configure --prefix=/opt/adncyrus \
--with-auth=unix \
--with-cyrus-prefix=/opt/adncyrus \
--with-dbdir=/opt/adncyrus \
--with-openssl=/opt/adncyrus \
--with-sasl=/opt/adncyrus \
--sysconfdir=/etc/opt/adncyrus \
--with-statedir=/var/opt/adncyrus/socket \
--disable-krb4 \
--disable-cram \
--disable-gssapi \
--without-krb
gmake
----
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html