Opened 10 years ago

Closed 9 years ago

Last modified 8 years ago

#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 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)

errorlog.txt (17.5 KB) - added by brianjlandau@… 10 years ago.
error printed to stderr by port command
Portfile (913 bytes) - added by will.bryant@… 10 years ago.
Updated Portfile
Portfile.diff (848 bytes) - added by will.bryant@… 10 years ago.
Diff of new portfile against that currently in repository
patch-Makefile.osx.diff (529 bytes) - added by will.bryant@… 10 years ago.
Updated patch removing the troublesome syslibpath

Download all attachments as: .zip

Change History (14)

comment:1 Changed 10 years ago by ryandesign (Ryan Schmidt)

  • Cc johan@… added
  • Milestone set to Port Bugs
  • 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

comment:2 Changed 10 years ago by ryandesign (Ryan Schmidt)

  • 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.

comment:3 Changed 10 years 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 10 years ago by brianjlandau@…

error printed to stderr by port command

comment:4 Changed 10 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 10 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 10 years ago by brianjlandau@…

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

comment:7 Changed 10 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 10 years ago by will.bryant@…

Updated Portfile

Changed 10 years ago by will.bryant@…

Diff of new portfile against that currently in repository

Changed 10 years ago by will.bryant@…

Updated patch removing the troublesome syslibpath

comment:8 Changed 9 years ago by will.bryant@…

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

comment:9 Changed 9 years ago by ryandesign (Ryan Schmidt)

  • Resolution set to fixed
  • Status changed from new to closed

comment:10 Changed 8 years ago by anonymous

  • Milestone Port Bugs deleted

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.