Quoting Simon Matter <simon.matter@xxxxxxxxx>:
Hi, i tried to compile cyrus 2.3.12p2 on a x86_64 system. first i had to replaye config.sub which is shipped with cyrus with a nerwer version found on my system. This problem already exiss in 2.3.8 the make stopps with an error while making perl/imap. Can someone confirm this bug? How do i solve it?Did you add -fPIC to $CFLAGS when running ./configure/make? My RedHat rpms build fine on RHEL5.1 x86_64 and I don't remember to see a difference since 2.3.8.
I also found the hint to adding -fPIC to $CFLAGS, at http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1&chap=3
It solved the problem, but "In this case, globally adding -fPIC to C[XX]FLAGS resolves the issue, although this practice is discouraged because the executables end up being PIC-enabled, too."
I think we discussed the problem with the config.sub a year ago. http://readlist.com/lists/lists.andrew.cmu.edu/info-cyrus/0/4957.html Do you have to replace the config.sub or does your configure find the config.sub in the system? Regards Michael Menge
SimonRegards Michael IMAP.c:673: warning: unused variable ?RETVAL? Running Mkbootstrap for Cyrus::IMAP () chmod 644 IMAP.bs rm -f blib/arch/auto/Cyrus/IMAP/IMAP.so LD_RUN_PATH="/usr/lib64" cc -shared -L/usr/local/lib64 IMAP.o -o blib/arch/auto/Cyrus/IMAP/IMAP.so ../../lib/libcyrus.a ../../lib/libcyrus_min.a \ -ldb-4.3 -lsasl2 -lssl -lcrypto \ /usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: ../../lib/libcyrus.a(imclient.o): relocation R_X86_64_32 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] Fehler 1 make[2]: Leaving directory `/zdv-system/cyrus-imapd-2.3.12/perl/imap' make[1]: *** [all] Fehler 1 make[1]: Leaving directory `/zdv-system/cyrus-imapd-2.3.12/perl' make: *** [all] Fehler 1 -------------------------------------------------------------------------------- M.Menge Tel.: (49) 7071/29-70316 Universitaet Tuebingen Fax.: (49) 7071/29-5912 Zentrum fuer Datenverarbeitung mail: michael.menge@xxxxxxxxxxxxxxxxxxxx Waechterstrasse 76 72074 Tuebingen ---- 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
-------------------------------------------------------------------------------- M.Menge Tel.: (49) 7071/29-70316 Universitaet Tuebingen Fax.: (49) 7071/29-5912Zentrum fuer Datenverarbeitung mail: michael.menge@xxxxxxxxxxxxxxxxxxxx
Waechterstrasse 76 72074 Tuebingen
Attachment:
smime.p7s
Description: S/MIME krytographische Unterschrift
---- 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