Thank you Patrick, it did worked.<br><br><div class="gmail_quote">On Sat, Sep 26, 2009 at 6:14 PM, Patrick Boutilier <span dir="ltr">&lt;<a href="mailto:boutilpj@ednet.ns.ca">boutilpj@ednet.ns.ca</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On 09/26/2009 09:21 AM, mozafar roshany wrote:<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
Hello everyone.<br>
<br>
I want to apply this patch:<br>
<a href="http://www.pramberger.at/peter/software/patches/#cyrus" target="_blank">http://www.pramberger.at/peter/software/patches/#cyrus</a><br>
(cyrus-imapd-2.2.12-md5hash.patch<br></div>
&lt;<a href="ftp://ftp.pramberger.at/software/patches/cyrus-imapd-2.2.12-md5hash.patch" target="_blank">ftp://ftp.pramberger.at/software/patches/cyrus-imapd-2.2.12-md5hash.patch</a>&gt;)<div><div></div><div class="h5"><br>

to increase the directory levels of mailboxes. But I&#39;ve had many<br>
problems with compiling Cyrus. My system is: Debian Lenny,<br>
2.6.26-2-amd64 x86_64. The last one I can&#39;t resolve. The following is<br>
the end of make:<br>
<br>
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<br>
...<br>
### Making all in /root/src/cyrus/cyrus-imapd-2.2.12/perl<br>
make[1]: Entering directory `/root/src/cyrus/cyrus-imapd-2.2.12/perl&#39;<br>
### Making all in /root/src/cyrus/cyrus-imapd-2.2.12/perl/imap<br>
Writing Makefile for Cyrus::IMAP<br>
make[2]: Entering directory `/root/src/cyrus/cyrus-imapd-2.2.12/perl/imap&#39;<br>
cc -c  -I../../lib   -D_REENTRANT -D_GNU_SOURCE -DDEBIAN<br>
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE<br>
-D_FILE_OFFSET_BITS=64 -O2 -g   -DVERSION=\&quot;1.00\&quot; -DXS_VERSION=\&quot;1.00\&quot;<br>
-fPIC &quot;-I/usr/lib/perl/5.10/CORE&quot;  -DPERL_POLLUTE IMAP.c<br>
Running Mkbootstrap for Cyrus::IMAP ()<br>
chmod 644 IMAP.bs<br>
rm -f blib/arch/auto/Cyrus/IMAP/IMAP.so<br>
cc  -shared -O2 -g -L/usr/local/lib IMAP.o  -o<br>
blib/arch/auto/Cyrus/IMAP/IMAP.so ../../lib/libcyrus.a<br>
../../lib/libcyrus_min.a    \<br>
        -ldb-4 -lsasl2 -lssl -lcrypto      \<br>
<br>
/usr/bin/ld: ../../lib/libcyrus.a(imclient.o): relocation R_X86_64_32S<br>
against `a local symbol&#39; can not be used when making a shared object;<br>
recompile with -fPIC<br>
../../lib/libcyrus.a: could not read symbols: Bad value<br>
collect2: ld returned 1 exit status<br>
make[2]: *** [blib/arch/auto/Cyrus/IMAP/IMAP.so] Error 1<br>
make[2]: Leaving directory `/root/src/cyrus/cyrus-imapd-2.2.12/perl/imap&#39;<br>
make[1]: *** [all] Error 1<br>
make[1]: Leaving directory `/root/src/cyrus/cyrus-imapd-2.2.12/perl&#39;<br>
make: *** [all] Error 1<br>
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<br>
<br>
It tells about adding -fPIC flag, but I&#39;ve had no success with adding it<br>
to Makefiles.<br>
</div></div></blockquote>
<br>
make all CFLAGS=-fPIC<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
<br>
I should mention the number of my test users are more than that be<br>
handled by fulldirhash parameter. With this I will have several<br>
thousands of mailboxes at one [A-Z] directory.<br>
<br>
Thanks for any suggestions.<br>
<br>
<br></div>
------------------------------------------------------------------------<br>
<br>
----<br>
Cyrus Home Page: <a href="http://cyrusimap.web.cmu.edu/" target="_blank">http://cyrusimap.web.cmu.edu/</a><br>
Cyrus Wiki/FAQ: <a href="http://cyrusimap.web.cmu.edu/twiki" target="_blank">http://cyrusimap.web.cmu.edu/twiki</a><br>
List Archives/Info: <a href="http://asg.web.cmu.edu/cyrus/mailing-list.html" target="_blank">http://asg.web.cmu.edu/cyrus/mailing-list.html</a><br>
</blockquote>
<br>
</blockquote></div><br>