Created attachment 319818 [details] dev-lang/perl-5.16.0 build.log dev-lang/perl-5.16.0 fails to build because of the following: ----------------------------------------------------------- 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: gcc -o try -O -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/root/gentoo/usr/include -Wl,-E try.c -lgdbm -lm -lcrypt -lutil -lc ./try and I got the following output: /usr/bin/ld: cannot find -lgdbm I can't compile the test program. You have a BIG problem. Shall I abort Configure [y] Ok. Stopping Configure. ----------------------------------------------------------- It might be possible to remove the dependency by removing -lgdbm. However, this assumes that CTARGET and CBUILD are the same, which breaks cross compilation. It would be best to remove this check altogether.
Installing sys-libs/gdbm does not fix this. I assume that is because LDFLAGS are not being passed.
I observed this issue when trying to get the bootstrap process working on FreeBSD 9.1-BETA1. I initially thought that this was a more general problem. Then I encountered additional issues with headers after bypassing the gdbm issue.
I cannot reproduce this on vanilla i386 and x86_64 FreeBSD 9.1-BETA1. Following the Solaris bootstrap instructions here.
I can perform stage{1,2,3} flawlessly on a vanilla FreeBSD 9.1-BETA1