[MacPorts] #32094: opencv: ld: duplicate symbol std::tr1::placeholders::(anonymous namespace)::_10 (was: opencv will not build)

MacPorts noreply at macports.org
Wed Feb 1 06:07:00 PST 2012


#32094: opencv: ld: duplicate symbol std::tr1::placeholders::(anonymous
namespace)::_10
--------------------------------+-------------------------------------------
 Reporter:  trog24@…            |       Owner:  macports-tickets@…                   
     Type:  defect              |      Status:  new                                  
 Priority:  Normal              |   Milestone:                                       
Component:  ports               |     Version:  2.0.3                                
 Keywords:  leopard             |        Port:  opencv                               
--------------------------------+-------------------------------------------
Changes (by ryandesign@…):

 * cc: ebudda@…, dersh@…, o.schmalz@… (added)
  * keywords:  => leopard


Comment:

 The error in trog24's first and second logs is:

 {{{
 :info:build ld: duplicate symbol std::tr1::placeholders::(anonymous
 namespace)::_10 in CMakeFiles/opencv_ts.dir/src/ts.o and
 CMakeFiles/opencv_ts.dir/src/precomp.o
 :info:build collect2: ld returned 1 exit status
 :info:build make[2]: *** [lib/libopencv_ts.2.3.1.dylib] Error 1
 }}}

 This is the error this ticket will be about. Has duplicate #33098
 (o.schmalz's ticket). Both users are on Leopard.

 -----

 ebudda's log shows a different error:

 {{{
 :info:build ld: warning: ignoring file
 /Library/Frameworks//libpng.framework/libpng, missing required
 architecture x86_64 in file
 :info:build Undefined symbols for architecture x86_64:
 :info:build   "_png_create_write_struct", referenced from:
 }}}

 This is unrelated, and not a MacPorts problem; the problem is that
 /Library/Frameworks/libpng.framework exists; delete it, clean opencv, try
 again.

 -----

 dersh's log shows yet a third different error:

 {{{
 :info:build ld: warning: duplicate dylib /opt/local/lib/libz.dylib
 :info:build Undefined symbols:
 :info:build   "_png_set_gray_1_2_4_to_8", referenced from:
 :info:build       cv::PngDecoder::readData(cv::Mat&)     in grfmt_png.o
 :info:build ld: symbol(s) not found
 }}}

 This is unrelated. This [https://github.com/mxcl/homebrew/pull/6424
 Homebrew bug report] includes the suggestion that this could be due to the
 presence of /Library/Frameworks/Mono.framework; if you have this, or
 /Library/Frameworks/libpng.framework, delete them, clean opencv, and try
 again. If that doesn't work, file a new ticket, since the issue is
 unrelated to the issue this ticket was filed about.

-- 
Ticket URL: <https://trac.macports.org/ticket/32094#comment:7>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list