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

Bug 650204

Summary: =sys-devel/gettext-0.19.8.1 - ../gnulib-lib/.libs/libgettextlib.so: error: undefined reference to 'log10'
Product: Gentoo Linux Reporter: Walter Hüttenmeyer <walter.huettenmeyer>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: sys-devel:gettext-0.19.8.1:20180311-133218.log
/etc/portage/env/gettext.conf
build log of successful merge

Description Walter Hüttenmeyer 2018-03-11 13:36:37 UTC
Created attachment 523490 [details]
sys-devel:gettext-0.19.8.1:20180311-133218.log

sys-devel/gettext-0.19.8.1 is referencing log10, which is included in libm
This library is not passed to the linker, so it will fail.

Adding "-lm" to LDFLAGS fixes the issue, both on arm and amd64
Comment 1 Walter Hüttenmeyer 2018-03-11 13:38:13 UTC
Created attachment 523492 [details]
/etc/portage/env/gettext.conf

putting
sys-devel/gettext gettext.conf

in /etc/portage/package.env
fixes the issue.
Comment 2 Walter Hüttenmeyer 2018-03-11 13:42:34 UTC
Created attachment 523494 [details]
build log of successful merge

when creating the environment with attachment#523492 [details] it works.
Comment 3 Walter Hüttenmeyer 2018-03-11 13:44:56 UTC
solution found here: https://stackoverflow.com/questions/31403210/undefined-reference-to-log10-function
Comment 4 Walter Hüttenmeyer 2018-11-23 21:19:52 UTC
Weirdly enough, without any special treatment it works now....
no references to gettext in any package.env file, just works (tm)

Sorry for the single-case-fuss!