<?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>107497</bug_id>
          
          <creation_ts>2005-09-28 05:32 0000</creation_ts>
          <short_desc>media-libs/giflib-4.1.3-r1 fails to compile</short_desc>
          <delta_ts>2005-10-02 13:42:09 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>
          <dependson>107346</dependson>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>gentoo@valli.org</reporter>
          <assigned_to>graphics@gentoo.org</assigned_to>
          <cc>evilsailor9@gmail.com</cc>
    
    <cc>vapier@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>gentoo@valli.org</who>
            <bug_when>2005-09-28 05:32:29 0000</bug_when>
            <thetext>Can&apos;t (re-)emerge media-libs/giflib-4.1.3-r1
Compilation aborts with following errors:
...
gif2rle.c:38:59: rle.h: No such file or directory
rle2gif.c:38:59: rle.h: No such file or directory
rle2gif.c: In function `main&apos;:
rle2gif.c:89: warning: unused variable `i&apos;
rle2gif.c:89: warning: unused variable `j&apos;
rle2gif.c: In function `LoadRle&apos;:
rle2gif.c:152: error: `rle_hdr&apos; undeclared (first use in this function)
rle2gif.c:152: error: (Each undeclared identifier is reported only once
rle2gif.c:152: error: for each function it appears in.)
rle2gif.c:152: error: parse error before &quot;in_hdr&quot;
rle2gif.c:153: error: `rle_pixel&apos; undeclared (first use in this function)
rle2gif.c:153: error: `rows&apos; undeclared (first use in this function)
rle2gif.c:153: error: `ptr&apos; undeclared (first use in this function)
rle2gif.c:153: warning: left-hand operand of comma expression has no effect
rle2gif.c:156: error: `in_hdr&apos; undeclared (first use in this function)
rle2gif.c:162: warning: implicit declaration of function `rle_get_setup_ok&apos;
rle2gif.c:171: warning: implicit declaration of function `rle_row_alloc&apos;
rle2gif.c:182: warning: implicit declaration of function `rle_getrow&apos;
rle2gif.c:153: warning: statement with no effect
make[2]: *** [rle2gif.o] Error 1
make[2]: *** Waiting for unfinished jobs....
gif2rle.c: In function `DumpScreen2Rle&apos;:
gif2rle.c:245: error: `rle_pixel&apos; undeclared (first use in this function)
gif2rle.c:245: error: (Each undeclared identifier is reported only once
gif2rle.c:245: error: for each function it appears in.)
gif2rle.c:245: error: `rows&apos; undeclared (first use in this function)
gif2rle.c:250: warning: implicit declaration of function `RLE_SET_BIT&apos;
gif2rle.c:250: error: `rle_dflt_hdr&apos; undeclared (first use in this function)
gif2rle.c:250: error: `RLE_ALPHA&apos; undeclared (first use in this function)
gif2rle.c:258: warning: implicit declaration of function `rle_putcom&apos;
gif2rle.c:259: warning: implicit declaration of function `rle_put_setup&apos;
gif2rle.c:262: error: parse error before &apos;)&apos; token
gif2rle.c:262: error: parse error before &apos;)&apos; token
gif2rle.c:243: warning: unused variable `j&apos;
gif2rle.c:246: warning: unused variable `GifRow&apos;
gif2rle.c:248: warning: unused variable `ColorMapEntry&apos;
gif2rle.c: At top level:
gif2rle.c:266: error: parse error before &quot;if&quot;
gif2rle.c:274: error: parse error before string constant
gif2rle.c:274: warning: type defaults to `int&apos; in declaration of `GifQprintf&apos;
gif2rle.c:274: error: conflicting types for &apos;GifQprintf&apos;
../lib/gif_lib.h:226: error: previous declaration of &apos;GifQprintf&apos; was here
gif2rle.c:274: error: conflicting types for &apos;GifQprintf&apos;
../lib/gif_lib.h:226: error: previous declaration of &apos;GifQprintf&apos; was here
gif2rle.c:274: warning: data definition has no type or storage class
gif2rle.c:277: error: `j&apos; undeclared here (not in a function)
gif2rle.c:277: warning: type defaults to `int&apos; in declaration of `rows&apos;
gif2rle.c:277: error: `ColorMapEntry&apos; undeclared here (not in a function)
gif2rle.c:277: warning: data definition has no type or storage class
gif2rle.c:278: warning: type defaults to `int&apos; in declaration of `rows&apos;
gif2rle.c:278: warning: data definition has no type or storage class
gif2rle.c:279: warning: type defaults to `int&apos; in declaration of `rows&apos;
gif2rle.c:279: warning: data definition has no type or storage class
gif2rle.c:280: error: parse error before &apos;}&apos; token
gif2rle.c:281: error: parse error before &apos;&amp;&apos; token
gif2rle.c:281: warning: type defaults to `int&apos; in declaration of `rle_putrow&apos;
gif2rle.c:281: warning: data definition has no type or storage class
gif2rle.c:284: error: parse error before &apos;&amp;&apos; token
gif2rle.c:284: warning: type defaults to `int&apos; in declaration of `rle_puteof&apos;
gif2rle.c:284: warning: data definition has no type or storage class
gif2rle.c:277: error: storage size of `rows&apos; isn&apos;t known
gif2rle.c:278: error: storage size of `rows&apos; isn&apos;t known
gif2rle.c:279: error: storage size of `rows&apos; isn&apos;t known
make[2]: *** [gif2rle.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/giflib-4.1.3-r1/work/giflib-4.1.3/util&apos;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/giflib-4.1.3-r1/work/giflib-4.1.3&apos;
make: *** [all] Error 2


Seems that the headerfile &quot;rle.h&quot; is missing.
I found one in /usr/include/urt/rle.h (part of media-libs/urt-3.1b).


Reproducible: Always
Steps to Reproduce:
1. emerge media-libs/giflib
2.
3.

Actual Results:  
emerge fails

Expected Results:  
Should compile normally.

Portage 2.0.52-r1 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r1, 2.6.11.5
 i686)
=================================================================
System uname: 2.6.11.5 i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.13
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS=&quot;x86 ~x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-march=pentium3 -O3 -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/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.4/env /usr/kd
e/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xk
b /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-march=pentium3 -O3 -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoconfig buildpkg ccache distcc distlocks keeptemp keepwork noauto n
oclean notitles sandbox sfperms strict userpriv usersandbox&quot;
GENTOO_MIRRORS=&quot;http://gentoo.inode.at http://sunsite.cnlab-switch.ch/ftp/mirror
/gentoo http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo http://gentoo.orego
nstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo&quot;
LANG=&quot;POSIX&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;x86 X alsa apache2 apm arts avi berkdb bitmap-fonts cdr crypt cups curl dba
 eds emboss encode esd foomaticdb fortran gd gdbm gif gpm gstreamer gtk gtk2 ima
gemagick imlib ipv6 java jpeg junit ldap libg++ libwww mad mikmod motif mozilla 
mp3 mpeg ncurses nls ogg oggvorbis opengl oss pam pdflib perl png postgres pytho
n qt quicktime readline samba sasl sdl session slang spell ssl svga tcpd tiff tr
uetype truetype-fonts type1-fonts vorbis wmf xml2 xmms xv zlib userland_GNU kern
el_linux elibc_glibc&quot;
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2005-09-28 06:05:14 0000</bug_when>
            <thetext>It this ebuild maintained by graphics herd? And why is it missing metadata.xml?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vanquirius@gentoo.org</who>
            <bug_when>2005-09-28 14:06:48 0000</bug_when>
            <thetext>Created an attachment (id=69437)
giflib-4.1.3-r1.ebuild.diff

This patch should allow it to compile.
The bad news is that it will require some keywording in media-libs/urt, so if
anyone has a better plan...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vanquirius@gentoo.org</who>
            <bug_when>2005-09-28 15:13:15 0000</bug_when>
            <thetext>By the way, it seems libungif has the same problem.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2005-09-28 15:19:05 0000</bug_when>
            <thetext>(In reply to comment #3)
&gt; By the way, it seems libungif has the same problem.

Best solved by moving it to /dev/null finally...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2005-09-28 16:42:20 0000</bug_when>
            <thetext>libungif is dead, it shouldnt be updated, it should be punted from portage</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2005-09-28 17:10:43 0000</bug_when>
            <thetext>seems giflib has a whole bunch of undeclared dependencies ...

fixed in giflib-4.1.3-r2 / urt-3.1b-r1</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2005-10-02 13:37:08 0000</bug_when>
            <thetext>*** Bug 107926 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>evilsailor9@gmail.com</who>
            <bug_when>2005-10-02 13:42:09 0000</bug_when>
            <thetext>After further looking into this bug, it appears that the line causing the
problems is &apos;#include &quot;rle.h&quot;&apos; which of course isn&apos;t right.  When I change it to
&apos;#include &lt;urt/rle.h&gt;&apos; it works but then barfs on rle2gif.c which requires the
same fix.  When I make these two small changes, it compiles.  I&apos;m too new to
portage to know how to make a patch out of this, as every time I re-emerge, it
loses my changes...

By the way, why is this RESOLVED FIXED if the problem still occurs?  Maybe I&apos;m
too new to the bug system, but this seems like it should be kept open until its
ACTUALLY fixed.  I just reported a new bug since I could&apos;t find this one.  I
think that I was searching only open bugs, which would explain why I couldn&apos;t
find this one...</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>69437</attachid>
            <date>2005-09-28 14:06 0000</date>
            <desc>giflib-4.1.3-r1.ebuild.diff</desc>
            <filename>giflib-4.1.3-r1.ebuild.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">SW5kZXg6IGdpZmxpYi00LjEuMy1yMS5lYnVpbGQKPT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQpSQ1MgZmlsZTogL3Zhci9j
dnNyb290L2dlbnRvby14ODYvbWVkaWEtbGlicy9naWZsaWIvZ2lmbGliLTQuMS4zLXIxLmVidWls
ZCx2CnJldHJpZXZpbmcgcmV2aXNpb24gMS4zCmRpZmYgLXUgLWIgLUIgLXIxLjMgZ2lmbGliLTQu
MS4zLXIxLmVidWlsZAotLS0gZ2lmbGliLTQuMS4zLXIxLmVidWlsZAkyMyBKdWwgMjAwNSAwODox
NDo0OSAtMDAwMAkxLjMKKysrIGdpZmxpYi00LjEuMy1yMS5lYnVpbGQJMjggU2VwIDIwMDUgMjE6
MDQ6NTYgLTAwMDAKQEAgLTE0LDExICsxNCwxMyBAQAogSVVTRT0iWCIKIAogREVQRU5EPSJYPyAo
IHZpcnR1YWwveDExICkKLQkhbWVkaWEtbGlicy9saWJ1bmdpZiIKKwkhbWVkaWEtbGlicy9saWJ1
bmdpZgorCT49bWVkaWEtbGlicy91cnQtMy4xYiIKIAogc3JjX3VucGFjaygpIHsKIAl1bnBhY2sg
JHtBfQogCWVwdW50X2N4eAorCXNlZCAtaSAtZSAnczoicmxlLmgiOjx1cnQvcmxlLmg+OmcnICIk
e1N9Ii91dGlsL3tybGUyZ2lmLGdpZjJybGV9LmMgfHwgZGllICJzZWQiCiB9CiAKIHNyY19jb21w
aWxlKCkgewo=
</data>        

          </attachment>
    </bug>

</bugzilla>