BIND 10 #474: bind10 doesn't compile with clang++ on FreeBSD

BIND 10 Development do-not-reply at isc.org
Tue Jan 4 04:50:56 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 milestone
     Component:  build system  |   Resolution:                       
      Keywords:                |    Sensitive:  0                    
Estimatedhours:  0.0           |        Hours:  0                    
      Billable:  1             |   Totalhours:  0                    
      Internal:  0             |  
-------------------------------+--------------------------------------------
Changes (by jinmei):

  * status:  new => reviewing


Comment:

 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.
         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)
 }}}

 As noted above, we need to disable compiler optimization to build it on
 freebsd8-32-1-on-virt1 (e.g., by CXXFLAGS=-g).

 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.

-- 
Ticket URL: <http://bind10.isc.org/ticket/474#comment:1>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list