[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
Fri Nov 3 01:33: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:  ctreleaven
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.4.2
Resolution:             |   Keywords:  snowleopard
      Port:  mediainfo  |
------------------------+-------------------------

Comment (by ctreleaven):

 Replying to [comment:6 kencu]:
 > Replying to [comment:5 ballapete]:
 > > Yes, the mediainfo binary works very well from the command line.
 >
 > OK. I'll check whether this block works on one of my systems.
 > {{{
 > # add the selected -stdlib to clang builds
 >
 > if {[string match *clang* ${configure.cxx}]} {
 >     configure.cxx ${configure.cxx} -stdlib=${configure.cxx_stdlib}
 > }
 > }}}

 Hmm, build immediately fails for me on Yosemite with the following:

 {{{
 libtool: compile:  /usr/bin/clang++ -stdlib=libc++ -arch x86_64
 -DPACKAGE_NAME=\"libzen\" -DPACKAGE_TARNAME=\"libzen\"
 -DPACKAGE_VERSION=\"0.4.37\" "-DPACKAGE_STRING=\"libzen 0.4.37\""
 -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libzen\"
 -DVERSION=\"0.4.37\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -I../../../Source -mmacosx-
 version-min=10.5 -g -O2 -DUNICODE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64
 -DSIZE_T_IS_LONG -DSTREAM_MISSING -fPIC -O2 -MT
 ../../../Source/ZenLib/Dir.lo -MD -MP -MF
 ../../../Source/ZenLib/.deps/Dir.Tpo -c ../../../Source/ZenLib/Dir.cpp -o
 ../../../Source/ZenLib/Dir.o
 [...]
 clang: error: invalid deployment target for -stdlib=libc++ (requires OS X
 10.7 or later)
 }}}

 This is building with the newly-released version 17.10.

--
Ticket URL: <https://trac.macports.org/ticket/55149#comment:9>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list