Hi *,

compilation fails on one machine here:

user.c: In function `user_delete':
user.c:115: warning: unused variable `pat'
user.c: At top level:
user.c:84: warning: `user_deleteacl' defined but not used
gcc -c -I. -I.. -I../sieve -I. -I./../lib -I./../acap -I../acap -I./../et 
-I./../sieve -I/usr/include/db3 -I/usr/local/BerkeleyDB.4.0/include 
-I/usr/local/include   -DHAVE_CONFIG_H  -Wall -g -O2 \
seen_db.c
gcc -c -I. -I.. -I../sieve -I. -I./../lib -I./../acap -I../acap -I./../et 
-I./../sieve -I/usr/include/db3 -I/usr/local/BerkeleyDB.4.0/include 
-I/usr/local/include   -DHAVE_CONFIG_H  -Wall -g -O2 \
notify_unix.c
notify_unix.c: In function `notify':
notify_unix.c:36: warning: unused variable `wait'
notify_unix.c:35: warning: unused variable `write_template'
notify_unix.c:35: warning: unused variable `read_template'
notify_unix.c:30: warning: unused variable `buf'
gcc -c -I. -I.. -I../sieve -I. -I./../lib -I./../acap -I../acap -I./../et 
-I./../sieve -I/usr/include/db3 -I/usr/local/BerkeleyDB.4.0/include 
-I/usr/local/include   -DHAVE_CONFIG_H  -Wall -g -O2 \
idle_idled.c
rm -f libimap.a
ar cr libimap.a append.o mailbox.o mboxlist.o mupdate-client.o mboxname.o 
message.o config.o imap_err.o mupdate_err.o proc.o setproctitle.o 
convert_code.o duplicate.o saslclient.o acapmbox.o signals.o annotate.o 
search_engines.o squat.o squat_internal.o base64.o imapparse.o telemetry.o 
user.o seen_db.o notify_unix.o idle_idled.o
ranlib libimap.a
gcc -L/usr/local/lib -Wl,-rpath,/usr/local/lib 
-L/usr/local/BerkeleyDB.4.0/lib -Wall -g -O2   -o imapd \
  ../master/service.o pushstats.o imapd.o index.o tls.o version.o libimap.a 
../acap/libacap.a ../lib/libcyrus.a  -lsasl2 -lrt -lssl -lcrypto   -lfl 
-ldb-4.0  -lresolv  ../et/libcom_err.a -lwrap -lnsl
../lib/libcyrus.a(cyrusdb_db3.o): In function `mysync':
/usr/src/cyrus-imapd-2.1.3/lib/cyrusdb_db3.c:232: undefined reference to 
`txn_checkpoint'
../lib/libcyrus.a(cyrusdb_db3.o): In function `myarchive':
/usr/src/cyrus-imapd-2.1.3/lib/cyrusdb_db3.c:257: undefined reference to 
`log_archive'
/usr/src/cyrus-imapd-2.1.3/lib/cyrusdb_db3.c:278: undefined reference to 
`log_archive'
/usr/src/cyrus-imapd-2.1.3/lib/cyrusdb_db3.c:306: undefined reference to 
`log_archive'
../lib/libcyrus.a(cyrusdb_db3.o): In function `gettid':
/usr/src/cyrus-imapd-2.1.3/lib/cyrusdb_db3.c:379: undefined reference to 
`txn_id'
/usr/src/cyrus-imapd-2.1.3/lib/cyrusdb_db3.c:382: undefined reference to 
`txn_id'
/usr/src/cyrus-imapd-2.1.3/lib/cyrusdb_db3.c:392: undefined reference to 
`txn_id'
../lib/libcyrus.a(cyrusdb_db3.o): In function `mystore':
/usr/src/cyrus-imapd-2.1.3/lib/cyrusdb_db3.c:671: undefined reference to 
`txn_id'
/usr/src/cyrus-imapd-2.1.3/lib/cyrusdb_db3.c:681: undefined reference to 
`txn_id'
../lib/libcyrus.a(cyrusdb_db3.o):/usr/src/cyrus-imapd-2.1.3/lib/cyrusdb_db3.c:695: 
more undefined references to `txn_id' follow
collect2: ld returned 1 exit status
make[1]: *** [imapd] Error 1
make[1]: Leaving directory `/usr/src/cyrus-imapd-2.1.3/imap'
make: *** [all] Error 1

I'm using the following configure line:

CPPFLAGS=-I/usr/local/BerkeleyDB.4.0/include \
LDFLAGS=-L/usr/local/BerkeleyDB.4.0/lib \
./configure --with-cyrus-user=cyrus --with-cyrus-group=mail 
--with-cyrus-prefix=/opt/cyrus --with-idle=idled --with-notify=unix

Any ideas? All I changed compared to the old config (which compiled, but did 
not run well) was: removing --with-idle=no --disable-sieve --without-notify 
and adding --with-idle=idled --with-notify=unix instead.

Cheers
Olaf

Reply via email to