Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #13018 (closed defect: fixed)

Opened 13 months ago

Last modified 9 months ago

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: Port Bugs
Component: ports Version: 1.5.0
Keywords: Cc: johan@…, ryand-ruby@…, brianjlandau@…, ryandesign@…
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

errorlog.txt (17.5 KB) - added by brianjlandau@… 13 months ago.
error printed to stderr by port command
Portfile (0.9 KB) - added by will.bryant@… 12 months ago.
Updated Portfile
Portfile.diff (0.8 KB) - added by will.bryant@… 12 months ago.
Diff of new portfile against that currently in repository
patch-Makefile.osx.diff (0.5 KB) - added by will.bryant@… 12 months ago.
Updated patch removing the troublesome syslibpath

Change History

Changed 13 months ago by ryandesign@…

  • cc johan@… added
  • summary changed from BUG: freeimage 3.9.2-20070101 fails to build on leopard to BUG: freeimage 3.9.2-20070101 fails to build on Mac OS X 10.5 Leopard
  • milestone set to Port Bugs

Changed 13 months ago by ryandesign@…

  • cc brianjlandau@…, ryandesign@… added

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.

Changed 13 months ago by brianjlandau@…

The patch in ticket #13203 did not work for me. I still get the same error as reported in ticket #13121

Changed 13 months ago by brianjlandau@…

error printed to stderr by port command

Changed 13 months 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"

Changed 12 months 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.

Changed 12 months ago by brianjlandau@…

This link can also be helpful: http://www.ruby-forum.com/topic/129554

Changed 12 months 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 12 months ago by will.bryant@…

Updated Portfile

Changed 12 months ago by will.bryant@…

Diff of new portfile against that currently in repository

Changed 12 months ago by will.bryant@…

Updated patch removing the troublesome syslibpath

Changed 9 months ago by will.bryant@…

This was fixed in r33438, so this one can be closed

Changed 9 months ago by ryandesign@…

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.