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
Class Changed From-To: maintainer-update->change-request Fix category (submitter is not maintainer) (via the GNATS Auto Assign Tool)
Responsible Changed From-To: freebsd-ports-bugs->gahr Over to maintainer (via the GNATS Auto Assign Tool)
State Changed From-To: open->closed Committed, with minor changes. Thanks!
gahr 2008-12-03 16:29:38 UTC FreeBSD ports repository Modified files: graphics/freeimage Makefile Added files: graphics/freeimage/files patch-Source-LibOpenJPEG_opj_malloc.h Log: - Remove dependency on memalign PR: 129388 Submitted by: Jacob Atzen <jatzen@gmail.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) _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"