Configure of dev-lang/perl-5.16.3 failed with ︙ Any additional ld flags (NOT including libraries)? [-L/rpool/gentoo/usr/lib -R/rpool/gentoo/usr/lib -L/rpool/gentoo/lib -R/rpool/gentoo/lib -L/rpool/gentoo/tmp/usr/lib -R/rpool/gentoo/tmp/usr/lib] 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: i386-pc-solaris2.11-gcc -o try -O -fno-strict-aliasing -pipe -I/rpool/gentoo/usr/include -L/rpool/gentoo/usr/lib -R/rpool/gentoo/usr/lib -L/rpool/gentoo/lib -R/rpool/gentoo/lib -L/rpool/gentoo/tmp/usr/lib -R/rpool/gentoo/tmp/usr/lib try.c -lsocket -lnsl -lgdbm -ldb -ldl -lm -lc ./try and I got the following output: /lib/libelf.so.1: undefined reference to `inflate@SUNW_1.1' /lib/libelf.so.1: undefined reference to `deflateEnd@SUNW_1.1' /lib/libelf.so.1: undefined reference to `inflateInit_@SUNW_1.1' /lib/libelf.so.1: undefined reference to `deflateInit_@SUNW_1.1' /lib/libelf.so.1: undefined reference to `deflateReset@SUNW_1.1' /lib/libelf.so.1: undefined reference to `inflateReset@SUNW_1.1' /lib/libelf.so.1: undefined reference to `inflateEnd@SUNW_1.1' /lib/libelf.so.1: undefined reference to `deflate@SUNW_1.1' collect2: ld returned 1 exit status I can't compile the test program. Reproducible: Always I tried bootsrap SunOS solaris 5.11 11.2 Ultra 27 workstation using bootstrap-prefix.sh 61818.
Created attachment 372298 [details] build.log
Hmmm, it's looking for zlib, but -lz wasn't given on the link line.
Ok, I think it's a gdbm dependency. During bootstrap I'd love to see Perl not relying on libs as much as possible.
scratch that, it should already be off, it just seems like the perl build insists on using gdbm/db when it finds it
Not quite -- it first searches for all libraries that it might possibly use, even when all modules using it are disabled, and then tests whether they work and fails to build if they don't. A patch that mostly fixes this broken behavior is in the works, and will become active when perl-5.18.2 is unmasked.
Fixed perl is in the tree by now.