Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 45810 - cyrus-imap-admin compile problem -fPIC
Summary: cyrus-imap-admin compile problem -fPIC
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-26 08:10 UTC by Tom Albers
Modified: 2004-03-30 05:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to make net-mail/cyrus-imap-admin-2.1.14 compile on amd64 (cyrus-imap-admin-2.1.14-amd64-fPIC.patch,750 bytes, patch)
2004-03-26 09:59 UTC, Danny van Dyk (RETIRED)
Details | Diff
New ebuild to use amd64-fPIC patch (cyrus-imap-admin-2.1.14.ebuild,3.32 KB, text/plain)
2004-03-26 10:01 UTC, Danny van Dyk (RETIRED)
Details
Patch to make net-mail/cyrus-imap-admin-2.1.14 compile on amd64 (2nd revision) (cyrus-imap-admin-2.1.14-amd64-fPIC.patch,580 bytes, patch)
2004-03-26 11:01 UTC, Danny van Dyk (RETIRED)
Details | Diff
New ebuild to use amd64-fPIC patch (2nd revision) (cyrus-imap-admin-2.1.14.ebuild,3.28 KB, text/plain)
2004-03-26 11:02 UTC, Danny van Dyk (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Albers 2004-03-26 08:10:21 UTC
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.
Comment 1 Danny van Dyk (RETIRED) gentoo-dev 2004-03-26 09:59:16 UTC
Created attachment 28076 [details, diff]
Patch to make net-mail/cyrus-imap-admin-2.1.14 compile on amd64
Comment 2 Danny van Dyk (RETIRED) gentoo-dev 2004-03-26 10:01:03 UTC
Created attachment 28077 [details]
New ebuild to use amd64-fPIC patch
Comment 3 Danny van Dyk (RETIRED) gentoo-dev 2004-03-26 10:02:47 UTC
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.
Comment 4 Danny van Dyk (RETIRED) gentoo-dev 2004-03-26 11:01:23 UTC
Created attachment 28082 [details, diff]
Patch to make net-mail/cyrus-imap-admin-2.1.14 compile on amd64 (2nd revision)
Comment 5 Danny van Dyk (RETIRED) gentoo-dev 2004-03-26 11:02:08 UTC
Created attachment 28083 [details]
New ebuild to use amd64-fPIC patch (2nd revision)
Comment 6 Danny van Dyk (RETIRED) gentoo-dev 2004-03-26 11:03:49 UTC
Ok, 2nd revision. I hope it works now for everyone...
Comment 7 Jason Huebel (RETIRED) gentoo-dev 2004-03-26 12:44:31 UTC
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).
Comment 8 Tom Albers 2004-03-26 13:00:06 UTC
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.
Comment 9 Daniel Ahlberg (RETIRED) gentoo-dev 2004-03-30 05:17:40 UTC
Fixed 2.2.3 in CVS, thanks!