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.
`append-flags -fPIC` is never a good solution *** This bug has been marked as a duplicate of 94692 ***