Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 306345 - games-fps/quake2-icculus-0.16.1-r1 build error with media-libs/jpeg-8
Summary: games-fps/quake2-icculus-0.16.1-r1 build error with media-libs/jpeg-8
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-22 12:28 UTC by Alexander Tsoy
Modified: 2010-02-22 12:57 UTC (History)
0 users

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 Alexander Tsoy 2010-02-22 12:28:36 UTC
quake2-icculus build problem after updating from jpeg-7 to jpeg-8.


src/ref_candygl/gl_image.c:779: error: conflicting types for ‘jpeg_mem_src’
/usr/include/jpeglib.h:959: error: previous declaration of ‘jpeg_mem_src’ was here
src/ref_candygl/gl_image.c: In function ‘jpeg_mem_src’:
src/ref_candygl/gl_image.c:783: warning: assignment from incompatible pointer type
src/ref_candygl/gl_image.c: In function ‘GL_FreeUnusedImages’:
src/ref_candygl/gl_image.c:1789: warning: pointer targets in passing argument 2 of ‘qglDeleteTextures’ differ in signedness
src/ref_candygl/gl_image.c: In function ‘GL_ShutdownImages’:
src/ref_candygl/gl_image.c:1944: warning: pointer targets in passing argument 2 of ‘qglDeleteTextures’ differ in signedness
make[1]: *** [releasei386/ref_gl/gl_image.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/games-fps/quake2-icculus-0.16.1-r1/work/quake2-r0.16.1'
make: *** [build_release] Error 2
 * ERROR: games-fps/quake2-icculus-0.16.1-r1 failed:
 *   make failed
 * 
 * Call stack:
 *     ebuild.sh, line  54:  Called src_compile
 *   environment, line 2615:  Called die
 * The specific snippet of code:
 *           emake -j1 build_release BUILD_SDLQUAKE2=$(yesno sdl) BUILD_SVGA=$(yesno svga) BUILD_X11=$(yesno X) BUILD_GLX=$(yesno opengl) BUILD_SDL=$(yesno sdl) BUILD_SDLGL=$(yesno sdl opengl) BUILD_CTFDLL=YES BUILD_XATRIX=$(yesno xatrix) BUILD_ROGUE=$(yesno rogue) BUILD_JOYSTICK=$(yesno joystick) BUILD_DEDICATED=$(yesno dedicated) BUILD_AA=$(yesno aalib) BUILD_QMAX=${BUILD_QMAX} HAVE_IPV6=$(yesno ipv6) BUILD_ARTS=NO BUILD_ALSA=NO SDLDIR=/usr/lib DEFAULT_BASEDIR="${GAMES_DATADIR}/quake2" DEFAULT_LIBDIR="$(games_get_libdir)/${PN}${libsuffix}" OPT_CFLAGS="${CFLAGS}" CC="$(tc-getCC)" || die "make failed";
 * 
 * If you need support, post the output of 'emerge --info =games-fps/quake2-icculus-0.16.1-r1',
 * the complete build log and the output of 'emerge -pqv =games-fps/quake2-icculus-0.16.1-r1'.
 * The complete build log is located at '/var/tmp/portage/games-fps/quake2-icculus-0.16.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-fps/quake2-icculus-0.16.1-r1/temp/environment'.
 * S: '/var/tmp/portage/games-fps/quake2-icculus-0.16.1-r1/work/quake2-r0.16.1'

Reproducible: Always

Steps to Reproduce:
1. update to media-libs/jpeg-8
2. try to build quake2-icculus
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2010-02-22 12:57:40 UTC
+  22 Feb 2010; Samuli Suominen <ssuominen@gentoo.org>
+  quake2-icculus-0.16.1-r1.ebuild:
+  Fix building with jpeg-8 (conflicting type of jpeg_mem_src) wrt #306345,
+  thanks to Alexander Tsoy for reporting.