Bug 129388

Summary: graphics/FreeImage builds with memalign
Product: Ports & Packages Reporter: Jacob Atzen <jatzen>
Component: Individual Port(s)Assignee: Pietro Cerutti <gahr>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Jacob Atzen 2008-12-03 10:20:03 UTC
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
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2008-12-03 11:36:58 UTC
Class Changed
From-To: maintainer-update->change-request

Fix category (submitter is not maintainer) (via the GNATS Auto Assign 
Tool)
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2008-12-03 11:37:01 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gahr

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 3 Pietro Cerutti freebsd_committer freebsd_triage 2008-12-03 16:29:50 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!
Comment 4 dfilter service freebsd_committer freebsd_triage 2008-12-03 16:29:50 UTC
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"