<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>107551</bug_id>
          
          <creation_ts>2005-09-28 18:55 0000</creation_ts>
          <short_desc>giflib-4.1.3-r2 fails to build with opengl USE flag</short_desc>
          <delta_ts>2005-09-29 11:38:25 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Library</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>jfostiguy@sbcglobal.net</reporter>
          <assigned_to>graphics@gentoo.org</assigned_to>
          <cc>bpacheco@acisa.es</cc>
    
    <cc>bruno@lustosa.net</cc>
    
    <cc>dominik@strehlke.info</cc>
    
    <cc>Heinz.Hombergs@unitybox.de</cc>
    
    <cc>henrik.teichmann@gmail.com</cc>
    
    <cc>kenyon@kenyonralph.com</cc>
    
    <cc>mbartoszkiewicz@gmail.com</cc>
    
    <cc>neil@digimed.co.uk</cc>
    
    <cc>portage@bigmichi1.dyndns.org</cc>
    
    <cc>sebastian@gentoo.org</cc>
    
    <cc>vapier@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>jfostiguy@sbcglobal.net</who>
            <bug_when>2005-09-28 18:55:50 0000</bug_when>
            <thetext>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&apos;:
dev2gif.c:136: error: redeclaration of &apos;ColorMap256&apos; with no linkage
dev2gif.c:131: error: previous declaration of &apos;ColorMap256&apos; was here
dev2gif.c:224: warning: implicit declaration of function `winset&apos;
dev2gif.c:225: warning: implicit declaration of function `getsize&apos;
dev2gif.c:228: warning: implicit declaration of function `readsource&apos;
dev2gif.c:228: error: `SRC_FRONT&apos; 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&apos;
dev2gif.c:131: warning: unused variable `ColorMap256&apos;
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 &quot;redeclation of ColorMap256&quot;, 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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>stgarf@gmail.com</who>
            <bug_when>2005-09-28 21:26:00 0000</bug_when>
            <thetext>I was able to re-produce.

Adding &quot;-opengl&quot; is a working workaround also.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>darktama@iinet.net.au</who>
            <bug_when>2005-09-28 22:40:50 0000</bug_when>
            <thetext>I don&apos;t think we should even support USE=&quot;opengl&quot; 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&apos;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&apos;d probably be less trouble to drop USE=&quot;opengl&quot;.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>portage@bigmichi1.dyndns.org</who>
            <bug_when>2005-09-29 00:59:42 0000</bug_when>
            <thetext>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 &quot;.deps/egif_lib.Tpo&quot; \
  -c -o egif_lib.lo `test -f &apos;egif_lib.c&apos; || echo &apos;./&apos;`egif_lib.c; \
then mv -f &quot;.deps/egif_lib.Tpo&quot; &quot;.deps/egif_lib.Plo&quot;; \
else rm -f &quot;.deps/egif_lib.Tpo&quot;; exit 1; \
fi
dev2gif.c:29:19: gl/gl.h: No such file or directory
dev2gif.c: In function `DumpScreen2Gif&apos;:
dev2gif.c:136: error: redeclaration of &apos;ColorMap256&apos; with no linkage
dev2gif.c:131: error: previous declaration of &apos;ColorMap256&apos; was here
dev2gif.c:224: warning: implicit declaration of function `winset&apos;
dev2gif.c:225: warning: implicit declaration of function `getsize&apos;
dev2gif.c:228: warning: implicit declaration of function `readsource&apos;
dev2gif.c:228: error: `SRC_FRONT&apos; 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&apos;
dev2gif.c:131: warning: unused variable `ColorMap256&apos;
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 &gt;/dev/null 2&gt;&amp;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 &gt;/dev/null 2&gt;&amp;1
make[2]: Leaving directory `/var/tmp/portage/giflib-4.1.3-r2/work/giflib-4.1.3/lib&apos;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/giflib-4.1.3-r2/work/giflib-4.1.3&apos;
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</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2005-09-29 03:00:33 0000</bug_when>
            <thetext>*** Bug 107578 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2005-09-29 03:01:50 0000</bug_when>
            <thetext>fixed in cvs</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>carlo@gentoo.org</who>
            <bug_when>2005-09-29 03:49:11 0000</bug_when>
            <thetext>*** Bug 107583 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>carlo@gentoo.org</who>
            <bug_when>2005-09-29 05:53:28 0000</bug_when>
            <thetext>*** Bug 107586 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2005-09-29 11:38:25 0000</bug_when>
            <thetext>*** Bug 107630 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
      
    </bug>

</bugzilla>