Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 446508 - =media-gfx/freewrl-1.22.13-r2: misses linkage with -lm
Summary: =media-gfx/freewrl-1.22.13-r2: misses linkage with -lm
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PATCH, PMASKED
Depends on:
Blocks:
 
Reported: 2012-12-08 19:21 UTC by Michał Górny
Modified: 2021-05-30 22:00 UTC (History)
1 user (show)

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


Attachments
The build log (20121208-191704.log,153.90 KB, text/plain)
2012-12-08 19:21 UTC, Michał Górny
Details
The proper fix (0001-Add-missing-lm-linkage-for-math-functions.patch,715 bytes, patch)
2012-12-08 19:34 UTC, Michał Górny
Details | Diff
Complete ebuild patch (0001-Fix-bug-446508-linkage-with-lm.patch,6.01 KB, patch)
2012-12-08 19:46 UTC, Michał Górny
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-12-08 19:21:50 UTC
Created attachment 331820 [details]
The build log

libtool: link: x86_64-pc-linux-gnu-gcc -O2 -D_GNU_SOURCE -march=core2 -O2 -pipe -O2 -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -o .libs/freewrl main.o options.o internal_version.o  ../../src/lib/.libs/libFreeWRL.so -lz -lpthread -lfreetype -lfontconfig -lmozjs185 -lplds4 -lplc4 -lnspr4 -lxml2 -lGLU -lGL -lXext -ljpeg -lpng15 -lcurl -lImlib2 -lSM -lICE -lXxf86vm -lXmu -lXaw7 -lXt -lX11 -lGLEW
../../src/lib/.libs/libFreeWRL.so: error: undefined reference to 'pow'
../../src/lib/.libs/libFreeWRL.so: error: undefined reference to 'sqrt'
../../src/lib/.libs/libFreeWRL.so: error: undefined reference to 'sincos'
../../src/lib/.libs/libFreeWRL.so: error: undefined reference to 'floor'
../../src/lib/.libs/libFreeWRL.so: error: undefined reference to 'sincosf'
../../src/lib/.libs/libFreeWRL.so: error: undefined reference to 'atan2'
../../src/lib/.libs/libFreeWRL.so: error: undefined reference to 'acos'
../../src/lib/.libs/libFreeWRL.so: error: undefined reference to 'sin'
../../src/lib/.libs/libFreeWRL.so: error: undefined reference to 'sqrtf'
../../src/lib/.libs/libFreeWRL.so: error: undefined reference to 'fmod'
../../src/lib/.libs/libFreeWRL.so: error: undefined reference to 'exp'
../../src/lib/.libs/libFreeWRL.so: error: undefined reference to 'atan'
../../src/lib/.libs/libFreeWRL.so: error: undefined reference to 'acosf'
../../src/lib/.libs/libFreeWRL.so: error: undefined reference to 'cos'
../../src/lib/.libs/libFreeWRL.so: error: undefined reference to 'tan'
../../src/lib/.libs/libFreeWRL.so: error: undefined reference to 'asin'
collect2: error: ld returned 1 exit status

Looks like missing '-lm' to me.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-12-08 19:34:59 UTC
Created attachment 331822 [details, diff]
The proper fix

This one fixes the issue in its root. However, it requires eautoreconf.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-12-08 19:46:51 UTC
Created attachment 331824 [details, diff]
Complete ebuild patch
Comment 3 Larry the Git Cow gentoo-dev 2021-05-01 21:24:09 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f3431f768e812182324d853402f51ef055ca0c8

commit 9f3431f768e812182324d853402f51ef055ca0c8
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2021-05-01 17:39:45 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2021-05-01 21:21:52 +0000

    profiles: Mask media-gfx/freewrl for removal
    
    Bug: https://bugs.gentoo.org/446508
    Bug: https://bugs.gentoo.org/678776
    Bug: https://bugs.gentoo.org/682600
    Bug: https://bugs.gentoo.org/787407
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 profiles/package.mask | 6 ++++++
 1 file changed, 6 insertions(+)
Comment 4 Larry the Git Cow gentoo-dev 2021-05-30 22:00:24 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1646ada2285f277f83042ea17a45a336f7e64172

commit 1646ada2285f277f83042ea17a45a336f7e64172
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2021-05-30 22:00:04 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2021-05-30 22:00:04 +0000

    media-gfx/freewrl: Remove last-rited package
    
    Bug: https://bugs.gentoo.org/446508
    Bug: https://bugs.gentoo.org/678776
    Bug: https://bugs.gentoo.org/682600
    Bug: https://bugs.gentoo.org/787407
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 media-gfx/freewrl/Manifest                         |   1 -
 .../freewrl/files/freewrl-3.0.0-fno-common.patch   |  11 --
 media-gfx/freewrl/freewrl-3.0.0-r1.ebuild          | 143 --------------------
 media-gfx/freewrl/freewrl-9999.ebuild              | 144 ---------------------
 media-gfx/freewrl/metadata.xml                     |  23 ----
 profiles/package.mask                              |   6 -
 6 files changed, 328 deletions(-)