[Mono-bugs] [Bug 75622][Nor] New - libgdiplus fails to build on GCC 4 without libgif

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Jul 24 17:40:40 EDT 2005


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by brion at pobox.com.

http://bugzilla.ximian.com/show_bug.cgi?id=75622

--- shadow/75622	2005-07-24 17:40:40.000000000 -0400
+++ shadow/75622.tmp.19824	2005-07-24 17:40:40.000000000 -0400
@@ -0,0 +1,42 @@
+Bug#: 75622
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: Mac OS X 10.4.2
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Drawing.
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: brion at pobox.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: libgdiplus fails to build on GCC 4 without libgif
+
+Description of Problem:
+There is a mismatched function definition between gifcodec.h and the #ifdef'd portion of 
+gifcodec.c that's compiled with no giflib is available. Under GCC 4.0, annoyingly strict rules cause 
+compilation to fail at this point.
+
+Steps to reproduce the problem:
+1. Check out libgdiplus on a Mac OS X 10.4 system, with GCC 4, and without libgif
+2. ./autogen.sh
+3. make
+
+Actual Results:
+...
+gifcodec.c:611: error: conflicting types for 'gdip_save_gif_image_to_file'
+gifcodec.h:24: error: previous declaration of 'gdip_save_gif_image_to_file' was here
+
+Expected Results:
+Should compile without errors.
+
+How often does this happen? 
+Every time.
+
+Additional Information:
+Changing the definition of gdip_save_gif_image_to_file to take an unsigned char * instead of a 
+char *, matching the header and the other implementation, gets this to compile.


More information about the mono-bugs mailing list