[MacPorts] #40993: ImageMagick stopped working in OS X 10.9 Mavericks

MacPorts noreply at macports.org
Tue Oct 29 10:37:39 PDT 2013


#40993: ImageMagick stopped working in OS X 10.9 Mavericks
--------------------------------+--------------------------
  Reporter:  Maurizio.Loreti@…  |      Owner:  ryandesign@…
      Type:  defect             |     Status:  closed
  Priority:  Normal             |  Milestone:
 Component:  ports              |    Version:  2.2.0
Resolution:  invalid            |   Keywords:  mavericks
      Port:  ImageMagick        |
--------------------------------+--------------------------

Comment (by Maurizio.Loreti@…):

 Replying to [comment:10 ryandesign@…]:
 > Yes. ImageMagick and most ports are built with the system default
 compiler, which is clang on recent versions of Xcode. This uses the system
 default C++ library, which on Mavericks is libc++. You cannot mix this
 with software compiled using libstdc++, which is what gcc48 uses. The
 solution is to use clang for your own code also, not gcc48. clang supports
 C++11 just fine.

 Please, clarify ''use clang for your own code also, not gcc48''.  This is
 what I get:
 {{{
 $ clang `Magick++-config --cppflags --cxxflags --ldflags --libs` -o
 minimal minimal.cxx
 Undefined symbols for architecture x86_64:
   "std::__1::locale::use_facet(std::__1::locale::id&) const", referenced
 from:
       std::__1::basic_ostream<char, std::__1::char_traits<char> >&
 std::__1::operator<<<std::__1::char_traits<char>
 >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char
 const*) in minimal-gZ3HhB.o
       std::__1::basic_ostream<char, std::__1::char_traits<char> >&
 std::__1::operator<<<std::__1::char_traits<char>
 >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char) in
 minimal-gZ3HhB.o
   "std::__1::ios_base::getloc() const", referenced from:
       std::__1::basic_ostream<char, std::__1::char_traits<char> >&
 std::__1::operator<<<std::__1::char_traits<char>
 >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char
 const*) in minimal-gZ3HhB.o
       std::__1::basic_ostream<char, std::__1::char_traits<char> >&
 std::__1::operator<<<std::__1::char_traits<char>
 >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char) in
 minimal-gZ3HhB.o
   "std::__1::basic_string<char, std::__1::char_traits<char>,
 std::__1::allocator<char> >::__init(char const*, unsigned long)",
 referenced from:
       _main in minimal-gZ3HhB.o
   "std::__1::basic_string<char, std::__1::char_traits<char>,
 std::__1::allocator<char> >::__init(unsigned long, char)", referenced
 from:
       std::__1::ostreambuf_iterator<char, std::__1::char_traits<char> >
 std::__1::__pad_and_output<char, std::__1::char_traits<char>
 >(std::__1::ostreambuf_iterator<char, std::__1::char_traits<char> >, char
 const*, char const*, char const*, std::__1::ios_base&, char) in minimal-
 gZ3HhB.o
   "std::__1::basic_string<char, std::__1::char_traits<char>,
 std::__1::allocator<char> >::~basic_string()", referenced from:
       _main in minimal-gZ3HhB.o
       std::__1::ostreambuf_iterator<char, std::__1::char_traits<char> >
 std::__1::__pad_and_output<char, std::__1::char_traits<char>
 >(std::__1::ostreambuf_iterator<char, std::__1::char_traits<char> >, char
 const*, char const*, char const*, std::__1::ios_base&, char) in minimal-
 gZ3HhB.o
   "std::__1::basic_ostream<char, std::__1::char_traits<char>
 >::sentry::sentry(std::__1::basic_ostream<char,
 std::__1::char_traits<char> >&)", referenced from:
       std::__1::basic_ostream<char, std::__1::char_traits<char> >&
 std::__1::operator<<<std::__1::char_traits<char>
 >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char
 const*) in minimal-gZ3HhB.o
       std::__1::basic_ostream<char, std::__1::char_traits<char> >&
 std::__1::operator<<<std::__1::char_traits<char>
 >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char) in
 minimal-gZ3HhB.o
   "std::__1::basic_ostream<char, std::__1::char_traits<char>
 >::sentry::~sentry()", referenced from:
       std::__1::basic_ostream<char, std::__1::char_traits<char> >&
 std::__1::operator<<<std::__1::char_traits<char>
 >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char
 const*) in minimal-gZ3HhB.o
       std::__1::basic_ostream<char, std::__1::char_traits<char> >&
 std::__1::operator<<<std::__1::char_traits<char>
 >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char) in
 minimal-gZ3HhB.o
   "std::__1::cerr", referenced from:
       _main in minimal-gZ3HhB.o
   "std::__1::ctype<char>::id", referenced from:
       std::__1::basic_ostream<char, std::__1::char_traits<char> >&
 std::__1::operator<<<std::__1::char_traits<char>
 >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char
 const*) in minimal-gZ3HhB.o
       std::__1::basic_ostream<char, std::__1::char_traits<char> >&
 std::__1::operator<<<std::__1::char_traits<char>
 >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char) in
 minimal-gZ3HhB.o
   "std::__1::locale::~locale()", referenced from:
       std::__1::basic_ostream<char, std::__1::char_traits<char> >&
 std::__1::operator<<<std::__1::char_traits<char>
 >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char
 const*) in minimal-gZ3HhB.o
       std::__1::basic_ostream<char, std::__1::char_traits<char> >&
 std::__1::operator<<<std::__1::char_traits<char>
 >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char) in
 minimal-gZ3HhB.o
   "std::__1::ios_base::__set_badbit_and_consider_rethrow()", referenced
 from:
       std::__1::basic_ostream<char, std::__1::char_traits<char> >&
 std::__1::operator<<<std::__1::char_traits<char>
 >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char
 const*) in minimal-gZ3HhB.o
       std::__1::basic_ostream<char, std::__1::char_traits<char> >&
 std::__1::operator<<<std::__1::char_traits<char>
 >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char) in
 minimal-gZ3HhB.o
   "std::__1::ios_base::clear(unsigned int)", referenced from:
       std::__1::basic_ostream<char, std::__1::char_traits<char> >&
 std::__1::operator<<<std::__1::char_traits<char>
 >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char
 const*) in minimal-gZ3HhB.o
       std::__1::basic_ostream<char, std::__1::char_traits<char> >&
 std::__1::operator<<<std::__1::char_traits<char>
 >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char) in
 minimal-gZ3HhB.o
   "std::terminate()", referenced from:
       ___clang_call_terminate in minimal-gZ3HhB.o
   "___cxa_begin_catch", referenced from:
       _main in minimal-gZ3HhB.o
       ___clang_call_terminate in minimal-gZ3HhB.o
       std::__1::basic_ostream<char, std::__1::char_traits<char> >&
 std::__1::operator<<<std::__1::char_traits<char>
 >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char
 const*) in minimal-gZ3HhB.o
       std::__1::basic_ostream<char, std::__1::char_traits<char> >&
 std::__1::operator<<<std::__1::char_traits<char>
 >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char) in
 minimal-gZ3HhB.o
   "___cxa_end_catch", referenced from:
       _main in minimal-gZ3HhB.o
       std::__1::basic_ostream<char, std::__1::char_traits<char> >&
 std::__1::operator<<<std::__1::char_traits<char>
 >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char
 const*) in minimal-gZ3HhB.o
       std::__1::basic_ostream<char, std::__1::char_traits<char> >&
 std::__1::operator<<<std::__1::char_traits<char>
 >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char) in
 minimal-gZ3HhB.o
   "___gxx_personality_v0", referenced from:
       _main in minimal-gZ3HhB.o
       std::__1::basic_ostream<char, std::__1::char_traits<char> >&
 std::__1::operator<<<std::__1::char_traits<char>
 >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char
 const*) in minimal-gZ3HhB.o
       std::__1::basic_ostream<char, std::__1::char_traits<char> >&
 std::__1::operator<<<std::__1::char_traits<char>
 >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char) in
 minimal-gZ3HhB.o
       std::__1::ostreambuf_iterator<char, std::__1::char_traits<char> >
 std::__1::__pad_and_output<char, std::__1::char_traits<char>
 >(std::__1::ostreambuf_iterator<char, std::__1::char_traits<char> >, char
 const*, char const*, char const*, std::__1::ios_base&, char) in minimal-
 gZ3HhB.o
       Dwarf Exception Unwind Info (__eh_frame) in minimal-gZ3HhB.o
 ld: symbol(s) not found for architecture x86_64
 clang: error: linker command failed with exit code 1 (use -v to see
 invocation)
 }}}

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


More information about the macports-tickets mailing list