Bug 107551 - giflib-4.1.3-r2 fails to build with opengl USE flag
|
Bug#:
107551
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: x86
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: normal
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: graphics@gentoo.org
|
Reported By: jfostiguy@sbcglobal.net
|
|
Component: Library
|
|
|
URL:
|
|
Summary: giflib-4.1.3-r2 fails to build with opengl USE flag
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2005-09-28 18:55 0000
|
media-libs/giflib-4.1.3-r2 [4.1.3-r1] +X +opengl -rle 0 kB
....
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -O2 -march=pentium4
-fomit-frame-pointer -pipe -Wall -O2 -march=pentium4 -fomit-frame-pointer -pipe
-MT dgif_lib.lo -MD -MP -MF .deps/dgif_lib.Tpo -c dgif_lib.c -fPIC -DPIC -o
.libs/dgif_lib.o
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -O2 -march=pentium4
-fomit-frame-pointer -pipe -Wall -O2 -march=pentium4 -fomit-frame-pointer -pipe
-MT dev2gif.lo -MD -MP -MF .deps/dev2gif.Tpo -c dev2gif.c -fPIC -DPIC -o
.libs/dev2gif.o
dev2gif.c:29:19: gl/gl.h: No such file or directory
dev2gif.c: In function `DumpScreen2Gif':
dev2gif.c:136: error: redeclaration of 'ColorMap256' with no linkage
dev2gif.c:131: error: previous declaration of 'ColorMap256' was here
dev2gif.c:224: warning: implicit declaration of function `winset'
dev2gif.c:225: warning: implicit declaration of function `getsize'
dev2gif.c:228: warning: implicit declaration of function `readsource'
dev2gif.c:228: error: `SRC_FRONT' undeclared (first use in this function)
dev2gif.c:228: error: (Each undeclared identifier is reported only once
dev2gif.c:228: error: for each function it appears in.)
dev2gif.c:229: warning: implicit declaration of function `lrectread'
dev2gif.c:131: warning: unused variable `ColorMap256'
make[2]: *** [dev2gif.lo] Error 1
Looks like gl support is designed for windoze ...
gl/gl.h should be GL/gl.h ...
I am not sure about "redeclation of ColorMap256", but changing gl/gl.h to
GL/gl.h does not fix that problem.
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Workaround: setting USE -opengl works.
I was able to re-produce.
Adding "-opengl" is a working workaround also.
I don't think we should even support USE="opengl" for this ebuild. The code
appears to use some SGI-specific opengl functions from what I can determine.
There *is* a library available (http://www.thp.uni-duisburg.de/Ygl/ReadMe.html)
which provides these on an X11 platform.
It also doesn't appear that the library is expecting GL and X11 to be enabled at
the same time. See function dev2gif.c::DumpScreen2Gif, which redefines
ColorMap256 if you enable both.
It'd probably be less trouble to drop USE="opengl".
same here
mkdir .libs
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -march=pentium3 -O2 -pipe
-fomit-frame-pointer -fforce-addr -Wall -march=pentium3 -O2 -pipe
-fomit-frame-pointer -fforce-addr -MT dev2gif.lo -MD -MP -MF .deps/dev2gif.Tpo
-c dev2gif.c -fPIC -DPIC -o .libs/dev2gif.o
if /bin/sh ../libtool --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.
-I. -I.. -march=pentium3 -O2 -pipe -fomit-frame-pointer -fforce-addr -Wall
-march=pentium3 -O2 -pipe -fomit-frame-pointer -fforce-addr -MT egif_lib.lo -MD
-MP -MF ".deps/egif_lib.Tpo" \
-c -o egif_lib.lo `test -f 'egif_lib.c' || echo './'`egif_lib.c; \
then mv -f ".deps/egif_lib.Tpo" ".deps/egif_lib.Plo"; \
else rm -f ".deps/egif_lib.Tpo"; exit 1; \
fi
dev2gif.c:29:19: gl/gl.h: No such file or directory
dev2gif.c: In function `DumpScreen2Gif':
dev2gif.c:136: error: redeclaration of 'ColorMap256' with no linkage
dev2gif.c:131: error: previous declaration of 'ColorMap256' was here
dev2gif.c:224: warning: implicit declaration of function `winset'
dev2gif.c:225: warning: implicit declaration of function `getsize'
dev2gif.c:228: warning: implicit declaration of function `readsource'
dev2gif.c:228: error: `SRC_FRONT' undeclared (first use in this function)
dev2gif.c:228: error: (Each undeclared identifier is reported only once
dev2gif.c:228: error: for each function it appears in.)
dev2gif.c:229: warning: implicit declaration of function `lrectread'
dev2gif.c:131: warning: unused variable `ColorMap256'
make[2]: *** [dev2gif.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -march=pentium3 -O2 -pipe
-fomit-frame-pointer -fforce-addr -Wall -march=pentium3 -O2 -pipe
-fomit-frame-pointer -fforce-addr -MT dgif_lib.lo -MD -MP -MF .deps/dgif_lib.Tpo
-c dgif_lib.c -fPIC -DPIC -o .libs/dgif_lib.o
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -march=pentium3 -O2 -pipe
-fomit-frame-pointer -fforce-addr -Wall -march=pentium3 -O2 -pipe
-fomit-frame-pointer -fforce-addr -MT egif_lib.lo -MD -MP -MF .deps/egif_lib.Tpo
-c egif_lib.c -fPIC -DPIC -o .libs/egif_lib.o
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -march=pentium3 -O2 -pipe
-fomit-frame-pointer -fforce-addr -Wall -march=pentium3 -O2 -pipe
-fomit-frame-pointer -fforce-addr -MT dgif_lib.lo -MD -MP -MF .deps/dgif_lib.Tpo
-c dgif_lib.c -o dgif_lib.o >/dev/null 2>&1
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -march=pentium3 -O2 -pipe
-fomit-frame-pointer -fforce-addr -Wall -march=pentium3 -O2 -pipe
-fomit-frame-pointer -fforce-addr -MT egif_lib.lo -MD -MP -MF .deps/egif_lib.Tpo
-c egif_lib.c -o egif_lib.o >/dev/null 2>&1
make[2]: Leaving directory `/var/tmp/portage/giflib-4.1.3-r2/work/giflib-4.1.3/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/giflib-4.1.3-r2/work/giflib-4.1.3'
make: *** [all] Error 2
!!! ERROR: media-libs/giflib-4.1.3-r2 failed.
!!! Function src_compile, Line 33, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.
bigmichi1 ~ # emerge -pvDu world
These are the packages that I would merge, in order:
Calculating world dependencies ...done!
[ebuild U ] media-libs/giflib-4.1.3-r2 [4.1.3-r1] +X +opengl +rle* 0 kB
Total size of downloads: 0 kB
*** Bug 107578 has been marked as a duplicate of this bug. ***
*** Bug 107583 has been marked as a duplicate of this bug. ***
*** Bug 107586 has been marked as a duplicate of this bug. ***
*** Bug 107630 has been marked as a duplicate of this bug. ***