Compiling Cyrus IMAPD on AMD Opteron

Patrick Morris pmorris at
Thu Jun 12 12:13:24 EDT 2003

Unfortunately, you've snipped the part that would show what's really 
broken: the compilation of libcyrus.a.  It looks like Perl on that 
system is misconfigured, and didn't compile libcyrus.a with the -fPIC 
option needed to link it into a shared library.

curtis at wrote:

>I have a dual AMD Opteron configured with the SUSE Linux 8 for AMD64.
>I am testing the trail system out.  The problem comes in when the make
>gets to compiling the Perl IMAP module.  Cyrus SASL compiled fine.
>GCC: gcc version 3.2.2 (SuSE Linux)
>Perl ver: 5.8.0
>Cyrus SASL ver: 2.1.13
>./configure --with-openssl --enable-gssapi --enable-plain
>Cyrus IMAPD ver: 2.1.13
>./configure --with-openssl --with-dbdir --with-sasl --with-libwrap
>make[2]: Entering directory `/root/src/cyrus-imapd-2.1.13/perl/imap'
>rm -f blib/arch/auto/Cyrus/IMAP/
>LD_RUN_PATH="/usr/lib64" cc  -shared -L/usr/local/lib64 IMAP.o  -o
>blib/arch/auto/Cyrus/IMAP/ ../../lib/libcyrus.a  -lssl -lcrypto
>../../lib/libcyrus.a(imclient.o): relocation R_X86_64_32 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-imapd-2.1.13/perl/imap'
>make[1]: *** [all] Error 1
>make[1]: Leaving directory `/root/src/cyrus-imapd-2.1.13/perl'
>make: *** [all] Error 1
>Can anyone help me with it?  I wanted to get it working to test out the
>performance of the system.
>Curtis Robinson

More information about the Info-cyrus mailing list