Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 81863

Summary: Wine-20050111 compile fails with error about DGifOpen undeclared in olepicture.c
Product: Gentoo Linux Reporter: Daniel Rendall <gentoo>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Daniel Rendall 2005-02-13 08:01:46 UTC
I was upgrading wine via 'emerge -u world' and the compile failed. Looking through the messages, I found the following:

olepicture.c:52:22: gif_lib.h: No such file or directory
olepicture.c: In function `OLEPictureImpl_get_hPal':
olepicture.c:477: warning: unused variable `This'
olepicture.c: In function `OLEPictureImpl_EnumConnectionPoints':
olepicture.c:752: warning: unused variable `This'
olepicture.c: In function `OLEPictureImpl_GetClassID':
olepicture.c:823: warning: unused variable `This'
olepicture.c: In function `OLEPictureImpl_IsDirty':
olepicture.c:834: warning: unused variable `This'
olepicture.c: At top level:
olepicture.c:899: error: `DGifOpen' undeclared here (not in a function)
olepicture.c:899: warning: type defaults to `int' in declaration of `pDGifOpen'
olepicture.c:900: error: `DGifSlurp' undeclared here (not in a function)
olepicture.c:900: warning: type defaults to `int' in declaration of `pDGifSlurp'
olepicture.c:901: error: `DGifCloseFile' undeclared here (not in a function)
olepicture.c:901: warning: type defaults to `int' in declaration of `pDGifCloseFile'
olepicture.c:930: error: parse error before '*' token
olepicture.c: In function `_gif_inputfunc':
olepicture.c:931: error: `gif' undeclared (first use in this function)
olepicture.c:931: error: (Each undeclared identifier is reported only once
olepicture.c:931: error: for each function it appears in.)
olepicture.c:933: error: `len' undeclared (first use in this function)
olepicture.c:937: error: `data' undeclared (first use in this function)

After doing some digging, I discovered that I was missing gif_lib.h and found bug 18820 which details a conflict between media-libs/giflib and media-libs/libungif.

I've since remerged both libraries which has resulted in media-libs/giflib installing /usr/include/gif_lib.h. I'm not sure how this was missing before - perhaps I changed the 'gif' use flag at some point. This has fixed the compilation problem.

However, looking at the e-builds, in the wine ebuild there's the RDEPEND:
gif? ( media-libs/libungif )

However, in the libungif e-build there's:
use gif && rm -r "${D}"/usr/bin "${D}"/usr/include/gif_lib.h

I conclude that if you have 'use gif' set then you'll get libungif, but that won't install gif_lib.h, therefore the wine build will fail.




Reproducible: Always
Steps to Reproduce:
1. Upgrade wine on a system without /usr/include/gif_lib.h but which does have libgif and libungif installed (which is possible if use flags have changed)

Actual Results:  
Failed compilation with errors about DGifOpen 

Expected Results:  
Compiled cleanly. 

Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5, 
glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686) 
================================================================= 
System uname: 2.6.10-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 3.40GHz 
Gentoo Base System version 1.4.16 
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  7 2005, 
18:41:20)] 
distcc 2.16 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[disabled] 
ccache version 2.3 [enabled] 
dev-lang/python:     2.3.4-r1 
sys-devel/autoconf:  2.13, 2.59-r6 
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.4_p6, 1.9.4, 1.8.5-r3 
sys-devel/binutils:  2.15.92.0.2-r1 
sys-devel/libtool:   1.5.10-r4 
virtual/os-headers:  2.4.21-r1 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-O2 -mcpu=pentium4 -march=pentium4 -fomit-frame-pointer -pipe" 
CHOST="i586-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-O2 -mcpu=pentium4 -march=pentium4 -fomit-frame-pointer -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" 
GENTOO_MIRRORS="http://distfiles.gentoo.org 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo" 
MAKEOPTS="-j3" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/home/portage" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/home/overlay" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="x86 X alsa apache2 arts bash-completion blender-game bluetooth 
cdparanoiacdr cups divx4linux dvd dvdr dvdread font-server foomaticdb freetype 
gif gimp gimpprint gnuplot imagemagick irda java jpeg jpeg2k kde mime mmx mp3 
mysql offensive ooo-kde opengl pcre php plotutils png posix povray ppds qt 
quicktime speedo spell sse sse2 ssl svg tetex tidy tiff truetype 
truetype-fonts type1 type1-fonts usb xinerama xscreensaver xv" 
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2005-02-13 08:50:57 UTC

*** This bug has been marked as a duplicate of 77809 ***