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

Bug 514748

Summary: media-sound/lash-0.5.4-r2 - ld: lash_synth-synth.o: undefined reference to symbol 'exp@@GLIBC_2.2.5'
Product: Gentoo Linux Reporter: Christian Compagnon <ccompagnon>
Component: Current packagesAssignee: Professional Audio Applications Maintainers <proaudio>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 372079    
Attachments: temp_build.zip
lash-0.5.4-underlinking.patch

Description Christian Compagnon 2014-06-24 01:04:34 UTC
Created attachment 379534 [details]
temp_build.zip

Hello,

Compiling media-sound/lash gives following error :

/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: lash_synth-synth.o: undefined reference to symbol 'exp@@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: note: 'exp@@GLIBC_2.2.5' is defined in DSO /lib64/libm.so.6 so try adding it to the linker command line
/lib64/libm.so.6: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[3]: *** [lash_synth] Error 1
make[3]: Leaving directory `/var/tmp/portage/media-sound/lash-0.5.4-r2/work/lash-0.5.4-abi_x86_64.amd64/clients/synth'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-sound/lash-0.5.4-r2/work/lash-0.5.4-abi_x86_64.amd64/clients'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-sound/lash-0.5.4-r2/work/lash-0.5.4-abi_x86_64.amd64'
make: *** [all] Error 2
 * ERROR: media-sound/lash-0.5.4-r2::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=media-sound/lash-0.5.4-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-sound/lash-0.5.4-r2::gentoo'`.
 * The complete build log is located at '/var/log/portage/media-sound:lash-0.5.4-r2:20140624-004704.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/media-sound/lash-0.5.4-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-sound/lash-0.5.4-r2/temp/environment'.
 * Working directory: '/var/tmp/portage/media-sound/lash-0.5.4-r2/work/lash-0.5.4-abi_x86_64.amd64'
 * S: '/var/tmp/portage/media-sound/lash-0.5.4-r2/work/lash-0.5.4'

This is corrected emerging package with LDFLAGS="-lm" (as explained here for same error on other package : http://forums.gentoo.org/viewtopic-t-989110-start-0.html 

Thank you!
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-06-24 01:15:44 UTC
Comment on attachment 379534 [details]
temp_build.zip

Please attach separate plain text files next time.
Comment 2 Ted Tanberry 2014-07-09 17:31:26 UTC
Created attachment 380500 [details, diff]
lash-0.5.4-underlinking.patch

Add this in the ebuild and -lm linking should work
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2014-07-09 18:11:32 UTC

*** This bug has been marked as a duplicate of bug 367589 ***