src/game/inv_shared.c: In function ‘INVSH_PackAmmoAndWeapon’: src/game/inv_shared.c:940: warning: array subscript is below array bounds * [GAM] ... linking (-lm ) release-linux-gnu-x86_64/client/renderer/r_image.o: In function `R_LoadPNG': /var/tmp/portage/games-strategy/ufo-ai-2.2.1/work/ufoai-2.2.1-source/src/renderer/r_image.c:210: undefined reference to `png_check_sig' /var/tmp/portage/games-strategy/ufo-ai-2.2.1/work/ufoai-2.2.1-source/src/renderer/r_image.c:257: undefined reference to `png_set_gray_1_2_4_to_8' collect2: ld returned 1 exit status make: *** [ufo] Error 1
Created attachment 223031 [details, diff] ufo-ai-2.2.1-libpng14.patch works for libpng12 and libpng14
+ 10 Mar 2010; Samuli Suominen <ssuominen@gentoo.org> ufo-ai-2.2.1.ebuild, + +files/ufo-ai-2.2.1-libpng14.patch: + Fix building with libpng14 wrt #308863 by Locke Shinseiko.
Created attachment 223033 [details, diff] ufo-ai-2.2.1-libpng14.patch Upstream fixed this, I had the semantics reversed
In fact upstream has moved on to using SDL_image and all this is void in trunk. But yeah, the temp. fix is to reverse it