[MacPorts] #55149: mediainfo @0.7.99 fails to build on SnowLeopard, Mac OS X 10.6.8, because of "Undefined symbols for architecture x86_64"
MacPorts
noreply at macports.org
Sun Oct 22 23:50:06 UTC 2017
#55149: mediainfo @0.7.99 fails to build on SnowLeopard, Mac OS X 10.6.8, because
of "Undefined symbols for architecture x86_64"
------------------------+-------------------------
Reporter: ballapete | Owner:
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.4.2
Resolution: | Keywords: snowleopard
Port: mediainfo |
------------------------+-------------------------
Comment (by kencu):
Yet another build that does not specify the `-stdlib=libc++` on the build
line, so your system adds the wrong one by default. It's probably the
cause of this error.
builds fine for me, with my slightly modified clang-3.9:
{{{
$ port -v installed mediainfo
The following ports are currently installed:
mediainfo @0.7.98_0 (active) platform='darwin 10' archs='x86_64'
date='2017-10-22T16:43:30-0700'
}}}
Try this fix:
{{{
configure.cxxflags-append -stdlib=libc++
configure.ldflags-append -stdlib=libc++
}}}
If that doesn't fix it, you could try the fix I used in `botan`:
{{{
# add the selected -stdlib to clang builds
# see https://trac.macports.org/ticket/53123
if {[string match *clang* ${configure.cxx}]} {
configure.cxx ${configure.cxx} -stdlib=${configure.cxx_stdlib}
}
}}}
If you get tired of doing this, the slightly modified clang-3.9 I use is
available here
<https://github.com/kencu/SnowLeopardPorts/tree/master/lang/llvm-3.9> and
the working part is this tiny patch, that makes clang-3.9 deliver
`-stdlib=libc++` if there is none specified on the build line, instead of
`-stdlib=libstdc++` as it is doing for you now.
--
Ticket URL: <https://trac.macports.org/ticket/55149#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list