Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 673620 - net-misc/ntp-4.2.8_p12 - work_fork.c:(.text.send_blocking_req_internal+0x377): undefined reference to `set_user_group_ids'
Summary: net-misc/ntp-4.2.8_p12 - work_fork.c:(.text.send_blocking_req_internal+0x377)...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-23 18:43 UTC by Michael Hofmann
Modified: 2018-12-26 16:41 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,3.36 KB, text/plain)
2018-12-23 18:53 UTC, Michael Hofmann
Details
build.log.gz (build.log.gz,24.11 KB, application/gzip)
2018-12-23 19:00 UTC, Michael Hofmann
Details
ntp-4.2.8_p12-work_fork-without-droproot.patch (ntp-4.2.8_p12-work_fork-without-droproot.patch,327 bytes, patch)
2018-12-26 16:41 UTC, Michael Hofmann
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Hofmann 2018-12-23 18:43:17 UTC
emerge =net-misc/ntp-4.2.8_p11 works as expected

emerge =net-misc/ntp-4.2.8_p12 aborts with:

/bin/sh ../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc -ffunction-sections -fdata-sections -Wall -Wcast-align -Wcast-qual -Wmissing-prototypes -Wpointer-arith -Wshadow -Winit-self -Wstrict-overflow   -Wno-strict-prototypes -fPIE -fPIC -fstack-protector-all -O1 -march=core2 -O2 -pipe  -pie -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--as-needed -o ntpd ntp_config.o ntp_io.o ntp_parser.o ntp_scanner.o ntpd.o ntpd-opts.o  version.o libntpd.a  ../libntp/libntp.a -Wl,--gc-sections  ../sntp/libopts/libopts.la  -lm -lssl -ldl -lz -lcrypto -ldl -lz   
libtool: link: x86_64-pc-linux-gnu-gcc -ffunction-sections -fdata-sections -Wall -Wcast-align -Wcast-qual -Wmissing-prototypes -Wpointer-arith -Wshadow -Winit-self -Wstrict-overflow -Wno-strict-prototypes -fPIE -fPIC -fstack-protector-all -O1 -march=core2 -O2 -pipe -pie -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-O1 -o ntpd ntp_config.o ntp_io.o ntp_parser.o ntp_scanner.o ntpd.o ntpd-opts.o version.o -Wl,--gc-sections  -Wl,--as-needed libntpd.a ../libntp/libntp.a ../sntp/libopts/.libs/libopts.a -lm -lssl -lcrypto -ldl -lz
../libntp/libntp.a(work_fork.o): In function `send_blocking_req_internal':
work_fork.c:(.text.send_blocking_req_internal+0x377): undefined reference to `set_user_group_ids'
collect2: error: ld returned 1 exit status
Comment 1 Michael Hofmann 2018-12-23 18:53:00 UTC
Created attachment 558418 [details]
emerge-info.txt
Comment 2 Michael Hofmann 2018-12-23 19:00:12 UTC
Created attachment 558420 [details]
build.log.gz
Comment 3 Michael Hofmann 2018-12-23 20:12:32 UTC
There's already a bug report upstream: http://bugs.ntp.org/show_bug.cgi?id=3539

Developers have a patch: http://bugs.ntp.org/attachment.cgi?id=1628

I tested the patch. I can confirm that the patch solves the problem.
Comment 4 Michael Hofmann 2018-12-24 11:22:43 UTC
This bug seems to occur if ntp is emerged without USE flag 'threads'. I can reproduce the error on non-affected machines with: USE="-threads" emerge ntp.

Or the other way round: another solution would be to emerge ntp WITH use flag 'threads'.
Comment 5 Michael Hofmann 2018-12-26 16:41:39 UTC
Created attachment 558498 [details, diff]
ntp-4.2.8_p12-work_fork-without-droproot.patch