Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107497 - media-libs/giflib-4.1.3-r1 fails to compile
Summary: media-libs/giflib-4.1.3-r1 fails to compile
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:
: 107926 (view as bug list)
Depends on: 107346
Blocks:
  Show dependency tree
 
Reported: 2005-09-28 05:32 UTC by valli
Modified: 2005-10-02 13:42 UTC (History)
2 users (show)

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


Attachments
giflib-4.1.3-r1.ebuild.diff (giflib-4.1.3-r1.ebuild.diff,635 bytes, patch)
2005-09-28 14:06 UTC, Marcelo Goes (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description valli 2005-09-28 05:32:29 UTC
Can'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':
rle2gif.c:89: warning: unused variable `i'
rle2gif.c:89: warning: unused variable `j'
rle2gif.c: In function `LoadRle':
rle2gif.c:152: error: `rle_hdr' 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 "in_hdr"
rle2gif.c:153: error: `rle_pixel' undeclared (first use in this function)
rle2gif.c:153: error: `rows' undeclared (first use in this function)
rle2gif.c:153: error: `ptr' 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' undeclared (first use in this function)
rle2gif.c:162: warning: implicit declaration of function `rle_get_setup_ok'
rle2gif.c:171: warning: implicit declaration of function `rle_row_alloc'
rle2gif.c:182: warning: implicit declaration of function `rle_getrow'
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':
gif2rle.c:245: error: `rle_pixel' 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' undeclared (first use in this function)
gif2rle.c:250: warning: implicit declaration of function `RLE_SET_BIT'
gif2rle.c:250: error: `rle_dflt_hdr' undeclared (first use in this function)
gif2rle.c:250: error: `RLE_ALPHA' undeclared (first use in this function)
gif2rle.c:258: warning: implicit declaration of function `rle_putcom'
gif2rle.c:259: warning: implicit declaration of function `rle_put_setup'
gif2rle.c:262: error: parse error before ')' token
gif2rle.c:262: error: parse error before ')' token
gif2rle.c:243: warning: unused variable `j'
gif2rle.c:246: warning: unused variable `GifRow'
gif2rle.c:248: warning: unused variable `ColorMapEntry'
gif2rle.c: At top level:
gif2rle.c:266: error: parse error before "if"
gif2rle.c:274: error: parse error before string constant
gif2rle.c:274: warning: type defaults to `int' in declaration of `GifQprintf'
gif2rle.c:274: error: conflicting types for 'GifQprintf'
../lib/gif_lib.h:226: error: previous declaration of 'GifQprintf' was here
gif2rle.c:274: error: conflicting types for 'GifQprintf'
../lib/gif_lib.h:226: error: previous declaration of 'GifQprintf' was here
gif2rle.c:274: warning: data definition has no type or storage class
gif2rle.c:277: error: `j' undeclared here (not in a function)
gif2rle.c:277: warning: type defaults to `int' in declaration of `rows'
gif2rle.c:277: error: `ColorMapEntry' 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' in declaration of `rows'
gif2rle.c:278: warning: data definition has no type or storage class
gif2rle.c:279: warning: type defaults to `int' in declaration of `rows'
gif2rle.c:279: warning: data definition has no type or storage class
gif2rle.c:280: error: parse error before '}' token
gif2rle.c:281: error: parse error before '&' token
gif2rle.c:281: warning: type defaults to `int' in declaration of `rle_putrow'
gif2rle.c:281: warning: data definition has no type or storage class
gif2rle.c:284: error: parse error before '&' token
gif2rle.c:284: warning: type defaults to `int' in declaration of `rle_puteof'
gif2rle.c:284: warning: data definition has no type or storage class
gif2rle.c:277: error: storage size of `rows' isn't known
gif2rle.c:278: error: storage size of `rows' isn't known
gif2rle.c:279: error: storage size of `rows' isn'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'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/giflib-4.1.3-r1/work/giflib-4.1.3'
make: *** [all] Error 2


Seems that the headerfile "rle.h" 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="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/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"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache distcc distlocks keeptemp keepwork noauto n
oclean notitles sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="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"
LANG="POSIX"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="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"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-09-28 06:05:14 UTC
It this ebuild maintained by graphics herd? And why is it missing metadata.xml?
Comment 2 Marcelo Goes (RETIRED) gentoo-dev 2005-09-28 14:06:48 UTC
Created attachment 69437 [details, diff]
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...
Comment 3 Marcelo Goes (RETIRED) gentoo-dev 2005-09-28 15:13:15 UTC
By the way, it seems libungif has the same problem.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-09-28 15:19:05 UTC
(In reply to comment #3)
> By the way, it seems libungif has the same problem.

Best solved by moving it to /dev/null finally...
Comment 5 SpanKY gentoo-dev 2005-09-28 16:42:20 UTC
libungif is dead, it shouldnt be updated, it should be punted from portage
Comment 6 SpanKY gentoo-dev 2005-09-28 17:10:43 UTC
seems giflib has a whole bunch of undeclared dependencies ...

fixed in giflib-4.1.3-r2 / urt-3.1b-r1
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2005-10-02 13:37:08 UTC
*** Bug 107926 has been marked as a duplicate of this bug. ***
Comment 8 Sean Rae 2005-10-02 13:42:09 UTC
After further looking into this bug, it appears that the line causing the
problems is '#include "rle.h"' which of course isn't right.  When I change it to
'#include <urt/rle.h>' it works but then barfs on rle2gif.c which requires the
same fix.  When I make these two small changes, it compiles.  I'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'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't find this one.  I
think that I was searching only open bugs, which would explain why I couldn't
find this one...