Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 167232 - x11-libs/gai-0.5.10 -fPIC problem
Summary: x11-libs/gai-0.5.10 -fPIC problem
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-16 17:25 UTC by Greisberger Christophe
Modified: 2007-02-16 17:49 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Greisberger Christophe 2007-02-16 17:25:23 UTC
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.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-02-16 17:35:21 UTC
Helps to not mangle ebuild names in bug summary; plus this is not keyworded for amd64 at all.
Comment 2 Simon Stelling (RETIRED) gentoo-dev 2007-02-16 17:49:20 UTC
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.