libtool misbehaves on gentoo-freebsd with this output: /bin/bash /mnt/big/tmp/portage/bind-9.3.2-r4/work/bind-9.3.2-P1/libtool --mode=link i686-gentoo-freebsd6.1-gcc -pthread -march=pentium3 -O2 -frename-registers -pipe -o genrandom genrandom.lo rm -f .libs/genrandom.nm .libs/genrandom.nmS .libs/genrandom.nmT creating .libs/genrandomS.c extracting global C symbols from `.libs/genrandom.o' (cd .libs && i686-gentoo-freebsd6.1-gcc -pthread -c -fno-builtin "genrandomS.c") rm -f .libs/genrandomS.c .libs/genrandom.nm .libs/genrandom.nmS .libs/genrandom.nmT i686-gentoo-freebsd6.1-gcc -march=pentium3 -O2 -frename-registers -pipe -o genrandom .libs/genrandom.o .libs/genrandom.o .libs/genrandom.o: In function `main': genrandom.c:(.text+0x0): multiple definition of `main' .libs/genrandom.o:genrandom.c:(.text+0x0): first defined here collect2: ld returned 1 exit status rm -f .libs/genrandomS.o gmake[2]: *** [genrandom] Error 1 gmake[2]: Leaving directory `/mnt/big/tmp/portage/bind-9.3.2-r4/work/bind-9.3.2-P1/bin/tests' gmake[1]: *** [subdirs] Error 1 gmake[1]: Leaving directory `/mnt/big/tmp/portage/bind-9.3.2-r4/work/bind-9.3.2-P1/bin' gmake: *** [subdirs] Error 1
Created attachment 97394 [details, diff] bind-9.3.2-r4_ebuild.patch A full eautoreconf fixes the issue and doesn't break anything on x86 linux (as far as I'm able to test), the only problem here (and that's why I've added AT_NO_RECURSIVE=1) is that there are missing autoconf stuff in the rest of the bind package, that stops eautoreconf to fully all the subdirs.
forgot to close this one, it's already in latest -r's.