Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[pro-audio] lashd-origin fails to compile (libdl not linked)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Lucretia
n00b
n00b


Joined: 15 Oct 2002
Posts: 69

PostPosted: Sat Jul 12, 2014 10:26 pm    Post subject: [pro-audio] lashd-origin fails to compile (libdl not linked) Reply with quote

Hi, I've tried to build this project and it fails.

Code:

/bin/sh ../libtool --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -I/usr/include/alsa  -I/usr/include/libxml2  -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include  -DDTDDIR=\"/usr/share/lash/dtds\"  -march=native -O2 -pipe  -Wl,-O1 -Wl,--as-needed -o lashd main.o log.o file.o client.o client_dependency.o loader.o project.o store.o server.o dbus_iface_server.o dbus_iface_control.o dbus_service.o jack_patch.o jack_mgr_client.o appdb.o sigsegv.o proctitle.o safety.o jackdbus_mgr.o  alsa_patch.o alsa_fport.o alsa_mgr.o alsa_client.o -lasound  -lxml2  -luuid  -ldbus-1  ../dbus/liblashdbus.a -lstdc++ -lutil  -lpthread
mkdir .libs
x86_64-pc-linux-gnu-gcc -I/usr/include/alsa -I/usr/include/libxml2 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DDTDDIR=\"/usr/share/lash/dtds\" -march=native -O2 -pipe -Wl,-O1 -o lashd main.o log.o file.o client.o client_dependency.o loader.o project.o store.o server.o dbus_iface_server.o dbus_iface_control.o dbus_service.o jack_patch.o jack_mgr_client.o appdb.o sigsegv.o proctitle.o safety.o jackdbus_mgr.o alsa_patch.o alsa_fport.o alsa_mgr.o alsa_client.o  -Wl,--as-needed -lasound -lxml2 -luuid -ldbus-1 ../dbus/liblashdbus.a -lstdc++ -lutil -lpthread 
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: sigsegv.o: undefined reference to symbol 'dladdr@@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: note: 'dladdr@@GLIBC_2.2.5' is defined in DSO /lib64/libdl.so.2 so try adding it to the linker command line
/lib64/libdl.so.2: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[2]: *** [lashd] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-sound/lash-original-0.6.0_rc2-r1/work/lash-original-0.6.0_rc2_build/lashd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-sound/lash-original-0.6.0_rc2-r1/work/lash-original-0.6.0_rc2_build'
make: *** [all] Error 2
 * ERROR: media-sound/lash-original-0.6.0_rc2-r1::proaudio failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=media-sound/lash-original-0.6.0_rc2-r1::proaudio'`,
 * the complete build log and the output of `emerge -pqv '=media-sound/lash-original-0.6.0_rc2-r1::proaudio'`.
 * The complete build log is located at '/var/tmp/portage/media-sound/lash-original-0.6.0_rc2-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-sound/lash-original-0.6.0_rc2-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/media-sound/lash-original-0.6.0_rc2-r1/work/lash-original-0.6.0_rc2_build'
 * S: '/var/tmp/portage/media-sound/lash-original-0.6.0_rc2-r1/work/lash-0.6.0.594'

>>> Failed to emerge media-sound/lash-original-0.6.0_rc2-r1, Log file:

>>>  '/var/tmp/portage/media-sound/lash-original-0.6.0_rc2-r1/temp/build.log'

 * Messages for package media-sound/lash-original-0.6.0_rc2-r1:
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Sun Jul 13, 2014 12:38 pm    Post subject: Reply with quote

See http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/media-sound/lash/files/lash-0.5.4-underlinking.patch?view=markup for example, it's missing a similar patch, but for missing -ldl this time.

You can *possible* workaround it by:

Code:

# LDFLAGS="-ldl" emerge lash-original


But no guarantees it will work. The only proper way is adding the patch.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum