Opened 14 years ago

Closed 11 years ago

Last modified 11 years ago

#23354 closed defect (fixed)

ImageMagick build fails on Snow Leopard when cryptlib is active

Reported by: jwhowse4 Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc: cooljeanius (Eric Gallager)
Port: ImageMagick

Description

On an Intel Mac running Snow Leopard 10.6.2, an upgrade from ImageMagick 6.5.8 to 6.5.9 fails with the following error message. Attached is a more detailed output collected using the debug flag. Any ideas what is going wrong?

checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for working volatile... yes
checking for preprocessor stringizing operator... yes
checking whether stat file-mode macros are broken... no
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking whether #! works in shell scripts... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for C/C++ restrict keyword... __restrict
checking whether byte ordering is bigendian... no
checking for mode_t... yes
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking for long double with more range or precision than double... yes
checking whether char is unsigned... no
checking size of signed short... 0
checking size of unsigned short... 0
checking size of signed int... 0
checking size of unsigned int... 0
checking size of signed long... 0
checking size of unsigned long... 0
checking size of signed long long... 0
checking size of unsigned long long... 0
checking size of off_t... configure: error: in `/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_graphics_ImageMagick/work/ImageMagick-6.5.9-0':
configure: error: cannot compute sizeof (off_t)
See `config.log' for more details.
Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_graphics_ImageMagick/work/ImageMagick-6.5.9-0" && ./configure --prefix=/opt/macports --enable-shared --enable-static --disable-ltdl-install --with-frozenpaths --without-openexr --disable-hdri --with-dps --with-bzlib --with-fontconfig --with-jpeg --with-png --with-tiff --with-zlib --with-modules --with-xml --with-x --without-fpx --without-lqr --with-rsvg --with-perl=/opt/macports/bin/perl --with-gslib --with-lcms --with-wmf --with-jbig --with-jp2 --with-gvc --with-quantum-depth=32 " returned error 77
Warning: the following items did not execute (for ImageMagick): org.macports.destroot org.macports.configure org.macports.build

Attachments (2)

debug.txt (371.4 KB) - added by jwhowse4 14 years ago.
Debug Output
config.log (214.7 KB) - added by jwhowse4 14 years ago.
Configure Log

Download all attachments as: .zip

Change History (9)

Changed 14 years ago by jwhowse4

Attachment: debug.txt added

Debug Output

comment:1 Changed 14 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to ryandesign@…
Port: ImageMagick added

Please remember to fill in the Port field and cc the maintainer.

Something is seriously wrong with your system; attach the config.log.

Changed 14 years ago by jwhowse4

Attachment: config.log added

Configure Log

comment:2 in reply to:  1 Changed 14 years ago by jwhowse4

Replying to jmr@…:

Please remember to fill in the Port field and cc the maintainer.

Something is seriously wrong with your system; attach the config.log.

Strange that I have not noticed anything previously. The config.log is attached. Thanks for your help.

comment:3 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Status: newassigned

ImageMagick seems to (now) have a conflict with cryptlib. It's using the flag "-lCL" presumably to link with Apple's OpenCL, but on case-insensitive systems like Mac OS X, cryptlib's "libcl.dylib" matches this, and since that's not the library it was looking for, it mucks things up.

You can work around this by deactivating cryptlib, cleaning ImageMagick, upgrading ImageMagick, and then, if desired, reactivating cryptlib.

sudo port deactivate cryptlib
sudo port clean ImageMagick
sudo port upgrade ImageMagick
sudo port activate cryptlib

I added a check for this to ImageMagick in r62884. I should also see if this has already been reported to the developers.

comment:4 in reply to:  3 Changed 14 years ago by jwhowse4

Replying to ryandesign@…:

ImageMagick seems to (now) have a conflict with cryptlib. It's using the flag "-lCL" presumably to link with Apple's OpenCL, but on case-insensitive systems like Mac OS X, cryptlib's "libcl.dylib" matches this, and since that's not the library it was looking for, it mucks things up.

You can work around this by deactivating cryptlib, cleaning ImageMagick, upgrading ImageMagick, and then, if desired, reactivating cryptlib.

sudo port deactivate cryptlib
sudo port clean ImageMagick
sudo port upgrade ImageMagick
sudo port activate cryptlib

I added a check for this to ImageMagick in r62884. I should also see if this has already been reported to the developers.

This solution worked for me. Thanks for tracking this down.

Last edited 11 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:5 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: ImageMagick upgrade fails to build under Snow LeopardImageMagick build fails on Snow Leopard when cryptlib is active

comment:6 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

comment:7 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

Note: See TracTickets for help on using tickets.