Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 526362 - net-fs/samba-4.1.12 with >=sys-apps/systemd-209 - default/lib/util/become_daemon_1.o: In function `become_daemon': become_daemon.c:(.text+0x200): undefined reference to `sd_notifyf'
Summary: net-fs/samba-4.1.12 with >=sys-apps/systemd-209 - default/lib/util/become_dae...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: samba-4
  Show dependency tree
 
Reported: 2014-10-21 20:12 UTC by Reuben Martin
Modified: 2015-01-03 18:36 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
samba-4.1.13-systemd.patch (samba-4.1.13-systemd.patch,1.59 KB, patch)
2014-11-04 13:00 UTC, Torsten Kurbad
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Reuben Martin 2014-10-21 20:12:12 UTC
Bug is a known issue upstream. https://bugzilla.samba.org/show_bug.cgi?id=10672


15:07:02 runner x86_64-pc-linux-gnu-gcc default/nsswitch/winbind_nss_linux_6.o -o /var/tmp/portage/net-fs/samba-4.1.12/work/samba-4.1.12/bin/default/nsswitch/libnss-wrapper-winbind.so -O2 -march=native -mfpmath=sse -ftree-vectorize -fomit-frame-pointer -pipe -fprefetch-loop-arrays -floop-block -floop-strip-mine -floop-interchange -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -fstack-protector -Wl,-no-undefined -Wl,--export-dynamic -lpthread -shared -Wl,--version-script=/var/tmp/portage/net-fs/samba-4.1.12/work/samba-4.1.12/bin/default/nsswitch/nss_wrapper_winbind.vscript -Wl,-h,libnss-wrapper-winbind.so.2 -Ldefault/lib/replace -Ldefault/nsswitch -L/usr/local/lib -Wl,-Bdynamic -lwinbind-client -lreplace -lattr -lnsl -ldl -lcrypt -lrt
default/lib/util/become_daemon_1.o: In function `become_daemon':
become_daemon.c:(.text+0x200): undefined reference to `sd_notifyf'
default/lib/util/become_daemon_1.o: In function `exit_daemon':
become_daemon.c:(.text+0x231): undefined reference to `sd_notifyf'
default/lib/util/become_daemon_1.o: In function `daemon_ready':
become_daemon.c:(.text+0x2b1): undefined reference to `sd_notifyf'
collect2: error: ld returned 1 exit status
Waf: Leaving directory `/var/tmp/portage/net-fs/samba-4.1.12/work/samba-4.1.12/bin'
Build failed:  -> task failed (err #1): 

Reproducible: Always
Comment 1 Torsten Kurbad 2014-11-04 13:00:28 UTC
Created attachment 388526 [details, diff]
samba-4.1.13-systemd.patch

Find attached a patch that I derived from the one in the upstream bug report.

Using this patch, samba 4.1.13 compiles fine for me.

Best,
Torsten
Comment 2 Adam Kowalik 2014-12-25 18:21:59 UTC
(In reply to Torsten Kurbad from comment #1)
Works for me for samba-4.1.13 and 4.1.14.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-01-03 18:36:43 UTC
+  03 Jan 2015; Michał Górny <mgorny@gentoo.org>
+  +files/samba-4.1.14-libsystemd.patch, samba-4.1.14.ebuild:
+  Support linking against libsystemd, bug #526362.

It's ugly, it's terrible but probably the only thing that could work with a build system *that* broken.

Now I have to update the patch to work with git HEAD.