Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 673620

Summary: net-misc/ntp-4.2.8_p12 - work_fork.c:(.text.send_blocking_req_internal+0x377): undefined reference to `set_user_group_ids'
Product: Gentoo Linux Reporter: Michael Hofmann <bugs>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
build.log.gz
ntp-4.2.8_p12-work_fork-without-droproot.patch

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