Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 676068

Summary: games-strategy/liquidwar-5.6.4-r2 : distor.c:(.text+<snip>): undefined reference to fsqrt
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Games <games>
Status: CONFIRMED ---    
Severity: normal CC: bog, luke, main.haarp, nick.cardullo, sam, skruppy+gentoo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
games-strategy:liquidwar-5.6.4-r2:20190122-083523.log
logs.tbz2
temp.tbz2
Change fsqrt() to sqrtf(), etc.

Description Toralf Förster gentoo-dev 2019-01-22 20:09:23 UTC
random.c:(.text+0x48): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
distor.o: In function `create_wave_line.constprop.0':
distor.c:(.text+0xc6): undefined reference to `fsqrt'
distor.c:(.text+0xcf): undefined reference to `fsqrt'
distor.c:(.text+0x137): undefined reference to `fsin'
distor.c:(.text+0x146): undefined reference to `fcos'

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-hardened_20190119-210304

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-8.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.6
  [3]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems)
  [3]   ruby26 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.32.0 *



emerge -qpvO games-strategy/liquidwar
[ebuild  N    ] games-strategy/liquidwar-5.6.4-r2
Comment 1 Toralf Förster gentoo-dev 2019-01-22 20:09:26 UTC
Created attachment 562536 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-01-22 20:09:29 UTC
Created attachment 562538 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2019-01-22 20:09:31 UTC
Created attachment 562540 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2019-01-22 20:09:34 UTC
Created attachment 562542 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2019-01-22 20:09:37 UTC
Created attachment 562544 [details]
games-strategy:liquidwar-5.6.4-r2:20190122-083523.log
Comment 6 Toralf Förster gentoo-dev 2019-01-22 20:09:40 UTC
Created attachment 562546 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2019-01-22 20:09:42 UTC
Created attachment 562548 [details]
temp.tbz2
Comment 8 Khumba 2020-09-14 05:42:53 UTC
Created attachment 660066 [details, diff]
Change fsqrt() to sqrtf(), etc.

Replacing all occurrences of

fsqrt -> sqrtf
fsin -> si
fcos -> cosf

with the attached patch allows the game to build and run, but the game's math still seems off.  Cells take minutes to accumulate any amount of damage, so the population has barely changed at the end of a 4-minute match.  It's not supposed to be this slow.