If gdbm-1.9.1 is built with USE=-compat, perl-5.12.4-r1 fails to build: # emerge perl [...] LD_RUN_PATH="/usr/lib64" x86_64-pc-linux-gnu-gcc -shared -march=native -O2 -pipe -Wl,--as-needed -Wl,-O1 NDBM_File.o -o ../../lib/auto/NDBM_File/NDBM_File.so \ -lgdbm -lgdbm_compat \ /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.1/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lgdbm_compat collect2: ld returned 1 exit status make[1]: *** [../../lib/auto/NDBM_File/NDBM_File.so] Error 1 make[1]: Leaving directory `/var/tmp/portage/dev-lang/perl-5.12.4-r1/work/perl-5.12.4/ext/NDBM_File' Unsuccessful make(ext/NDBM_File): code=512 at make_ext.pl line 449. make: *** [lib/auto/NDBM_File/NDBM_File.so] Error 25 Emerging gdbm-1.9.1 with USE=compat allows perl to build successfully.
As in bug 383757, it seems a useflag split is required, so that parts depending on just libgdbm are independent of parts requiring libgdbm_compat (namely ndbm module).
5.12 branch no longer in the tree. Please try again with 5.16