BIND 10 #474: bind10 doesn't compile with clang++ on FreeBSD
BIND 10 Development
do-not-reply at isc.org
Fri Jan 7 16:26:31 UTC 2011
#474: bind10 doesn't compile with clang++ on FreeBSD
-------------------------------------+-------------------------------------
Reporter: jinmei | Owner: jreed
Type: defect | Status: reviewing
Priority: major | Milestone: y2 12 month
Component: build | milestone
system | Resolution:
Keywords: | Sensitive: 0
Estimated Number of Hours: 0.0 | Add Hours to Ticket: 0
Billable?: 1 | Total Hours: 0
Internal?: 0 |
-------------------------------------+-------------------------------------
Comment (by jreed):
Replying to [comment:1 jinmei]:
> And this is the proposed changelog entry:
> {{{
> 144.? [build] jinmei
> Introduced a workaround for clang++ build on FreeBSD (and probably
> some other OSes). If building BIND 10 fails with clang++ due to
> a link error about "__dso_handle", try again from the configure
> script with CXX_LIBTOOL_LDFLAGS=-L/usr/lib (the path actually
> doesn't matter; the important part is the -L flag). This
> workaround is not automatically enabled as it's difficult to
> detect the need for it dynamically, and must be enabled via the
> variable by hand.
It would be nice if this could be automated. Or maybe there is a newer
AC_PROG_LIBTOOL macro that does the right thing. But for now this is fine
to commit. I tested it with clang++
> Another unrelated note about clang++ on FreeBSD: the build may
> fail in compiling a test. If that happens try disabling compiler
> optimization by setting CXXFLAGS manually. (Trac #474, svn rTBD)
This part I don't think needs to be in the changelog.
Also the error with that may need a different bug ticket. I hit it but
didn't explore. I then did "make CXXFLAGS=-g" and make completed.
> The only offending file is ccsession_unittests.cc. I've not figured it
why (yet), maybe it's too complicated? In any case if we want to solve it
this should go to a separate ticket.
Yes, different ticket.
--
Ticket URL: <http://bind10.isc.org/ticket/474#comment:2>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list