Problem Compiling on Mac OS X

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
pr1001

Problem Compiling on Mac OS X

Post by pr1001 »

I am having a problem running make install on my machine (Mac OS X 10.4.11) and am not sure what's wrong. Any advice is appreciated. I am running all commands as root:

Code: Select all

sudo -s
Because I have installed libjpeg and libpng using Fink, I ran configure like so:

Code: Select all

CPPFLAGS="-I/sw/include" LDFLAGS="-L/sw/lib" ./configure --enable-hdri=yes
All the appropriate libaries were detected, so I then ran make. Running it gave me:

Code: Select all

make  install-am
/bin/sh ./libtool --silent --tag=CC   --mode=link gcc  -g -O2 -Wall -W -D_THREAD_SAFE -no-undefined -export-symbols-regex ".*" -module -avoid-version -L/sw/lib -L/usr/X11R6/lib -L/usr/X11R6/lib -lfreetype -L/sw/lib -o coders/exr.la -rpath /usr/local/lib/ImageMagick-6.4.0/modules-Q16/coders coders/coders_exr_la-exr.lo magick/libMagickCore.la -lm -L/sw/lib -lIlmImf -lImath -lHalf -lIex -lIlmThread -lz   
/usr/bin/ld: Undefined symbols:
__Unwind_Resume
__gnu_cxx::__exchange_and_add(int volatile*, int)
std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_M_destroy(std::allocator<char> const&)
std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage
std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(char const*, unsigned long)
std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)
std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
std::ios_base::Init::Init()
std::ios_base::Init::~Init()
typeinfo for std::exception
vtable for __cxxabiv1::__si_class_type_info
operator delete(void*)
operator new(unsigned long)
___cxa_allocate_exception
___cxa_begin_catch
___cxa_end_catch
___cxa_throw
___dynamic_cast
___gxx_personality_v0
std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&)
std::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)
std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()
std::exception::~exception()
std::__throw_logic_error(char const*)
vtable for __cxxabiv1::__class_type_info
vtable for __cxxabiv1::__vmi_class_type_info
___cxa_call_unexpected
std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::basic_stringstream(std::_Ios_Openmode)
std::locale::~locale()
std::ios_base::~ios_base()
std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
VTT for std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >
vtable for std::basic_streambuf<char, std::char_traits<char> >
vtable for std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >
vtable for std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >
vtable for std::basic_ios<char, std::char_traits<char> >
operator delete[](void*)
operator new[](unsigned long)
___cxa_rethrow
std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_leak_hard()
std::basic_string<char, std::char_traits<char>, std::allocator<char> >::resize(unsigned long, char)
std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_stringstream()
std::basic_ostream<char, std::char_traits<char> >::operator<<(long)
std::basic_ostream<char, std::char_traits<char> >::operator<<(unsigned long)
std::_Rb_tree_decrement(std::_Rb_tree_node_base*)
std::_Rb_tree_increment(std::_Rb_tree_node_base const*)
std::_Rb_tree_increment(std::_Rb_tree_node_base*)
std::_Rb_tree_rebalance_for_erase(std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)
std::_Rb_tree_insert_and_rebalance(bool, std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)
VTT for std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >
vtable for std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >
___cxa_guard_abort
___cxa_guard_acquire
___cxa_guard_release
___cxa_pure_virtual
std::basic_istream<char, std::char_traits<char> >::operator>>(float&)
std::basic_ostream<char, std::char_traits<char> >::operator<<(double)
std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char)
std::__throw_bad_alloc()
std::__throw_length_error(char const*)
std::basic_ostream<char, std::char_traits<char> >& std::operator<< <char, std::char_traits<char>, std::allocator<char> >(std::basic_ostream<char, std::char_traits<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
std::basic_string<char, std::char_traits<char>, std::allocator<char> >::rfind(char, unsigned long) const
std::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(unsigned long, char)
std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_mutate(unsigned long, unsigned long, unsigned long)
std::__throw_out_of_range(char const*)
std::_List_node_base::hook(std::_List_node_base*)
std::_List_node_base::unhook()
std::basic_istream<char, std::char_traits<char> >::read(char*, int)
std::basic_istream<char, std::char_traits<char> >::seekg(std::fpos<__mbstate_t>)
std::basic_istream<char, std::char_traits<char> >::tellg()
std::basic_ostream<char, std::char_traits<char> >::seekp(std::fpos<__mbstate_t>)
std::basic_ostream<char, std::char_traits<char> >::tellp()
std::basic_ostream<char, std::char_traits<char> >::write(char const*, int)
std::basic_ifstream<char, std::char_traits<char> >::basic_ifstream(char const*, std::_Ios_Openmode)
std::basic_ofstream<char, std::char_traits<char> >::basic_ofstream(char const*, std::_Ios_Openmode)
std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::basic_ostringstream(std::_Ios_Openmode)
std::basic_ios<char, std::char_traits<char> >::clear(std::_Ios_Iostate)
std::basic_iostream<char, std::char_traits<char> >::~basic_iostream()
std::basic_string<char, std::char_traits<char>, std::allocator<char> >::find(char const*, unsigned long, unsigned long) const
std::basic_string<char, std::char_traits<char>, std::allocator<char> >::replace(unsigned long, unsigned long, char const*, unsigned long)
collect2: ld returned 1 exit status
make[1]: *** [coders/exr.la] Error 1
make: *** [install] Error 2
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Problem Compiling on Mac OS X

Post by fmw42 »

I don't know if this will help as I have never used Fink or MacPorts, but you may want to look this over. It is a post I made some time ago from my experiences installing IM.

viewtopic.php?f=1&t=10442&hilit=Mac+OS
pr1001

Re: Problem Compiling on Mac OS X

Post by pr1001 »

Thanks fmw42, but I'm afraid it doesn't really help. Does anyone else have any ideas?
fmw42 wrote:I don't know if this will help as I have never used Fink or MacPorts, but you may want to look this over. It is a post I made some time ago from my experiences installing IM.

viewtopic.php?f=1&t=10442&hilit=Mac+OS
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Problem Compiling on Mac OS X

Post by fmw42 »

You may be able to find some clues by looking at the config.log file. Also see if the following gives you any more information as it mentions installing using FINK:

http://www.imagemagick.org/script/advan ... lation.php
pr1001

Re: Problem Compiling on Mac OS X

Post by pr1001 »

Oh man, I can't believe I didn't read farther down that page – I totally missed the Fink section! Unfortunately, their configure instructions seem to introduce more problems for me than they fix: all of a sudden I get 'present but cannot be compiled' errors for several things, including libpng. I had been trying with 6.4.0 and downloaded 6.4.1, as apparently among other changes it uses a new version of autoconf. Unfortunately, I still get these errors. Here are my log files:
Post Reply