When upgrading the package, the compilation fails complaining about PIC problem. Reproducible: Always Steps to Reproduce: 1. emerge x11-libs/gail 2. 3. Actual Results: /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: gai.o: relocation R_X86_64_32 against `GAI_spaces' can not be used when making a shared object; recompile with -fPIC gai.o: could not read symbols: Bad value collect2: ld returned 1 exit status I found a similar problem in bug #157746. The solution provided there (unmerging and reemerging) doesn't work here. Doing "CFLAGS=-fPIC emerge x11-libs/gai" or "CFLAGS=-fpic emerge x11-libs/gai" works, but there is a warning: * Your CFLAGS contains "-fPIC" which can break packages. * So I would rather prefer the gai ebuild to manage the pic USE flag.
Helps to not mangle ebuild names in bug summary; plus this is not keyworded for amd64 at all.
Not keyworded at all. globally appending -fPIC is not the solution, neither is USE=pic. If you want to get this keyworded ~amd64 you have to provide a patch. See http://www.gentoo.org/proj/en/base/amd64/howtos/fpic.xml for how to properly fix PIC errors.