#13018 closed defect (fixed)
BUG: freeimage 3.9.2-20070101 fails to build on Mac OS X 10.5 Leopard
Reported by: | johan@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.5.0 |
Keywords: | Cc: | johan@…, ryand-ruby@…, brianjlandau@…, ryandesign (Ryan Carsten Schmidt) | |
Port: |
Description
output:
---> Building freeimage with target all Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_freeimage/work/FreeImage" && make all " returned error 2 Command output: Source/FreeImage/BitmapAccess.cpp:813: error: expected `;' before 'TAGMAP' Source/FreeImage/BitmapAccess.cpp:821: error: 'strcmp' was not declared in this scope Source/FreeImage/BitmapAccess.cpp:825: error: 'FreeImage_GetTagCount' was not declared in this scope Source/FreeImage/BitmapAccess.cpp:825: error: 'WORD' was not declared in this scope Source/FreeImage/BitmapAccess.cpp:825: error: 'FreeImage_TagDataWidth' cannot be used as a function Source/FreeImage/BitmapAccess.cpp:825: error: 'FreeImage_GetTagLength' was not declared in this scope Source/FreeImage/BitmapAccess.cpp:839: error: 'WORD' was not declared in this scope Source/FreeImage/BitmapAccess.cpp:858: error: 'TAGMAP' is not a class or namespace Source/FreeImage/BitmapAccess.cpp:858: error: 'iterator' was not declared in this scope Source/FreeImage/BitmapAccess.cpp:858: error: expected `;' before 'i' Source/FreeImage/BitmapAccess.cpp:859: error: 'i' was not declared in this scope Source/FreeImage/BitmapAccess.cpp:869: error: 'TAGMAP' is not a class or namespace Source/FreeImage/BitmapAccess.cpp:869: error: 'iterator' was not declared in this scope Source/FreeImage/BitmapAccess.cpp:869: error: expected `;' before 'i' Source/FreeImage/BitmapAccess.cpp:869: error: 'i' was not declared in this scope Source/FreeImage/BitmapAccess.cpp:874: error: type '<type error>' argument given to 'delete', expected pointer Source/FreeImage/BitmapAccess.cpp: In function 'BOOL FreeImage_GetMetadata(FREE_IMAGE_MDMODEL, FIBITMAP*, const char*, FITAG**)': Source/FreeImage/BitmapAccess.cpp:887: error: 'TAGMAP' was not declared in this scope Source/FreeImage/BitmapAccess.cpp:887: error: 'tagmap' was not declared in this scope Source/FreeImage/BitmapAccess.cpp:891: error: 'METADATAMAP' was not declared in this scope Source/FreeImage/BitmapAccess.cpp:891: error: 'metadata' was not declared in this scope Source/FreeImage/BitmapAccess.cpp:891: error: 'struct FREEIMAGEHEADER' has no member named 'metadata' Source/FreeImage/BitmapAccess.cpp: In function 'unsigned int FreeImage_GetMetadataCount(FREE_IMAGE_MDMODEL, FIBITMAP*)': Source/FreeImage/BitmapAccess.cpp:912: error: 'TAGMAP' was not declared in this scope Source/FreeImage/BitmapAccess.cpp:912: error: 'tagmap' was not declared in this scope Source/FreeImage/BitmapAccess.cpp:915: error: 'METADATAMAP' was not declared in this scope Source/FreeImage/BitmapAccess.cpp:915: error: 'metadata' was not declared in this scope Source/FreeImage/BitmapAccess.cpp:915: error: 'struct FREEIMAGEHEADER' has no member named 'metadata' make[1]: *** [Source/FreeImage/BitmapAccess.o-ppc] Error 1 make: *** [all] Error 2 Error: Status 1 encountered during processing.
Attachments (4)
Change History (14)
comment:1 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | johan@… added |
---|---|
Milestone: | → Port Bugs |
Summary: | BUG: freeimage 3.9.2-20070101 fails to build on leopard → BUG: freeimage 3.9.2-20070101 fails to build on Mac OS X 10.5 Leopard |
comment:2 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | brianjlandau@… ryandesign@… added |
---|
comment:3 Changed 17 years ago by brianjlandau@…
Changed 17 years ago by brianjlandau@…
Attachment: | errorlog.txt added |
---|
error printed to stderr by port command
comment:4 Changed 17 years ago by brianjlandau@…
It seems that FreeImage wants/needs the 10.3.9 SDK, this is not installed by default with Xcode 3.0
I installed this, and used the patch in ticket #13203 and this fixed my problem in ticket #13121 but I got a different error much further in the build.
See attachment:"errorlog.txt"
comment:5 Changed 17 years ago by brianjlandau@…
maybe we can use the patch in ticket #13203 plus add this patch to the Makefile.osx http://sourceforge.net/forum/message.php?msg_id=4621106
If someone will just commit both of those chages I think we'll be all set, it just worked for me when I did it by hand.
comment:6 Changed 17 years ago by brianjlandau@…
This link can also be helpful: http://www.ruby-forum.com/topic/129554
comment:7 Changed 17 years ago by will.bryant@…
I've created a simple patch that I believe resolves this issue. Setting syslibpath is no longer necessary, so we can just remove that part of the makefile and sidestep the whole issue of it being different on Leopard vs. Tiger.
The updated Portfile (which is mostly just changing from CVS to downloaded archive, now that ryand's patches from earlier in the year have been merged upstream and included in package releases) and reduced patch works on both Leopard and Tiger, with no changes required.
I can't find anyone on anything older than Tiger to determine if the GCC 4 change that obviates syslibpath is included on those older versions; if those versions are still supported, is there anyone who can try out the new portfile/patch?
Changed 17 years ago by will.bryant@…
Attachment: | Portfile.diff added |
---|
Diff of new portfile against that currently in repository
Changed 17 years ago by will.bryant@…
Attachment: | patch-Makefile.osx.diff added |
---|
Updated patch removing the troublesome syslibpath
comment:9 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | new → closed |
I don't know why FreeImage fails on Leopard. But please try the update to FreeImage 3.9.3 in ticket #13203 and see if that helps.