on request by dilfridge, this is a minimal reminder bug, just some basic details: compiled perl with multilib-portage for x86, gdbm was only installed for amd64, so it may be detected, but not used for linking, as seen in the configure output: What installation prefix should I use for installing files? (~name ok) [/usr] Getting the current patchlevel... Build a threading Perl? [n] Build Perl for multiplicity? [n] Use which C compiler? [x86_64-pc-linux-gnu-gcc] Checking for GNU cc in disguise and/or its version number... Now, how can we feed standard input to your C preprocessor... Directories to use for library searches? [/usr/local/lib32 /lib32 /usr/lib32 /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/include-fixed /usr/lib /lib/../lib32 /usr/lib/../lib32 /lib] What is the file extension used for shared libraries? [so] Make shared library basenames unique? [n] Build Perl for SOCKS? [n] Try to use long doubles if available? [n] Checking for optional libraries... What libraries to use? [-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc -lgdbm_compat] What optimizer/debugger flag should be used? [-march=native -O2 -pipe -ggdb -m32] Any additional cc flags? [-fwrapv -fno-strict-aliasing -pipe] Let me guess what the preprocessor flags are... Any additional ld flags (NOT including libraries)? [-Wl,--as-needed -Wl,--hash-style=gnu -m32] Checking your choice of C compiler and flags for coherency... I've tried to compile and run the following simple program: #include <stdio.h> int main() { printf("Ok\n"); return(0); } I used the command: x86_64-pc-linux-gnu-gcc -o try -march=native -O2 -pipe -ggdb -m32 -fwrapv -fno-strict-aliasing -pipe -Wl,--as-needed -Wl,--hash-style=gnu -m32 try.c -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc -lgdbm_compat ./try and I got the following output: /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../libgdbm.so when searching for -lgdbm /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libgdbm.so when searching for -lgdbm /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lgdbm collect2: error: ld returned 1 exit status I can't compile the test program. You have a BIG problem. Shall I abort Configure [y] Ok. Stopping Configure.
Confirmed for 5.24.0-r1
This might be fixed by commit f0ea8f639d34f881b8325dfa4b8c7d2d876915c4 - could you please test again? Any of dev-lang/perl/perl-5.22.3_rc4.ebuild | 4 +++- dev-lang/perl/perl-5.24.0-r2.ebuild | 4 +++- dev-lang/perl/perl-5.24.1_rc4.ebuild | 4 +++-
(In reply to Andreas K. Hüttel from comment #2) > This might be fixed by commit f0ea8f639d34f881b8325dfa4b8c7d2d876915c4 > - could you please test again? Any of > > dev-lang/perl/perl-5.22.3_rc4.ebuild | 4 +++- > dev-lang/perl/perl-5.24.0-r2.ebuild | 4 +++- > dev-lang/perl/perl-5.24.1_rc4.ebuild | 4 +++- Definitively fixed for dev-lang/perl-5.24.1-r1