[Mono-bugs] [Bug 71823][Nor] New - libgdiplus SVN HEAD doesn't compile on AMD64
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Wed, 26 Jan 2005 17:36:42 -0500 (EST)
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 ximian-bugzilla@winsper.org.uk.
http://bugzilla.ximian.com/show_bug.cgi?id=71823
--- shadow/71823 2005-01-26 17:36:42.000000000 -0500
+++ shadow/71823.tmp.31505 2005-01-26 17:36:42.000000000 -0500
@@ -0,0 +1,43 @@
+Bug#: 71823
+Product: Mono: Class Libraries
+Version: 1.1
+OS:
+OS Details: AMD64
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Sys.Drawing.
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: ximian-bugzilla@winsper.org.uk
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: libgdiplus SVN HEAD doesn't compile on AMD64
+
+libgdiplus has some integer to pointer conversions in src/graphics.c that
+cause building to fail on AMD64.
+
+Steps to reproduce the problem:
+1. Try to compile libgdiplus on AMD64 Linux.
+
+Actual Results:
+graphics.c: In function `GdipCreateFromHDC':
+graphics.c:285: warning: cast to pointer from integer of different size
+graphics.c: In function `GdipGetDC':
+graphics.c:374: warning: cast from pointer to integer of different size
+graphics.c: In function `GdipReleaseDC':
+graphics.c:382: warning: cast from pointer to integer of different size
+make[2]: *** [graphics.lo] Error 1
+
+Expected Results:
+Clean compile
+
+How often does this happen?
+All the time on SVN head.
+
+Additional Information:
+The problem is that doing things like "(GpGraphics *) hDC" is going to
+cause problems on platforms where sizeof(int) != sizeof(void*). Functions
+like GdipGetDC convert GpGraphics* to int, which may cause data loss.