[MacPorts] #41588: Boost.Regex with GCC broken on Mavericks?

MacPorts noreply at macports.org
Mon Dec 2 02:20:30 PST 2013


#41588: Boost.Regex with GCC broken on Mavericks?
------------------------------+--------------------------------
  Reporter:  akim.demaille@…  |      Owner:  macports-tickets@…
      Type:  defect           |     Status:  closed
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.2.1
Resolution:  invalid          |   Keywords:  mavericks
      Port:  boost            |
------------------------------+--------------------------------

Comment (by akim.demaille@…):

 Well, this is really a pity.  I wonder how the GNU/Linux distros handle
 this issue when they deploy Boost.

 Is the following issue related to the current discussion?  That's weird,
 since this machine is a Mountain Lion, so it is my understanding that it
 should work properly with GCC, and less easily with Clang:

 {{{
 $ cat /tmp/foo.cc
 #include <boost/filesystem.hpp>
 #include <string>

 int main()
 {
   boost::filesystem::path directory("abc");
   return directory.is_absolute();
 }
 $ g++-mp-4.9 -Wall foo.cc -lboost_filesystem-mt -lboost_system-mt
 -L/opt/local/lib -I/opt/local/include
 $ ./a.out
 a.out(16530) malloc: *** error for object 0x109283570: pointer being freed
 was not allocated
 *** set a breakpoint in malloc_error_break to debug
 zsh: abort      ./a.out
 $ clang++-mp-3.4 -Wall foo.cc -lboost_filesystem-mt -lboost_system-mt
 -L/opt/local/lib -I/opt/local/include
 $ ./a.out
 $ otool -L /opt/local/lib/libboost_system-mt.dylib
 /opt/local/lib/libboost_system-mt.dylib:
         /opt/local/lib/libboost_system-mt.dylib (compatibility version
 0.0.0, current version 0.0.0)
         /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current
 version 56.0.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 169.3.0)
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/41588#comment:8>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list