Bug 5859 - libgdiplus 2.10.9 fails to build with giflib 5.0.0
Summary: libgdiplus 2.10.9 fails to build with giflib 5.0.0
Status: RESOLVED FIXED
Alias: None
Product: Class Libraries
Classification: Mono
Component: libgdiplus ()
Version: 2.10.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-06-25 18:41 UTC by Ryan Schmidt
Modified: 2015-12-29 11:22 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Ryan Schmidt 2012-06-25 18:41:01 UTC
libgdiplus 2.10.9 fails to build with giflib 5.0.0. The error is:

gifcodec.c:43: error: conflicting types for 'EGifOpen'
/opt/local/include/gif_lib.h:128: error: previous declaration of 'EGifOpen' was here
gifcodec.c: In function 'AddExtensionBlockMono':
gifcodec.c:125: warning: pointer targets in assignment differ in signedness
gifcodec.c:132: error: 'SavedImage' has no member named 'Function'
gifcodec.c: In function 'DGifSlurpMono':
gifcodec.c:235: error: 'SavedImage' has no member named 'Function'
gifcodec.c:248: error: 'SavedImage' has no member named 'Function'
gifcodec.c: In function 'gdip_load_gif_image':
gifcodec.c:307: error: too few arguments to function 'DGifOpen'
gifcodec.c:309: error: too few arguments to function 'DGifOpen'
gifcodec.c: In function 'gdip_save_gif_image':
gifcodec.c:664: error: too few arguments to function 'EGifOpenFileName'
gifcodec.c:705: warning: implicit declaration of function 'MakeMapObject'
gifcodec.c:705: warning: assignment makes pointer from integer without a cast
gifcodec.c:796: warning: assignment makes pointer from integer without a cast
gifcodec.c:827: warning: implicit declaration of function 'QuantizeBuffer'
gifcodec.c:833: warning: implicit declaration of function 'BitSize'
gifcodec.c:851: warning: implicit declaration of function 'EGifPutExtensionFirst'
gifcodec.c:852: warning: implicit declaration of function 'EGifPutExtensionLast'
gifcodec.c:904: warning: implicit declaration of function 'FreeMapObject'
make[2]: *** [gifcodec.lo] Error 1

It builds fine with giflib 4.2.0.
Comment 1 Matthias Mailänder 2015-04-11 12:24:46 UTC
Proposed fix at https://github.com/mono/libgdiplus/pull/32
Comment 2 Alexander Köplinger [MSFT] 2015-12-29 11:22:06 UTC
The pull request was merged, this should be fixed now.