When trying to emerge courier-imap-4.0.1, compilation of dependency courier-authlib-0.55 fails, complaining about the need for -fPIC Reproducible: Always Steps to Reproduce: 1. Gentoo Linux AMD64 2005.0 2. emerge vpopmail (successful) 3. emerge courier-imap (fails) Actual Results: /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object. /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: /var/vpopmail/lib/libvpopmail.a(cdb_seek.o): relocation R_X86_64_PC32 against `read@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value collect2: ld returned 1 exit status make[2]: *** [libauthvchkpw.la] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/courier-authlib-0.55/work/courier-authlib-0.55' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/courier-authlib-0.55/work/courier-authlib-0.55' make: *** [all] Error 2 Expected Results: Expected a successful build tried: CFLAGS="-fPIC" emerge vpopmail courier-imap to try to fix the problem. Still the same error
Fixed in >=courier-authlib-0.55.20050320 *** This bug has been marked as a duplicate of 81605 ***
This bug still shows up in courier-authlib-0.57
it looks like i'm getting it with courier-authlib-0.55.20050320, even: /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object. /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: /var/vpopmail/lib/libvpopmail.a(cdb_seek.o): relocation R_X86_64_PC32 against `read@@GLIBC_2 .2.5' can not be used when making a shared object; recompile with -fPIC /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value collect2: ld returned 1 exit status make[2]: *** [libauthvchkpw.la] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/courier-authlib-0.55.20050320/work/courier-authlib-0.55.20050320' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/courier-authlib-0.55.20050320/work/courier-authlib-0.55.20050320' make: *** [all] Error 2 !!! ERROR: net-libs/courier-authlib-0.55.20050320 failed. !!! Function src_compile, Line 101, Exitcode 2 !!! Compile problem !!! If you need support, post the topmost build error, NOT this status message.
Got it working, think I just needed amd64 in my USE flag. Thanks.