`!!! existing preserved libs: >>> package: net-libs/ldns-1.7.1 * - /usr/lib/libldns.so.2 * - /usr/lib/libldns.so.2.0.0 * used by /usr/lib/python3.5/site-packages/_ldns.so.3.0.0 (net-libs/ldns-1.7.1) Use emerge @preserved-rebuild to rebuild packages using these libraries At the end of src_compile() it links against -L/usr/lib before -L.libs, which may be the cause of the problem: ./libtool --tag=CC --quiet --tag=CC --mode=link hppa2.0-unknown-linux-gnu-gcc -Wunused-function -Wstrict-prototypes -Wwrite-strings -W -Wall -mschedule=8000 -march=2.0 -ggdb -Wall -O2 -pipe -Wno-comment -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--no-keep-memory -L/usr/lib -lpython3.5m -module -version-info 3:0:0 -no-undefined -o _ldns.la ldns_wrapper.lo -rpath /usr/lib/python3.5/site-packages -L. -L.libs -lldns >>> Source compiled.
*** This bug has been marked as a duplicate of bug 641598 ***