Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 676068 - games-strategy/liquidwar-5.6.4-r2 : distor.c:(.text+<snip>): undefined reference to fsqrt
Summary: games-strategy/liquidwar-5.6.4-r2 : distor.c:(.text+<snip>): undefined refere...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-22 20:09 UTC by Toralf Förster
Modified: 2021-03-17 05:56 UTC (History)
6 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.21 KB, text/plain)
2019-01-22 20:09 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,130.22 KB, text/plain)
2019-01-22 20:09 UTC, Toralf Förster
Details
environment (environment,26.36 KB, text/plain)
2019-01-22 20:09 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,19.08 KB, application/x-bzip)
2019-01-22 20:09 UTC, Toralf Förster
Details
games-strategy:liquidwar-5.6.4-r2:20190122-083523.log (games-strategy:liquidwar-5.6.4-r2:20190122-083523.log,24.90 KB, text/plain)
2019-01-22 20:09 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,4.91 KB, application/x-bzip)
2019-01-22 20:09 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,12.37 KB, application/x-bzip)
2019-01-22 20:09 UTC, Toralf Förster
Details
Change fsqrt() to sqrtf(), etc. (liquidwar-5.6.4-math-fns.patch,2.49 KB, patch)
2020-09-14 05:42 UTC, Khumba
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.