Re: Trouble with building Cyrus on amd64

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you Patrick, it did worked.

On Sat, Sep 26, 2009 at 6:14 PM, Patrick Boutilier <boutilpj@xxxxxxxxxxx> wrote:
On 09/26/2009 09:21 AM, mozafar roshany wrote:
Hello everyone.

I want to apply this patch:
http://www.pramberger.at/peter/software/patches/#cyrus
(cyrus-imapd-2.2.12-md5hash.patch
<ftp://ftp.pramberger.at/software/patches/cyrus-imapd-2.2.12-md5hash.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 IMAP.bs
rm -f blib/arch/auto/Cyrus/IMAP/IMAP.so
cc  -shared -O2 -g -L/usr/local/lib IMAP.o  -o
blib/arch/auto/Cyrus/IMAP/IMAP.so ../../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/IMAP.so] 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 Makefiles.

make all CFLAGS=-fPIC


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.


------------------------------------------------------------------------

----
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


----
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

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux