[MacPorts] #40231: mkvtoolnix: fix build with clang

MacPorts noreply at macports.org
Sat Aug 24 16:06:21 PDT 2013


#40231: mkvtoolnix: fix build with clang
---------------------------+--------------------------------
  Reporter:  ryandesign@…  |      Owner:  macports-tickets@…
      Type:  enhancement   |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.2.0
Resolution:                |   Keywords:
      Port:  mkvtoolnix    |
---------------------------+--------------------------------

Comment (by ecronin@…):

 Replying to [comment:8 jeremyhu@…]:
 > Replying to [comment:5 ryandesign@…]:
 > > See my patch. I tested all clangs I could and listed in
 compiler.blacklist those that don't pass the configure script check. The
 remaining ones, including the very latest pre-release of clang 3.4, fail
 to build the port, as I described at the top of this ticket.
 >
 > Yes, that is the build failure that prompted my comment in the Port.
 I'm not really a C++ language guru, so I'm not sure how to fix that bug.
 >
 > > I did not test the libcxx port. It does not appear to be particularly
 recent.
 >
 > That just provides the runtime for Snow Leopard.  I don't plan on
 changing it (except maybe to bump the compiler used to 3.3 (so as to not
 force multiple clang installs)

 I thought that some of the final missing C++11 features with clang/libc++
 were in parts of the standard that involved the stdlib, but that doesn't
 appear to be the case... From what I can tell, the version of libc++ that
 shipped with 10.7 claims to fully implement the new standard (there aren't
 any version numbers or changelogs for it though, so it's hard to be
 certain.  The svn you pull today definitely claims full support, but it's
 not clear what Lion came with.  The internal version number in !__config
 is the same for both, so I'm taking that to mean nothing major like adding
 c++11 required features has changed).

 Replying to [comment:5 ryandesign@…]:
 > See my patch. I tested all clangs I could and listed in
 compiler.blacklist those that don't pass the configure script check. The
 remaining ones, including the very latest pre-release of clang 3.4, fail
 to build the port, as I described at the top of this ticket.

 The error in the ticket description can be avoided by just commenting out
 that chunk of code (it's in the built-in livecheck/selfupdate that we
 probably don't want enabled in a port to begin with), I didn't feel like
 trying to debug the error.  There is another syntax later on that is
 easier to fix.  But then it blows up at link time with missing boost
 symbols.  I'm guessing this is because boost wasn't built using libc++
 and/or c++11.  I'm rebuilding a modified boost now to see if that gets
 mkvtoolnix to complete.  I'll upload my modified patches and the results
 when they get done.

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


More information about the macports-tickets mailing list