Opened 12 years ago

Closed 7 years ago

Last modified 6 years ago

#34592 closed defect (wontfix)

ImageMagick: do not link with linkclparser.dylib on Snow Leopard

Reported by: devernay (Frédéric Devernay) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.1.1
Keywords: haspatch Cc:
Port: ImageMagick

Description

Hi, the standard distribution of ImageMagick tries different libraries for OpenCL support, uncluding -lOpenCL, -lCL and -lclparser Unfortunately, libclparser.dylib only exists - as part of the OpenCL framework - on Snow Leopard, and this results in binaries which cannot run on Lion or later MacOSX versions. Google for "libclparse.dylib lion" to see that only ImageMagick binaries are affected by this, so this is clearly IM's fault. Maybe libclparser is a legitimate OpenCL library on other platforms, but on the Mac it's not used at all. The attached patch just removes the reference to libclparser from the configure script (it could also be removed from m4/ax_opencl.m4) When compiling with this patch, the IM binaries and libraries can be run on Lion (and possibly Mountain Lion)

Attachments (1)

noclparser.patch (417 bytes) - added by devernay (Frédéric Devernay) 12 years ago.
patch for IM sources (to be added to the Portfile)

Download all attachments as: .zip

Change History (5)

Changed 12 years ago by devernay (Frédéric Devernay)

Attachment: noclparser.patch added

patch for IM sources (to be added to the Portfile)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: haspatch added
Owner: changed from macports-tickets@… to ryandesign@…

Have you already reported this problem to the developers of ImageMagick so that they can fix it?

comment:2 in reply to:  1 Changed 12 years ago by devernay (Frédéric Devernay)

Replying to ryandesign@…:

Have you already reported this problem to the developers of ImageMagick so that they can fix it?

It's already been reported months ago: http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=19037 and it probably won't be fixed (there aren't that many people who compile on 10.6 and run on 10.7). They now only provide a 10.7 binary distribution anyway http://www.imagemagick.org/script/binary-releases.php#macosx . This is a shame, because there are still lots of people running 10.6 (32-bits CPUs, or people who need Rosetta, essentially).

That check for libclparser is probably here for some other platform which requires it, though I couldn't find which, so removing it may break the build on that other platform. Fixing it in MacPorts seemed the best way to go.

comment:3 Changed 7 years ago by kencu (Ken)

Resolution: wontfix
Status: newclosed

I believe it would be fair to say, 5 years on, that this ticket can be considered no longer active and can be closed as wontfix. If someone is looking to solve this particular issue, Fred's patch is still here for Google to find it.

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

This should be resolved, by disabling OpenCL support on 10.6 and earlier.

Note: See TracTickets for help on using tickets.