Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107551 - giflib-4.1.3-r2 fails to build with opengl USE flag
Summary: giflib-4.1.3-r2 fails to build with opengl USE flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
: 107578 107583 107586 107630 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-09-28 18:55 UTC by Jean-Francois Ostiguy
Modified: 2005-09-29 11:38 UTC (History)
11 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Francois Ostiguy 2005-09-28 18:55:50 UTC
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.
Comment 1 gs55897 2005-09-28 21:26:00 UTC
I was able to re-produce.

Adding "-opengl" is a working workaround also.
Comment 2 Ben Skeggs 2005-09-28 22:40:50 UTC
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".
Comment 3 Michael Cramer 2005-09-29 00:59:42 UTC
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
Comment 4 SpanKY gentoo-dev 2005-09-29 03:00:33 UTC
*** Bug 107578 has been marked as a duplicate of this bug. ***
Comment 5 SpanKY gentoo-dev 2005-09-29 03:01:50 UTC
fixed in cvs
Comment 6 Carsten Lohrke (RETIRED) gentoo-dev 2005-09-29 03:49:11 UTC
*** Bug 107583 has been marked as a duplicate of this bug. ***
Comment 7 Carsten Lohrke (RETIRED) gentoo-dev 2005-09-29 05:53:28 UTC
*** Bug 107586 has been marked as a duplicate of this bug. ***
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2005-09-29 11:38:25 UTC
*** Bug 107630 has been marked as a duplicate of this bug. ***