Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 505794 - games-arcade/vor-0.5.5 - dust.c:24: error: undefined reference to 'sqrt'
Summary: games-arcade/vor-0.5.5 - dust.c:24: error: undefined reference to 'sqrt'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
: 506254 (view as bug list)
Depends on:
Blocks: underlinking
  Show dependency tree
 
Reported: 2014-03-25 16:57 UTC by Frank Steinmetzger
Modified: 2014-03-30 22:31 UTC (History)
1 user (show)

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


Attachments
vor-0.5.5-underlinking.patch (vor-0.5.5-underlinking.patch,720 bytes, patch)
2014-03-29 08:07 UTC, Ted Tanberry
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Steinmetzger 2014-03-25 16:57:36 UTC
Another package affected by the underlinking problem. My emerge --info and possible solution can be found in bug #505788.

Reproducible: Always




Package needs to explicitly link the m library.
Comment 1 Ted Tanberry 2014-03-29 08:06:53 UTC
--- vor-0.5.5.ebuild
+++ vor-0.5.5.ebuild
@@ -3,7 +3,7 @@
 # $Header: /var/cvsroot/gentoo-x86/games-arcade/vor/vor-0.5.5.ebuild,v 1.4 2013/02/18 20:17:57 ago Exp $

 EAPI=5
-inherit eutils games
+inherit eutils games autotools

 DESCRIPTION="Variations on Rockdodger: Dodge the rocks until you die"
 HOMEPAGE="http://jasonwoof.org/vor"
@@ -19,6 +19,11 @@
 	media-libs/sdl-mixer[mod]"
 RDEPEND="${DEPEND}"

+src_prepare() {
+	epatch "${FILESDIR}"/${P}-underlinking.patch
+	eautoreconf
+}
+
 src_install() {
 	dodir "${GAMES_BINDIR}"
 	DOCS="README* todo" default
Comment 2 Ted Tanberry 2014-03-29 08:07:44 UTC
Created attachment 373796 [details, diff]
vor-0.5.5-underlinking.patch
Comment 3 Ted Tanberry 2014-03-29 08:09:16 UTC
What's odd is that the -lm underlinking was explicitly patched in 0.5.4, but was dropped in 0.5.5 without checking whether the build system was fixed.
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2014-03-30 22:31:35 UTC
*** Bug 506254 has been marked as a duplicate of this bug. ***