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
Created attachment 558418 [details] emerge-info.txt
Created attachment 558420 [details] build.log.gz
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.
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'.
Created attachment 558498 [details, diff] ntp-4.2.8_p12-work_fork-without-droproot.patch