Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 308889 - games-fps/tenebrae fails to build with libpng-1.4
Summary: games-fps/tenebrae fails to build with libpng-1.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: libpng-1.4
  Show dependency tree
 
Reported: 2010-03-10 20:03 UTC by Ai Locke Shinseiko (Wizzleby)
Modified: 2010-03-11 15:11 UTC (History)
1 user (show)

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 Ai Locke Shinseiko (Wizzleby) 2010-03-10 20:03:33 UTC
releasei386.glibc/glquake/sys_dosa.o: In function `Sys_LowFPPrecision':
/var/tmp/portage/games-fps/tenebrae-1.04/work/tenebrae_0/linux/..//sys_dosa.s:49: multiple definition of `Sys_LowFPPrecision'
releasei386.glibc/glquake/sys_linux.o:/var/tmp/portage/games-fps/tenebrae-1.04/work/tenebrae_0/linux/..//sys_linux.c:383: first defined here
releasei386.glibc/glquake/sys_dosa.o: In function `Sys_HighFPPrecision':
/var/tmp/portage/games-fps/tenebrae-1.04/work/tenebrae_0/linux/..//sys_dosa.s:55: multiple definition of `Sys_HighFPPrecision'
releasei386.glibc/glquake/sys_linux.o:/var/tmp/portage/games-fps/tenebrae-1.04/work/tenebrae_0/linux/..//sys_linux.c:379: first defined here
releasei386.glibc/glquake/gl_warp.o: In function `EasyTgaLoad':
/var/tmp/portage/games-fps/tenebrae-1.04/work/tenebrae_0/linux/..//gl_warp.c:1392: undefined reference to `png_set_gray_1_2_4_to_8'
releasei386.glibc/glquake/gl_warp.o: In function `LoadTextureInPlace':
/var/tmp/portage/games-fps/tenebrae-1.04/work/tenebrae_0/linux/..//gl_warp.c:825: undefined reference to `png_set_gray_1_2_4_to_8'
releasei386.glibc/glquake/gl_warp.o: In function `LoadTexture':
/var/tmp/portage/games-fps/tenebrae-1.04/work/tenebrae_0/linux/..//gl_warp.c:713: undefined reference to `png_set_gray_1_2_4_to_8'
collect2: ld returned 1 exit status
make[1]: *** [releasei386.glibc/bin/tenebrae.run] Error 1
make[1]: Leaving directory `/var/tmp/portage/games-fps/tenebrae-1.04/work/tenebrae_0/linux'
make: *** [build_release] Error 2
Comment 1 Ai Locke Shinseiko (Wizzleby) 2010-03-10 20:06:30 UTC
I cannot build test this as I do not currently have access to an x86 machine, but:
sed -i -e 's:png_set_gray_1_2_4_to_8:png_set_expand_gray_1_2_4_to_8:' gl_warp.c
should be run to convert the obsolete functions to working ones.
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2010-03-10 21:47:33 UTC
(In reply to comment #1)
> I cannot build test this as I do not currently have access to an x86 machine,
> but:
> sed -i -e 's:png_set_gray_1_2_4_to_8:png_set_expand_gray_1_2_4_to_8:' gl_warp.c
> should be run to convert the obsolete functions to working ones.
> 

missing :g in the sed there. but yes, this is the correct fix.
i've applied it in portage. however, this is still untested so leaving open.