Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 479822 - =games-fps/turtlearena-0.6.1: fails to build with >=media-libs/libjpeg-turbo-1.3.0-r2 (libjpeg.so.62 with jpeg_mem_{src,dest})
Summary: =games-fps/turtlearena-0.6.1: fails to build with >=media-libs/libjpeg-turbo-...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Julian Ospald
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-05 10:57 UTC by Julian Ospald
Modified: 2014-03-10 10:16 UTC (History)
1 user (show)

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


Attachments
turtlearena-0.6.1:20130805-115459.log (turtlearena-0.6.1:20130805-115459.log,103.95 KB, text/plain)
2013-08-05 10:57 UTC, Julian Ospald
Details
turtlearena-0.6.1.ebuild.patch (turtlearena-0.6.1.ebuild.patch,723 bytes, patch)
2013-08-05 12:09 UTC, Samuli Suominen (RETIRED)
Details | Diff
build.log after fixing jpeg version check (build.log,102.47 KB, text/plain)
2013-08-05 12:10 UTC, Samuli Suominen (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Julian Ospald 2013-08-05 10:57:00 UTC
Created attachment 355158 [details]
turtlearena-0.6.1:20130805-115459.log

code/renderer/tr_image_jpg.c:41:6: error: #error Need system libjpeg >= 80
 #    error Need system libjpeg >= 80
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2013-08-05 11:51:55 UTC
The version check is propably bogus because libjpeg-turbo-1.3.0-r2 has jpeg_mem_src() and jpeg_mem_dest() in libjpeg.so.62 ABI
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2013-08-05 12:09:11 UTC
Created attachment 355172 [details, diff]
turtlearena-0.6.1.ebuild.patch

Fix bogus version check.
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2013-08-05 12:10:24 UTC
Created attachment 355174 [details]
build.log after fixing jpeg version check

After fixing the bogus JPEG version check, the package fails to compile w/ freetype2

x86_64-pc-linux-gnu-gcc -fPIC -fvisibility=hidden -march=native -O2 -pipe -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes -DUSE_ICON -I/usr/include/freetype2  -I/usr/include/minizip  -I/usr/include/freetype2  -DDEFAULT_BASEDIR=\"/usr/share/games/turtlearena\" -DPRODUCT_VERSION=\"0.6.1_IOQ3ZTMr113\" -Wformat=2 -Wno-format-zero-length -Wformat-security -Wno-format-nonliteral -Wstrict-aliasing=2 -Wmissing-format-attribute -Wdisabled-optimization -Werror-implicit-function-declaration -DNOTRATEDM -DNOBLOOD -DIOQ3ZTM -DIOQ3ZTM_NO_COMPAT -DIOQ3ZTM_NO_TEAM_MODEL -DTA_HOLDSYS -DTA_ITEMSYS -DTA_WEAPSYS -DTA_PLAYERSYS -DTA_SUPPORTQ3 -DTA_ENTSYS -DTA_NPCSYS -DTA_PATHSYS -DTA_WEAPSYS_EX_COMPAT -DTA_BLOOM -DTA_SPLITVIEW -DTURTLEARENA -DTA_MISC -DTA_SP -DTA_WEAPSYS_EX -DTA_DATA -DNIGHTSMODE -DTA_GAME_MODELS  -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL  -I/usr/include/AL    -DUSE_OPENAL -DUSE_CURL -DUSE_CODEC_VORBIS -DNDEBUG  -o build/release-linux-x86_64/renderer/tr_image_png.o -c code/renderer/tr_image_png.c
In file included from code/renderer/tr_font.c:50:0:
/usr/include/freetype2/freetype/fterrors.h:151:34: error: expected ‘,’ or ‘}’ before ‘(’ token
           FT_ERRORDEF( FT_ERR_CAT( FT_ERR_PREFIX, e ), v, s )
                                  ^
/usr/include/freetype2/freetype/fterrors.h:133:33: note: in definition of macro ‘FT_ERRORDEF’
 #define FT_ERRORDEF( e, v, s )  e = v,
                                 ^
/usr/include/freetype2/freetype/fterrdef.h:34:3: note: in expansion of macro ‘FT_NOERRORDEF_’
   FT_NOERRORDEF_( Ok,                                        0x00, \
   ^
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2013-08-06 08:27:22 UTC
yeah, it was 2 different bugs. backported the freetype patch from ioquake git.

+  06 Aug 2013; Samuli Suominen <ssuominen@gentoo.org> turtlearena-0.6.1.ebuild,
+  +files/turtlearena-0.6.1-freetype.patch:
+  Fix building with libjpeg-turbo extended libjpeg.so.62 API with
+  jpeg_mem_src() and jpeg_mem_dest() wrt #479822 by Julian Ospald. Fix
+  freetype2 related build error wrt #479822#c3.