[pulseaudio-tickets] [Bug 86113] New: Can't build PulseAudio with systemd enabled [PATCH]
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Nov 10 06:34:03 PST 2014
https://bugs.freedesktop.org/show_bug.cgi?id=86113
Bug ID: 86113
Summary: Can't build PulseAudio with systemd enabled [PATCH]
Product: PulseAudio
Version: unspecified
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: build-system
Assignee: pulseaudio-bugs at lists.freedesktop.org
Reporter: mauroguerrera92 at gmail.com
QA Contact: pulseaudio-bugs at lists.freedesktop.org
CC: lennart at poettering.net
Created attachment 109222
--> https://bugs.freedesktop.org/attachment.cgi?id=109222&action=edit
patch file
Seems that after commit [1] systemd usage has been added into src/daemon/main.c
but there is no link for the corresponding library in the final pulseaudio
binary.
The attached patch solves the issue.
Snip of the build problem:
/usr/bin/ld: daemon/pulseaudio-main.o: undefined reference to symbol
'sd_listen_fds@@LIBSYSTEMD_209'
//lib/x86_64-linux-gnu/libsystemd.so.0: error adding symbols: DSO missing from
command line
[1]
http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/src/daemon/main.c?id=467b4b9bee66257da7ce51c1158f9fe2178daac1
Patch:
diff --git a/src/Makefile.am b/src/Makefile.am
index a4a66c5..3cab31f 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -171,6 +171,11 @@ else
pulseaudio_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(IMMEDIATE_LDFLAGS) -dlopen
force $(foreach f,$(PREOPEN_LIBS),-dlopen $(f))
endif
+if HAVE_SYSTEMD_DAEMON
+pulseaudio_CFLAGS += $(SYSTEMD_FLAGS) $(SYSTEMDDAEMON_FLAGS)
+pulseaudio_LDFLAGS += $(SYSTEMD_LIBS) $(SYSTEMDDAEMON_LIBS)
+endif
+
###################################
# Utility programs #
###################################
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20141110/487ead40/attachment-0001.html>
More information about the pulseaudio-bugs
mailing list