The ebuild cyrus-imap-admin-2.1.14.ebuild does not want to compile. After some help from jhuebel I added the rule: use amd64 && append-flags -fPIC Directly after the rules: # make depends break with -f... in CFLAGS make depend CFLAGS="" || die "make depend problem" But when compiling it stops with these rules: ------------------ Unrecognized argument in LIBS ignored: '-Wl,-rpath,/usr/lib' Writing Makefile for Cyrus::IMAP ### Making all in /var/tmp/portage/cyrus-imap-admin-2.1.14/work/cyrus-imapd-2.1.14/perl/imap make[1]: Entering directory `/var/tmp/portage/cyrus-imap-admin-2.1.14/work/cyrus-imapd-2.1.14/perl/imap' cp IMAP/Admin.pm blib/lib/Cyrus/IMAP/Admin.pm cp IMAP.pm blib/lib/Cyrus/IMAP.pm cp IMAP/Shell.pm blib/lib/Cyrus/IMAP/Shell.pm cp IMAP/IMSP.pm blib/lib/Cyrus/IMAP/IMSP.pm /usr/bin/perl /usr/lib/perl5/5.8.2/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.2/ExtUtils/typemap -typemap typemap IMAP.xs > IMAP.xsc && mv IMAP.xsc IMAP.c gcc -c -I../../lib -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -DVERSION=\"1.00\" -DXS_VERSION=\"1.00\" -fPIC "-I/usr/lib/perl5/5.8.2/x86_64-linux/CORE" -DPERL_POLLUTE IMAP.c Running Mkbootstrap for Cyrus::IMAP () chmod 644 IMAP.bs rm -f blib/arch/auto/Cyrus/IMAP/IMAP.so LD_RUN_PATH="/usr/lib" gcc -shared -L/usr/local/lib IMAP.o -o blib/arch/auto/Cyrus/IMAP/IMAP.so ../../lib/libcyrus.a -lsasl2 -L/usr/lib -L/usr/lib -lssl -lcrypto /usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.3/../../../../x86_64-pc-linux-gnu/bin/ld: ../../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[1]: *** [blib/arch/auto/Cyrus/IMAP/IMAP.so] Error 1 make[1]: Leaving directory `/var/tmp/portage/cyrus-imap-admin-2.1.14/work/cyrus-imapd-2.1.14/perl/imap' make: *** [all] Error 1 !!! ERROR: net-mail/cyrus-imap-admin-2.1.14 failed. !!! Function src_compile, Line 101, Exitcode 2 !!! compile problem ------------------ This is where jhuebel asked me to file this report. Thnxs.
Created attachment 28076 [details, diff] Patch to make net-mail/cyrus-imap-admin-2.1.14 compile on amd64
Created attachment 28077 [details] New ebuild to use amd64-fPIC patch
Compiles fine for me with above patch and new ebuild, though the patch has to be applied in src_compile. That's because it directly patches several Makefiles that are automatically created.
Created attachment 28082 [details, diff] Patch to make net-mail/cyrus-imap-admin-2.1.14 compile on amd64 (2nd revision)
Created attachment 28083 [details] New ebuild to use amd64-fPIC patch (2nd revision)
Ok, 2nd revision. I hope it works now for everyone...
Looks like this will take a little more work to implement in portage than I anticipated. It's going to require a new virtual/afs since net-fs/openafs isn't supported on kernel 2.5 or greater (it's built-in now).
I do not understand your comment exactly (no need to either), justed wanted you to know that I compiled it with a 2.6.3-rc2-gentoo kernel with the patch and ebuild successfully.
Fixed 2.2.3 in CVS, thanks!