Bug 98654 - emerge of libgdiplus-1.1.8 failed (fix attached)
Bug#: 98654 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: dotnet@gentoo.org Reported By: nadi@gentoo.org
Component: Library
URL: 
Summary: emerge of libgdiplus-1.1.8 failed (fix attached)
Keywords:  
Status Whiteboard: 
Opened: 2005-07-11 05:31 0000
Description:   Opened: 2005-07-11 05:31 0000
There is a conflicting definition in gifcodec.c / gifcodec.h. I attached a
patch
to fix this.

Reproducible: Always
Steps to Reproduce:
1. emerge libgdiplus-1.1.8 with all the USE flags on
2.
3.

------- Comment #1 From Nadi Sarrar 2005-07-11 05:33:03 0000 -------
Created an attachment (id=63126) [details]
Compilation fix

------- Comment #2 From Nadi Sarrar 2005-07-11 05:34:05 0000 -------
Created an attachment (id=63127) [details]
ebuild using the patch

------- Comment #3 From Martin Kretschmer 2005-08-01 16:57:04 0000 -------
Seems to be fixed with giflib 1.4.3-r1 - compiles successfully without ebuild
patch

------- Comment #4 From Peter Johanson (RETIRED) 2005-08-04 11:09:32 0000 -------
There is a similar patch in the 1.1.8 ebuild right now, which currently causes
no problems here. Can you please report if you are still having problems, and
the exact error, when trying to build libgdiplus-1.1.8? Thanks.

------- Comment #5 From Nadi Sarrar 2005-08-04 11:41:51 0000 -------
A fresh emerge sync && emerge libgdiplus (1.1.8 ~x86) still leads to the same
error as before:

[...]
 i686-pc-linux-gnu-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 -O2 -march=pentium3 -fomit-frame-pointer -pipe -pthread -MT
gifcodec.lo -MD -MP -MF .deps/gifcodec.Tpo -c gifcodec.c  -fPIC -DPIC -o
.libs/gifcodec.o
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'
make[2]: *** [gifcodec.lo] Fehler 1
make[2]: Leaving directory
`/var/tmp/portage/libgdiplus-1.1.8/work/libgdiplus-1.1.8/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/var/tmp/portage/libgdiplus-1.1.8/work/libgdiplus-1.1.8'
make: *** [all] Fehler 2

!!! ERROR: dev-dotnet/libgdiplus-1.1.8 failed.
!!! Function src_compile, Line 52, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

------- Comment #6 From Nadi Sarrar 2005-08-04 12:07:15 0000 -------
Somehow, a giflib update from 4.1.0-r3 to 4.1.3 made libgdiplus-1.1.8 emerge
fine. To me, it still looks like a simple bug in the implementation, but it
seems to work with an up-to-date x86 system.

------- Comment #7 From Jason Athey 2005-08-22 18:05:29 0000 -------
(In reply to comment #6)
> Somehow, a giflib update from 4.1.0-r3 to 4.1.3 made libgdiplus-1.1.8 emerge
> fine. To me, it still looks like a simple bug in the implementation, but it
> seems to work with an up-to-date x86 system.

Said update also causes it to compile on amd64


------- Comment #8 From Peter Johanson (RETIRED) 2005-09-16 11:41:51 0000 -------
I've bumped the required giflib version in both 1.1.8 and the new 1.1.9. I
double checked 1.1.9, and the code in question was also fixed. Marking this bug
FIXED.