Bug 1632 - libgdiplus compilation fails with libpng15
Summary: libgdiplus compilation fails with libpng15
Status: RESOLVED FIXED
Alias: None
Product: Class Libraries
Classification: Mono
Component: libgdiplus ()
Version: master
Hardware: PC Linux
: Normal normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-10-21 07:40 UTC by Alex Rønne Petersen
Modified: 2017-10-09 22:08 UTC (History)
3 users (show)

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


Attachments
Proposed patch., originally develped for the debian release of mono (5.36 KB, patch)
2013-09-03 14:48 UTC, Mike Chase
Details


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 Alex Rønne Petersen 2011-10-21 07:40:21 UTC
libgdiplus cannot be compiled with libpng15 (which was recently pushed to Gentoo Portage in favor of libpng14):


pngcodec.c: In function 'gdip_load_png_properties':
pngcodec.c:119:15: error: dereferencing pointer to incomplete type
pngcodec.c:119:52: error: dereferencing pointer to incomplete type
pngcodec.c:121:35: error: dereferencing pointer to incomplete type
pngcodec.c:122:35: error: dereferencing pointer to incomplete type
pngcodec.c:137:3: warning: passing argument 5 of 'png_get_iCCP' from incompatible pointer type
/usr/include/libpng15/png.h:2206:1: note: expected 'png_bytepp' but argument is of type 'char **'
pngcodec.c: In function 'gdip_load_png_image_from_file_or_stream':
pngcodec.c:324:34: error: dereferencing pointer to incomplete type
pngcodec.c:325:31: error: dereferencing pointer to incomplete type
pngcodec.c:333:5: error: dereferencing pointer to incomplete type
pngcodec.c:333:5: error: dereferencing pointer to incomplete type
pngcodec.c:333:5: error: dereferencing pointer to incomplete type
pngcodec.c:342:15: error: dereferencing pointer to incomplete type
pngcodec.c:346:16: error: dereferencing pointer to incomplete type
pngcodec.c:346:38: error: dereferencing pointer to incomplete type
pngcodec.c:347:13: error: dereferencing pointer to incomplete type
pngcodec.c:347:35: error: dereferencing pointer to incomplete type
pngcodec.c:350:26: error: dereferencing pointer to incomplete type
pngcodec.c:351:5: error: dereferencing pointer to incomplete type
pngcodec.c:351:5: error: dereferencing pointer to incomplete type
pngcodec.c:351:5: error: dereferencing pointer to incomplete type
pngcodec.c:351:5: error: dereferencing pointer to incomplete type
pngcodec.c:488:8: error: dereferencing pointer to incomplete type
pngcodec.c:488:8: error: dereferencing pointer to incomplete type
pngcodec.c:488:8: error: dereferencing pointer to incomplete type
pngcodec.c:495:8: error: dereferencing pointer to incomplete type
pngcodec.c:495:8: error: dereferencing pointer to incomplete type
pngcodec.c:495:8: error: dereferencing pointer to incomplete type
pngcodec.c:502:8: error: dereferencing pointer to incomplete type
pngcodec.c:502:8: error: dereferencing pointer to incomplete type
pngcodec.c:502:8: error: dereferencing pointer to incomplete type
pngcodec.c:509:8: error: dereferencing pointer to incomplete type
pngcodec.c:509:8: error: dereferencing pointer to incomplete type
pngcodec.c:509:8: error: dereferencing pointer to incomplete type
make[2]: *** [pngcodec.lo] Error 1
make[2]: Leaving directory `/usr/src/libgdiplus/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/libgdiplus'
make: *** [all] Error 2
Comment 1 Mike Chase 2013-09-03 14:48:52 UTC
Created attachment 4772 [details]
Proposed patch., originally develped for the debian release of mono

This worked for me and allowed me to compile the current version in git.
Comment 2 Alex Rønne Petersen 2017-10-09 22:08:09 UTC
libgdiplus now builds fine with libpng15.