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

MacPorts noreply at macports.org
Sun Oct 27 09:41:48 PDT 2013


#40993: ImageMagick stopped working in OS X 10.9 Mavericks
----------------------------------------+--------------------------------
 Reporter:  Maurizio.Loreti@…           |      Owner:  macports-tickets@…
     Type:  defect                      |     Status:  new
 Priority:  Normal                      |  Milestone:
Component:  ports                       |    Version:  2.2.0
 Keywords:  Mavericks ImageMagick link  |       Port:
----------------------------------------+--------------------------------
 This same bug has been reported in the ImageMagick forum.

 Hello - Yesterday I switched to OS X 10.9; following the 'migration'
 instructions, I have deinstalled and reinstalled MacPorts; and then
 installed IM. The version is:

 {{{
 ImageMagick @6.8.7-3_0+x11 (active) platform='darwin 13' archs='x86_64'
 }}}

 Since then, any program using the Magick++ library stopped working; I have
 tracked down all to a minimal example, i.e.:

 {{{
 MLO at bigmac 16 $ cat minimal.cxx
 #include <iostream>
 #include <Magick++.h>

 using namespace std;
 using namespace Magick;

 int main() {
   try {
     Image newImage("logo.jpg");
     newImage.zoom("50x");
     newImage.write("newlogo.jpg");
   } catch (Error &e) {
     cerr << e.what() << '\n';
   } catch (...) {
     cerr << "Unknown exception catched\n";
   }
 }
 MLO at bigmac 17 $ g++ `Magick++-config --cppflags --cxxflags --ldflags
 --libs` -o minimal minimal.cxx
 Undefined symbols for architecture x86_64:
   "Magick::Image::write(std::basic_string<char, std::char_traits<char>,
 std::allocator<char> > const&)", referenced from:
       _main in ccMyhbLg.o
   "Magick::Image::Image(std::basic_string<char, std::char_traits<char>,
 std::allocator<char> > const&)", referenced from:
       _main in ccMyhbLg.o
 ld: symbol(s) not found for architecture x86_64
 collect2: error: ld returned 1 exit status
 }}}

 The output of the 'config' command is:

 {{{
 MLO at bigmac 18 $ Magick++-config --cppflags --cxxflags --ldflags --libs
 -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16
 -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16
 -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16
 -I/opt/local/include/ImageMagick-6
 -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16
 -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16
 -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16
 -I/opt/local/include/ImageMagick-6
 -L/opt/local/lib -lMagick++-6.Q16 -lMagickWand-6.Q16 -lMagickCore-6.Q16
 -L/opt/local/lib -lMagick++-6.Q16 -lMagickWand-6.Q16 -lMagickCore-6.Q16
 }}}

 I don't understand what's happening; it seems that there is a wrong
 content in the libraries, and that the linker barfs on that.  If that is
 relevant, my compiler is:

 {{{
 MLO at bigmac 30 $ g++ --version
 g++ (MacPorts gcc48 4.8.1_3) 4.8.1
 }}}

 Please, does somebody has an idea of what to do?

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


More information about the macports-tickets mailing list