Trouble with building Cyrus on amd64

mozafar roshany m.roshany at
Sat Sep 26 08:21:13 EDT 2009

Hello everyone.

I want to apply this patch: (
to increase the directory levels of mailboxes. But I've had many problems
with compiling Cyrus. My system is: Debian Lenny, 2.6.26-2-amd64 x86_64. The
last one I can't resolve. The following is the end of make:

### Making all in /root/src/cyrus/cyrus-imapd-2.2.12/perl
make[1]: Entering directory `/root/src/cyrus/cyrus-imapd-2.2.12/perl'
### Making all in /root/src/cyrus/cyrus-imapd-2.2.12/perl/imap
Writing Makefile for Cyrus::IMAP
make[2]: Entering directory `/root/src/cyrus/cyrus-imapd-2.2.12/perl/imap'
cc -c  -I../../lib   -D_REENTRANT -D_GNU_SOURCE -DDEBIAN
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O2 -g   -DVERSION=\"1.00\" -DXS_VERSION=\"1.00\"
-fPIC "-I/usr/lib/perl/5.10/CORE"  -DPERL_POLLUTE IMAP.c
Running Mkbootstrap for Cyrus::IMAP ()
chmod 644
rm -f blib/arch/auto/Cyrus/IMAP/
cc  -shared -O2 -g -L/usr/local/lib IMAP.o  -o
blib/arch/auto/Cyrus/IMAP/ ../../lib/libcyrus.a
../../lib/libcyrus_min.a    \
       -ldb-4 -lsasl2 -lssl -lcrypto      \

/usr/bin/ld: ../../lib/libcyrus.a(imclient.o): relocation R_X86_64_32S
against `a local symbol' can not be used when making a shared object;
recompile with -fPIC
../../lib/libcyrus.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [blib/arch/auto/Cyrus/IMAP/] Error 1
make[2]: Leaving directory `/root/src/cyrus/cyrus-imapd-2.2.12/perl/imap'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/root/src/cyrus/cyrus-imapd-2.2.12/perl'
make: *** [all] Error 1

It tells about adding -fPIC flag, but I've had no success with adding it to

I should mention the number of my test users are more than that be handled
by fulldirhash parameter. With this I will have several thousands of
mailboxes at one [A-Z] directory.

Thanks for any suggestions.
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the Info-cyrus mailing list