Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 148178 - bind fails to build on Gentoo/FreeBSD.
Summary: bind fails to build on Gentoo/FreeBSD.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: High normal (vote)
Assignee: Konstantin Arkhipov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-19 04:36 UTC by Javier Villavicencio (RETIRED)
Modified: 2006-10-22 08:53 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
bind-9.3.2-r4_ebuild.patch (bind-9.3.2-r4_ebuild.patch,341 bytes, patch)
2006-09-19 04:39 UTC, Javier Villavicencio (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Javier Villavicencio (RETIRED) gentoo-dev 2006-09-19 04:36:28 UTC
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
Comment 1 Javier Villavicencio (RETIRED) gentoo-dev 2006-09-19 04:39:15 UTC
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.
Comment 2 Konstantin Arkhipov (RETIRED) gentoo-dev 2006-10-22 08:53:28 UTC
forgot to close this one, it's already in latest -r's.