Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35167 - openglad-0.98 - build fails due to unset return codes in util/gladpack.c
Summary: openglad-0.98 - build fails due to unset return codes in util/gladpack.c
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-05 17:39 UTC by Paul Taylor
Modified: 2003-12-31 11:03 UTC (History)
0 users

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


Attachments
Suggested patch for util/gladpack.c (openglad-0.98-gladpack.c.patch,516 bytes, patch)
2003-12-05 17:47 UTC, Paul Taylor
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Taylor 2003-12-05 17:39:58 UTC
As part of the build process for openglad-0.98, it uses the gladpack utility to
compress the pictures and scenery files.  This works correctly, but make fails
with "Error 63" and "Error 33" respectively.

A look at the util/gladpack.c shows that the calls to pack() and unpack() in
main() do not set the return value.  Changing the calls to "return pack(...)"
and "return unpack(...)" fix this problem.

(A patch doing exactly this will follow shortly.)

Reproducible: Always
Steps to Reproduce:
1. emerge openglad


Actual Results:  
[snip]

make[1]: Entering directory `/var/tmp/portage/openglad-0.98/work/openglad-0.98'
cd pix; ../util/gladpack p ../graphics.001 *.pix
Creating packfile ../graphics.001...
cd scen; ../util/gladpack p ../levels.001 *.fss
Creating packfile ../levels.001...
make[1]: *** [levels.001] Error 63
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [graphics.001] Error 33
make[1]: Leaving directory `/var/tmp/portage/openglad-0.98/work/openglad-0.98'
make: *** [all-recursive] Error 1

!!! ERROR: games-rpg/openglad-0.98 failed.
!!! Function src_compile, Line 22, Exitcode 2
!!! emake failed



"emerge info" details:

Portage 2.0.49-r18 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9,
2.6.0-test11-gentoo-r1)
=================================================================
System uname: 2.6.0-test11-gentoo-r1 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.4.3.12
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -Os -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -Os -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://public.planetmirror.com/pub/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X aalib alsa apm arts avi berkdb cdr crypt cups encode esd foomatic-db
foomaticdb gdbm gif gpm gtk gtk2 imlib java jpeg kde libg++ libwww mad mikmod
mmx motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png ppds
python qt quicktime readline sdl slang spell sse ssl svga tcpd truetype x86 xml2
xmms xv zlib"
Comment 1 Paul Taylor 2003-12-05 17:47:26 UTC
Created attachment 21775 [details, diff]
Suggested patch for util/gladpack.c
Comment 2 SpanKY gentoo-dev 2003-12-31 11:03:19 UTC
added to cvs, thanks