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

Bug 82202

Summary: wine-20050111 does not compile
Product: Gentoo Linux Reporter: Bernd Wurst <bugzilla-gentoo>
Component: Current packagesAssignee: Wine Maintainers <wine>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Bernd Wurst 2005-02-15 22:21:46 UTC
Wine failes to compile giving the following error message:

make[2]: Leaving directory `/var/tmp/portage/wine-20050111/work/wine-20050111/dlls/olecli'
i686-pc-linux-gnu-gcc -c -I. -I. -I../../include -I../../include  -D__WINESRC__ -DWINE_NO_DEBUG_MSGS -DWINE_NO_TRACE_MSGS -D_OLEAUT32_ -DCOM_NO_WINDOWS_H -D_REENTRANT -fPIC -Wall -pipe -mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+ -Wpointer-arith  -O2 -march=pentium3 -pipe -o olefont.o olefont.c
i686-pc-linux-gnu-gcc -c -I. -I. -I../../include -I../../include  -D__WINESRC__ -DWINE_NO_DEBUG_MSGS -DWINE_NO_TRACE_MSGS -D_OLEAUT32_ -DCOM_NO_WINDOWS_H -D_REENTRANT -fPIC -Wall -pipe -mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+ -Wpointer-arith  -O2 -march=pentium3 -pipe -o olepicture.o olepicture.c
olepicture.c:52:22: gif_lib.h: No such file or directory
olefont.c: In function `OLEFontImpl_SetHdc':
olefont.c:1135: warning: unused variable `this'
olefont.c: In function `OLEFontImpl_GetTypeInfoCount':
olefont.c:1190: warning: unused variable `this'
olefont.c: In function `OLEFontImpl_GetTypeInfo':
olefont.c:1211: warning: unused variable `this'
olefont.c: In function `OLEFontImpl_GetIDsOfNames':
olefont.c:1240: warning: unused variable `this'
olefont.c: In function `OLEFontImpl_EnumConnectionPoints':
olefont.c:1791: warning: unused variable `this'
olefont.c: In function `SFCF_QueryInterface':
olefont.c:2101: warning: unused variable `This'
olefont.c: In function `SFCF_LockServer':
olefont.c:2127: warning: unused variable `This'
olepicture.c: In function `OLEPictureImpl_get_hPal':
olepicture.c:477: warning: unused variable `This'
i686-pc-linux-gnu-gcc -c -I. -I. -I../../include -I../../include  -D__WINESRC__ -DWINE_NO_DEBUG_MSGS -DWINE_NO_TRACE_MSGS -D_OLEAUT32_ -DCOM_NO_WINDOWS_H -D_REENTRANT -fPIC -Wall -pipe -mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+ -Wpointer-arith  -O2 -march=pentium3 -pipe -o regsvr.o regsvr.c
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)
olepicture.c: In function `OLEPictureImpl_Load':
olepicture.c:1019: error: `GifFileType' undeclared (first use in this function)
olepicture.c:1019: error: `gif' undeclared (first use in this function)
olepicture.c:1024: error: `GifImageDesc' undeclared (first use in this function)
olepicture.c:1024: error: `gid' undeclared (first use in this function)
olepicture.c:1025: error: `SavedImage' undeclared (first use in this function)
olepicture.c:1025: error: `si' undeclared (first use in this function)
olepicture.c:1026: error: `ColorMapObject' undeclared (first use in this function)
olepicture.c:1026: error: `cm' undeclared (first use in this function)
olepicture.c:1028: error: `ExtensionBlock' undeclared (first use in this function)
olepicture.c:1028: error: `eb' undeclared (first use in this function)
olepicture.c:1041: error: called object is not a function
olepicture.c:1042: error: called object is not a function
olepicture.c:1043: error: `GIF_ERROR' undeclared (first use in this function)
olepicture.c:1168: error: called object is not a function
olepicture.c: In function `OLEPictureImpl_GetSizeMax':
olepicture.c:1707: warning: unused variable `This'
olepicture.c: In function `SPCF_QueryInterface':
olepicture.c:2000: warning: unused variable `This'
olepicture.c: In function `SPCF_LockServer':
olepicture.c:2031: warning: unused variable `This'
make[2]: *** [olepicture.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Entering directory `/var/tmp/portage/wine-20050111/work/wine-20050111/dlls/olesvr'
../../tools/winebuild/winebuild -D__WINESRC__ -DWINE_NO_DEBUG_MSGS -DWINE_NO_TRACE_MSGS  -o olesvr.spec.c --main-module olesvr32.dll --dll olesvr.spec
i686-pc-linux-gnu-gcc -c -I. -I. -I../../include -I../../include  -D__WINESRC__ -DWINE_NO_DEBUG_MSGS -DWINE_NO_TRACE_MSGS  -D_REENTRANT -fPIC -Wall -pipe -mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+ -Wpointer-arith  -O2 -march=pentium3 -pipe -o olesvr_main.o olesvr_main.c
make[2]: Leaving directory `/var/tmp/portage/wine-20050111/work/wine-20050111/dlls/oleaut32'
make[1]: *** [oleaut32] Error 2
make[1]: *** Waiting for unfinished jobs....
../../tools/winebuild/winebuild -D__WINESRC__ -DWINE_NO_DEBUG_MSGS -DWINE_NO_TRACE_MSGS  -o olesvr32.dll.dbg.c --debug -C. olesvr_main.c
i686-pc-linux-gnu-gcc -c -I. -I. -I../../include -I../../include  -D__WINESRC__ -DWINE_NO_DEBUG_MSGS -DWINE_NO_TRACE_MSGS  -D_REENTRANT -fPIC -Wall -pipe -mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+ -Wpointer-arith  -O2 -march=pentium3 -pipe -o olesvr.spec.o olesvr.spec.c
i686-pc-linux-gnu-gcc -c -I. -I. -I../../include -I../../include  -D__WINESRC__ -DWINE_NO_DEBUG_MSGS -DWINE_NO_TRACE_MSGS  -D_REENTRANT -fPIC -Wall -pipe -mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+ -Wpointer-arith  -O2 -march=pentium3 -pipe -o olesvr32.dll.dbg.o olesvr32.dll.dbg.c
../../tools/winegcc/winegcc -B../../tools/winebuild -shared ./olesvr32.spec olesvr.spec.o   olesvr_main.o  olesvr32.dll.dbg.o   -o olesvr32.dll.so -L../../dlls  -lkernel32 -L../../libs/wine -lwine  -L../../libs/port -lwine_port
make[2]: Leaving directory `/var/tmp/portage/wine-20050111/work/wine-20050111/dlls/olesvr'
make[1]: Leaving directory `/var/tmp/portage/wine-20050111/work/wine-20050111/dlls'
make: *** [dlls] Error 2


So I think is has something to do with missing GIF-support in any needed library.

I have "gif" in my global USE-flags and not diabled for any individual package.
Comment 1 Rene Zbinden 2005-02-16 00:36:12 UTC
I get exactly the same error and I have gif NOT in my global USE-Flags.
Comment 2 Rene Zbinden 2005-02-16 01:05:23 UTC
My first comment is wrong. I have gif in my global use flag.
Nevertheless I was able to emerge it with the following command:
USE="-gif" emerge wine
Comment 3 Bernd Wurst 2005-02-16 01:09:06 UTC
I do not consider this a solution. ;-)

Windows-apps often want to display GIFs, that should not work anymore for you now, right?

But thanks for the workaround.
Comment 4 David Guembel (RETIRED) gentoo-dev 2005-02-16 02:37:32 UTC
That seems to be a problem of the libungif ebuild not having installed /usr/include/gif_lib.h in some of its versions. libungif-4.1.0.1b has it installed, however libungif-4.1.3 is missing that file. 

Please verify that by emerging the older libungif version and then trying to re-emerge wine. Thanks.
Comment 5 Rene Zbinden 2005-02-16 03:14:00 UTC
I triede to emerge wine-20041019-r3 and also this version failed to build with the gif flag enabled. I installed libungif-4.1.0.1b and I am reemerging wine-20050111.
I let you know if it works.
Comment 6 Rene Zbinden 2005-02-16 03:30:02 UTC
David, you were right. This was the problem. Now it compiled flawlessly.
Is this now a libungif bug?
Comment 7 David Guembel (RETIRED) gentoo-dev 2005-02-16 03:47:05 UTC
Actually, this looks more like a duplicate of #77809 to me. Please tell me if you have the latest giflib installed? 
What version of giflib is installed on your machine (if any)? 
And if you have giflib installed, is there an update avalilable for the version you have currently installed?
Comment 8 Rene Zbinden 2005-02-16 04:06:31 UTC
equery list giflib gives:
 * installed packages
[I--] [  ] media-libs/giflib-4.1.0-r3 (0)

emerge -uDp world gives:
These are the packages that I would merge, in order:

Calculating world dependencies ...done!
[ebuild     U ] media-libs/libungif-4.1.3 [4.1.0.1b
(I synced today)


but this is normal, because i switched to this version of libungif previously.

Additionally I also remarked some stability issues with the version 20050111 of wine. (i am running notes under wine). so I switched back to 20041019-r3. with this version I have no problems.
Comment 9 David Guembel (RETIRED) gentoo-dev 2005-02-16 04:19:42 UTC
Do you have a /usr/include/gif_lib.h, and which package does it belong to?
Comment 10 Rene Zbinden 2005-02-16 04:33:08 UTC
Yes I have that file. I installed libungif-4.1.0.1b because of you comment #4. 
here following output:
equery belongs /usr/include/gif_lib.h gives:
[ Searching for file(s) /usr/include/gif_lib.h in *... ]
media-libs/giflib-4.1.0-r3 (/usr/include/gif_lib.h)
media-libs/libungif-4.1.0.1b (/usr/include/gif_lib.h)

This is somewhat strange. Because before I switched back to libungif-4.1.0.1b from libungif-4.1.3 I did not have this file. And now equery says that this file also belongs to giflib.

The only thing I did that the emerge worked was to go back to libungif-4.1.0.1b from libungif-4.1.3
Comment 11 Bernd Wurst 2005-02-16 06:29:45 UTC
So, I ran out for a bit and now reading all this. ;-)

Ok, so I tried another thing:

# ls /usr/include/gif_lib.h
ls: /usr/include/gif_lib.h: No such file or directory

# equery belongs /usr/include/gif_lib.h
[ Searching for file(s) /usr/include/gif_lib.h in *... ]
media-libs/giflib-4.1.0-r3 (/usr/include/gif_lib.h)

So the file is considered installed but not there.

I suppose, this is a file collission between media-libs/giflib and media-libs/libungif. giflib has been installed first, then libungif (overwriting the include-file) and then the newer libungif which did not bring the include file, so it got deleted via cleanup.

Confirmation:

# genlop -t giflib libungif

 * media-libs/giflib

     Mon Mar 22 19:28:37 2004 >>> media-libs/giflib-4.1.0-r3
       merge time: 13 seconds.

 * media-libs/libungif

     Mon Mar 22 19:29:21 2004 >>> media-libs/libungif-4.1.0.1b
       merge time: 1 second.

     Sat Jan  8 22:42:10 2005 >>> media-libs/libungif-4.1.3
       merge time: 1 minute and 36 seconds.


Ok, so it seems like it's not a duplicate of bug #77809 but some sort of collission bug in the older version of libungif (should not overwrite giflib's files). Simple re-installing giflib (so that it re-installes gif_lib.h) solved this for me. Thanks for the hint.
Comment 12 David Guembel (RETIRED) gentoo-dev 2005-02-16 08:24:39 UTC
As far as Wine is concerned, this is a duplicate of bug #77809, as compilation of Wine fails for the same reason (a missing header file). So I'll be closing this bug and reopen #77809. 

Whoever experiences this should - as a workaround - please emerge giflib and libungif in their latest versions and retry compiling Wine.

The incorrect behavior of libungif and giflib both installing the same file is being taken care of in bug #18820. 

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