Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 94766 - sys-libs/db : 4.2.52_p2/4.3.27 : relocation errror with gcc 3.4.4
Summary: sys-libs/db : 4.2.52_p2/4.3.27 : relocation errror with gcc 3.4.4
Status: RESOLVED DUPLICATE of bug 94692
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-01 12:57 UTC by Rodolphe Rocca
Modified: 2005-06-01 15:22 UTC (History)
1 user (show)

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 Rodolphe Rocca 2005-06-01 12:57:42 UTC
Can't compile berkeley db with gcc 3.4.4 because of a relocation error due to
missing -fPIC C[XX]FLAGS.
By the way, 4.3.28 is out ;-)



Reproducible: Always
Steps to Reproduce:
1. emerge =sys-libs/db-4.2.52_p2 or emerge =sys-libs/db-4.3.27
2.
3.

Actual Results:  
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld:
.libs/cxx_db.o: relocation R_X86_64_32S against `vtable for Db' can not be used
when making a shared object; recompile with -fPIC
.libs/cxx_db.o: could not read symbols: Bad value
collect2: ld returned 1 exit status

Expected Results:  
emerged !

To solve this I needed :
- to inherit flag-o-matic in the ebuild
- to call "append-flags -fPIC"
I tested this solution only with version 4.3.27.
Comment 1 SpanKY gentoo-dev 2005-06-01 15:22:15 UTC
`append-flags -fPIC` is never a good solution

*** This bug has been marked as a duplicate of 94692 ***