Summary: | dev-lang/erlang-17.0 - epmd_srv.c:(.text+0x830): undefined reference to `sd_listen_fds' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
Component: | [OLD] Development | Assignee: | Dirkjan Ochtman (RETIRED) <djc> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | chris, kinbot, lang-misc+disabled, renegabriels, stefan |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 502522 | ||
Attachments: |
build.log
requested config.log Patch from upstream to make systemd support optional erlang-17.0-r1 with better systemd stuff /var/tmp/portage/dev-lang/erlang-17.0-r1/work/otp_src_17.0/config.log erts-config.log-file /var/tmp/portage/dev-lang/erlang-17.0/work/otp_src_17.0/erts/config.log Another patch to fix systemd linking New ebuild that uses both patches |
Description
Juergen Rose
2014-04-22 07:08:49 UTC
Do you have systemd installed? (In reply to Dirkjan Ochtman from comment #1) > Do you have systemd installed? Yes. root@caiman:/root(1)# qlist -Iv systemd sys-apps/gentoo-systemd-integration-4 sys-apps/systemd-212-r2 Confirmed here (systemd-212-r2). Also confirmed, systemd-212-r2. Could someone please attach the erts/config.log from the /var/tmp/portage/dev-lang/erlang-17.0/work/otp_something? Created attachment 375958 [details]
requested config.log
From what I can tell, erlang tries to link against libsystemd-daemon, but systemd-212-r2 only creates libsystemd. excerpt of erts/config.log: configure:7195: checking for sd_listen_fds in -lsystemd-daemon configure:7220: x86_64-pc-linux-gnu-gcc -o conftest -march=native -O2 -pipe -I/home/tmp/portage/dev-lang/erlang-17.0/work/otp_src_17.0/erts/x86_64-pc-linux-gnu -D_GNU_SOURCE -Wl,-O1 -Wl,--as-needed conftest.c -lsystemd-daemon -lutil -ldl -lm >&5 /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lsystemd-daemon collect2: error: ld returned 1 exit status Created attachment 376016 [details, diff]
Patch from upstream to make systemd support optional
Created attachment 376018 [details, diff]
erlang-17.0-r1 with better systemd stuff
I've attached a 17.0-r1 and a patch. Please test it with both the systemd flag enabled and it disabled, and report back.
(In reply to Dirkjan Ochtman from comment #9) > Created attachment 376018 [details, diff] [details, diff] > erlang-17.0-r1 with better systemd stuff > > I've attached a 17.0-r1 and a patch. Please test it with both the systemd > flag enabled and it disabled, and report back. Fails configure with systemd enabled: checking systemd/sd-daemon.h usability... yes checking systemd/sd-daemon.h presence... yes checking for systemd/sd-daemon.h... yes configure: error: in `/var/tmp/portage/dev-lang/erlang-17.0-r1/work/otp_src_17.0/erts': configure: error: --enable-systemd was given, but test for systemd failed Created attachment 376026 [details]
/var/tmp/portage/dev-lang/erlang-17.0-r1/work/otp_src_17.0/config.log
configure failure with -r1 and patch
(In reply to Dirkjan Ochtman from comment #9) > Created attachment 376018 [details, diff] [details, diff] > erlang-17.0-r1 with better systemd stuff > > I've attached a 17.0-r1 and a patch. Please test it with both the systemd > flag enabled and it disabled, and report back. Does not configure with USE="systemd" but configures and compiles with USE="-systemd", as I use systemd I did not install it. Chris, thanks for your tests. The upstream developer really wants the erts/config.log, not the top-level one. Would you be able to post that one (for the with-systemd case)? Created attachment 376100 [details]
erts-config.log-file
Created attachment 376142 [details]
/var/tmp/portage/dev-lang/erlang-17.0/work/otp_src_17.0/erts/config.log
The same from me
Created attachment 376464 [details, diff]
Another patch to fix systemd linking
Created attachment 376466 [details]
New ebuild that uses both patches
Please try again with the updated ebuild I've attached, and both patches (the one I uploaded before and the new one). I'm mostly interested in the with-systemd case at this point. If it fails, please post the erts/config.log again.
(In reply to Dirkjan Ochtman from comment #17) > Created attachment 376466 [details] > New ebuild that uses both patches > > Please try again with the updated ebuild I've attached, and both patches > (the one I uploaded before and the new one). I'm mostly interested in the > with-systemd case at this point. If it fails, please post the > erts/config.log again. Worked here. (In reply to Dirkjan Ochtman from comment #17) > Created attachment 376466 [details] > New ebuild that uses both patches > > Please try again with the updated ebuild I've attached, and both patches > (the one I uploaded before and the new one). I'm mostly interested in the > with-systemd case at this point. If it fails, please post the > erts/config.log again. Ebuild+patches work for me with +systemd as well. Fixed in 17.0-r1. Thanks everyone for the help! |