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

Bug 493204

Summary: app-accessibility/speech-tools-2.1-r2 - ../lib/libestbase.so: undefined reference to `snd_pcm_close'
Product: Gentoo Linux Reporter: Jaakko Perttilä <jormangeud>
Component: Current packagesAssignee: Jesus Rivero (RETIRED) <neurogeek>
Status: RESOLVED FIXED    
Severity: normal CC: accessibility, sound
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 372079, 510600    
Attachments: include alsa in oslibs

Description Jaakko Perttilä 2013-12-03 10:21:20 UTC
This may be happening only with paludis, I can reproduce the error on two machines. Current alsa-lib is media-libs/alsa-lib-1.0.27.2::gentoo


Reproducible: Always

Actual Results:  

x86_64-pc-linux-gnu-g++ -Wall -lncurses -Wl,-O1 -Wl,--as-needed -ldl -o ch_lab ch_lab_main.o -L../lib -lestools -L../lib -lestbase -L../lib -leststring -lncurses -lasound -lncurses -Wl,-O1 -Wl,--as-needed -ldl -lm -lstdc++ -lgcc
../lib/libestbase.so: undefined reference to `snd_pcm_close'
../lib/libestbase.so: undefined reference to `snd_pcm_open'
../lib/libestbase.so: undefined reference to `snd_pcm_state'
../lib/libestbase.so: undefined reference to `snd_pcm_drain'
../lib/libestbase.so: undefined reference to `snd_pcm_hw_params'
../lib/libestbase.so: undefined reference to `snd_pcm_wait'
../lib/libestbase.so: undefined reference to `snd_pcm_hw_params_set_format'
../lib/libestbase.so: undefined reference to `snd_pcm_prepare'
../lib/libestbase.so: undefined reference to `snd_pcm_resume'
../lib/libestbase.so: undefined reference to `snd_pcm_hw_params_any'
../lib/libestbase.so: undefined reference to `snd_strerror'
../lib/libestbase.so: undefined reference to `snd_pcm_writei'
../lib/libestbase.so: undefined reference to `snd_pcm_hw_params_set_access'
../lib/libestbase.so: undefined reference to `snd_pcm_hw_params_set_channels'
../lib/libestbase.so: undefined reference to `snd_pcm_hw_params_set_rate_near'
../lib/libestbase.so: undefined reference to `snd_pcm_drop'
../lib/libestbase.so: undefined reference to `snd_pcm_hw_params_sizeof'
collect2: error: ld returned 1 exit status
make[1]: *** [ch_lab] Error 1
make: *** [main] Error 2
Comment 1 Jaakko Perttilä 2013-12-03 10:23:19 UTC
Created attachment 364506 [details, diff]
include alsa in oslibs

Builds with the patch.
Comment 2 Pacho Ramos gentoo-dev 2015-01-07 10:06:56 UTC
+  07 Jan 2015; Pacho Ramos <pacho@gentoo.org>
+  +files/speech-tools-2.1-underlinking.patch,
+  -files/speech-tools-1.2.96_beta-gcc42.patch,
+  -files/speech-tools-1.2.96_beta-gcc43-include.patch,
+  -files/speech-tools-1.2.96_beta-gcc44.patch,
+  -speech-tools-1.2.96_beta-r2.ebuild, -speech-tools-1.2.96_beta.ebuild,
+  -speech-tools-2.0.95_beta.ebuild, speech-tools-2.1-r2.ebuild:
+  Fix underlinking, bug #493204 by Jaakko Perttilä; drop old
+