[Mono-bugs] [Bug 74855][Min] New - libgdiplus fails to build with giflib3g headers
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 6 May 2005 20:12:40 -0400 (EDT)
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@pobox.com.
http://bugzilla.ximian.com/show_bug.cgi?id=74855
--- shadow/74855 2005-05-06 20:12:40.000000000 -0400
+++ shadow/74855.tmp.11175 2005-05-06 20:12:40.000000000 -0400
@@ -0,0 +1,78 @@
+Bug#: 74855
+Product: Mono: Class Libraries
+Version: 1.1
+OS: GNU/Linux [Other]
+OS Details: Ubuntu 5.04 "Hoary"
+Status: NEW
+Resolution:
+Severity:
+Priority: Minor
+Component: Sys.Drawing.
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: brion@pobox.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: libgdiplus fails to build with giflib3g headers
+
+Description of Problem:
+libgdiplus fails to build if the libungif4 library and the giflib3g
+headers are present together on the system.
+
+Steps to reproduce the problem:
+1. apt-get install giflib3g-dev
+2. cd libgdiplus-1.1.7
+3. ./configure --prefix=/opt/mono && make
+
+Actual Results:
+...
+checking for DGifOpenFileName in -lungif... yes
+checking gif_lib.h usability... yes
+checking gif_lib.h presence... yes
+checking for gif_lib.h... yes
+[snip]
+ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libpixman/src -I../libpixman/src
+-I../cairo/src -I../cairo/src -I/usr/include/glib-2.0 -I/usr/lib/glib
+-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-
+format -g -O2 -pthread -MT gifcodec.lo -MD -MP -MF .deps/gifcodec.Tpo -c
+gifcodec.c -fPIC -DPIC -o .libs/gifcodec.o
+gifcodec.c:42: error: syntax error before "OutputFunc"
+gifcodec.c: In function `gdip_gif_fileinputfunc':
+gifcodec.c:87: error: structure has no member named `UserData'
+gifcodec.c: In function `gdip_gif_inputfunc':
+gifcodec.c:94: error: structure has no member named `UserData'
+gifcodec.c: In function `gdip_load_gif_image':
+gifcodec.c:149: warning: implicit declaration of function `DGifOpen'
+gifcodec.c:149: warning: assignment makes pointer from integer without a
+cast
+gifcodec.c:151: warning: assignment makes pointer from integer without a
+cast
+gifcodec.c:177: error: structure has no member named `Function'
+gifcodec.c:250: error: structure has no member named `Function'
+gifcodec.c: In function `gdip_gif_outputfunc':
+gifcodec.c:345: error: structure has no member named `UserData'
+make[2]: *** [gifcodec.lo] Error 1
+make[2]: Leaving directory `/kalman/Projects/mono-1.1.7/libgdiplus-1.1.7/
+src'
+make[1]: *** [all-recursive] Error 1
+make[1]: Leaving directory `/kalman/Projects/mono-1.1.7/libgdiplus-1.1.7'
+make: *** [all] Error 2
+
+Expected Results:
+Either libgdiplus should compile correctly with GIF support, or the
+configure script should reject these libgif headers as incompatible and
+automatically disable GIF support.
+
+How often does this happen?
+Every time.
+
+Additional Information:
+Installing Ubuntu's libungif4-dev package in place of giflib3g-dev gets
+things working.
+
+Although the libraries can coexist, these dev packages are mutually
+exclusive. libungif4 is installed default on Ubuntu, but the -dev
+packages are not normally installed and a person manually compiling can
+easily end up picking the other library's headers when installing needed
+dev packages.