Mis-built Mac OS X 10.7 binaries

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
ewmailing
Posts: 4
Joined: 2012-02-19T15:36:06-07:00
Authentication code: 8675308

Mis-built Mac OS X 10.7 binaries

Post by ewmailing »

I tried downloading the binaries for ImageMagick for Lion. It looks like they are mis-built. The command line tools I tried (e.g. convert, montage) are linked to dylibs in /opt/local/lib which is not a standard Apple directory.

In addition, I think the version you linked to is different than the standard version. I think the OS is trying to fallback to /usr/lib, but the Apple version is lower than what you expect.

Sample Error:

dyld: Library not loaded: /opt/local/lib/libltdl.7.dylib
Referenced from: /Users/foo/Downloads/bin/montage
Reason: Incompatible library version: montage requires version 11.0.0 or later, but libltdl.7.dylib provides version 10.0.0
Trace/BPT trap: 5


Here is the output of otool -L convert which clearly shows the bad /opt/local/lib directory dependencies.

otool -L convert
convert:
/ImageMagick-6.7.5/lib/libMagickCore.5.dylib (compatibility version 6.0.0, current version 6.0.0)
/ImageMagick-6.7.5/lib/libMagickWand.5.dylib (compatibility version 6.0.0, current version 6.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)
/usr/X11/lib/libXext.6.dylib (compatibility version 11.0.0, current version 11.0.0)
/usr/X11/lib/libXt.6.dylib (compatibility version 7.0.0, current version 7.0.0)
/opt/local/lib/libbz2.1.0.dylib (compatibility version 1.0.0, current version 1.0.6)
/opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
/opt/local/lib/libltdl.7.dylib (compatibility version 11.0.0, current version 11.0.0)
/usr/X11/lib/libSM.6.dylib (compatibility version 7.0.0, current version 7.1.0)
/usr/X11/lib/libICE.6.dylib (compatibility version 10.0.0, current version 10.0.0)
/usr/X11/lib/libX11.6.dylib (compatibility version 10.0.0, current version 10.0.0)
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Mis-built Mac OS X 10.7 binaries

Post by fmw42 »

Did you install from MacPorts? It puts things in /opt/local/lib
ewmailing
Posts: 4
Joined: 2012-02-19T15:36:06-07:00
Authentication code: 8675308

Re: Mis-built Mac OS X 10.7 binaries

Post by ewmailing »

No, I downloaded the prebuilt binaries. I didn't install from Macports. I thought that was the point of downloading prebuilt binaries.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Mis-built Mac OS X 10.7 binaries

Post by fmw42 »

ewmailing wrote:No, I downloaded the prebuilt binaries. I didn't install from Macports. I thought that was the point of downloading prebuilt binaries.
Sorry for the misunderstanding. Just checking to be sure I did not misunderstand. I guess you will need to wait for a reply from the IM developers.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Mis-built Mac OS X 10.7 binaries

Post by magick »

We will release a new Mac OS X distribution within a day or two that includes libltdl or is built statically. Thanks,
ewmailing
Posts: 4
Joined: 2012-02-19T15:36:06-07:00
Authentication code: 8675308

Re: Mis-built Mac OS X 10.7 binaries

Post by ewmailing »

fmw42 wrote:
ewmailing wrote:No, I downloaded the prebuilt binaries. I didn't install from Macports. I thought that was the point of downloading prebuilt binaries.
Sorry for the misunderstanding. Just checking to be sure I did not misunderstand. I guess you will need to wait for a reply from the IM developers.
No problem. I just re-read my response. It looks a little snarky in hindsight. My apologies. It wasn't my intent.
ewmailing
Posts: 4
Joined: 2012-02-19T15:36:06-07:00
Authentication code: 8675308

Re: Mis-built Mac OS X 10.7 binaries

Post by ewmailing »

magick wrote:We will release a new Mac OS X distribution within a day or two that includes libltdl or is built statically. Thanks,
Thanks!
Post Reply