FreeImage builds with a dependency on memalign which is not present on FreeBSD. This leads to problems with other programs linking to FreeImage. In this case it is the image_science rubygem that fails to work with the following message:
/usr/local/lib/libfreeimage.so.3: Undefined symbol "memalign" - /home/cruise/.ruby_inline/Inline_ImageScience_aa58.so
Fix: The problem lies in the LibOpenJPEG/opj_malloc.h file where HAVE_MEMALIGN is defined except for OS X and linux_x64. Removing the #define HAVE_MEMALIGN from that file cures the problem. A patch is supplied.
Patch attached with submission follows:
How-To-Repeat: Build FreeImage, try to use it from Ruby with image_science
Fix category (submitter is not maintainer) (via the GNATS Auto Assign
Over to maintainer (via the GNATS Auto Assign Tool)
Committed, with minor changes. Thanks!
gahr 2008-12-03 16:29:38 UTC
FreeBSD ports repository
- Remove dependency on memalign
Submitted by: Jacob Atzen <email@example.com>
Revision Changes Path
1.10 +1 -0 ports/graphics/freeimage/Makefile
1.1 +12 -0 ports/graphics/freeimage/files/patch-Source-LibOpenJPEG_opj_malloc.h (new)
firstname.lastname@example.org mailing list
To unsubscribe, send any mail to "email@example.com"