Cyrus IMAPd 2.3.7 Released

Rosenbaum, Larry M. rosenbaumlm at
Tue Jul 11 15:19:32 EDT 2006

> -----Original Message-----
> From: Дейтер Александр Валериевич [mailto:tiamat at]
> > That was probably me.  I have just built 2.3.7 on our test system and
> > haven't seen any fatal errors.  However, I am using gcc (v3.4.2), NOT
> the
> > Sun compiler.
> This error happens if you compile Cyrus IMAP as 64-bit application:
> $ file /usr/local/sbin/imapd
> /usr/local/sbin/imapd:  ELF 64-bit MSB executable SPARCV9 Version 1,
> UltraSPARC1 Extensions Required, dynamically linked, stripped
> For this purpose it is necessary to set compiler options:
> -m64 for gcc, or -xarch=v9 for Sun cc.
> Tell me please, what options of the gcc compiler you used at build Cyrus
> IMAP ?

CC=gcc LDFLAGS="-L/usr/local/lib -R/usr/local/lib" \
  ./configure \
  --enable-idled \
  --with-cyrus-prefix=/usr/local/cyrus \
  --with-dbdir=/usr/local/BerkeleyDB.4.4 \
  --with-openssl=/usr/local/ssl \

which results in compile commands like this:

gcc -c -I.. -I./../lib -I../et -I./../sieve -I/usr/local/BerkeleyDB.4.4/include  -I/usr/local/ssl/include
 -I/usr/local/include -DHAVE_CONFIG_H  -g -O2 \

and link commands like this:

gcc -L/usr/local/ssl/lib -R/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.4/lib -R/usr/local/BerkeleyDB.4.4
/lib -L/usr/local/lib -R/usr/local/lib   -o imapd \
 ../master/service.o pushstats.o imapd.o proxy.o imap_proxy.o index.o version.o mutex_fake.o \
libimap.a ../lib/libcyrus.a ../lib/libcyrus_min.a  -L/usr/local/lib  -R/usr/local/lib -lsasl2 -lgss -lresolv -lresolv -ldl  -lresolv  -lresolv -lsocket -lnsl  -L/usr/local/BerkeleyDB.4.4/lib  -R/usr/local/BerkeleyDB.4.4/lib -ldb-4.4 -lssl -lcrypto -lrt ../et/libcom_err.a

> Also show a output of this command:
> $ file /path/to/imapd

# file /usr/local/cyrus/bin/imapd
/usr/local/cyrus/bin/imapd:     ELF 32-bit MSB executable SPARC Version 1, dynamically linked, not stripped

which I guess means it's not really a 64-bit application but it still cares about alignment of a 64-bit integer.

Hope this helps,

More information about the Info-cyrus mailing list