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

Bug 704832

Summary: net-misc/ntp-4.2.8_p13-r2 FEATURES=test - ld: ../../ntpd/ntp_config.o:(.toc+0x0): undefined reference to `ntpdOptions'
Product: Gentoo Linux Reporter: ernsteiswuerfel <erhard_f>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: UNCONFIRMED ---    
Severity: normal CC: sam, slyfox
Priority: Normal Keywords: TESTFAILURE
Version: unspecified   
Hardware: PPC64   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=729458
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge --info

Description ernsteiswuerfel archtester 2020-01-05 18:59:31 UTC
Created attachment 602620 [details]
build.log

ntp-4.2.8_p13-r2 builds fine, but fails to build with FEATURES='test'.

[...]
libtool: link: powerpc64-unknown-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 -O2 -mcpu=power9 -pipe -pie -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-O1 -o test-ntp_signd t-ntp_signd.o run-t-ntp_signd.o test-libntp.o -Wl,--gc-sections -pthread ../../ntpd/ntp_config.o ../../ntpd/ntp_io.o  -Wl,--as-needed ../../ntpd/libntpd.a ../../libntp/libntp.a -lssl -lcrypto -lresolv -lpthread ../../sntp/unity/libunity.a -lm -pthread
/usr/lib/gcc/powerpc64-unknown-linux-gnu/9.2.0/../../../../powerpc64-unknown-linux-gnu/bin/ld: ../../ntpd/ntp_config.o:(.toc+0x0): undefined reference to `ntpdOptions'
/usr/lib/gcc/powerpc64-unknown-linux-gnu/9.2.0/../../../../powerpc64-unknown-linux-gnu/bin/ld: ../../ntpd/ntp_config.o: in function `dump_config_tree':
ntp_config.c:(.text.dump_config_tree+0xbc): undefined reference to `keyword'
/usr/lib/gcc/powerpc64-unknown-linux-gnu/9.2.0/../../../../powerpc64-unknown-linux-gnu/bin/ld: ntp_config.c:(.text.dump_config_tree+0x1f8): undefined reference to `keyword'
/usr/lib/gcc/powerpc64-unknown-linux-gnu/9.2.0/../../../../powerpc64-unknown-linux-gnu/bin/ld: ntp_config.c:(.text.dump_config_tree+0x298): undefined reference to `keyword'
/usr/lib/gcc/powerpc64-unknown-linux-gnu/9.2.0/../../../../powerpc64-unknown-linux-gnu/bin/ld: ntp_config.c:(.text.dump_config_tree+0x2ec): undefined reference to `keyword'
/usr/lib/gcc/powerpc64-unknown-linux-gnu/9.2.0/../../../../powerpc64-unknown-linux-gnu/bin/ld: ntp_config.c:(.text.dump_config_tree+0x374): undefined reference to `keyword'
/usr/lib/gcc/powerpc64-unknown-linux-gnu/9.2.0/../../../../powerpc64-unknown-linux-gnu/bin/ld: ../../ntpd/ntp_config.o:ntp_config.c:(.text.dump_config_tree+0x580): more undefined references to `keyword' follow
/usr/lib/gcc/powerpc64-unknown-linux-gnu/9.2.0/../../../../powerpc64-unknown-linux-gnu/bin/ld: ../../ntpd/ntp_config.o: in function `dump_config_tree':
ntp_config.c:(.text.dump_config_tree+0xc70): undefined reference to `quote_if_needed'
/usr/lib/gcc/powerpc64-unknown-linux-gnu/9.2.0/../../../../powerpc64-unknown-linux-gnu/bin/ld: ntp_config.c:(.text.dump_config_tree+0xc80): undefined reference to `quote_if_needed'
/usr/lib/gcc/powerpc64-unknown-linux-gnu/9.2.0/../../../../powerpc64-unknown-linux-gnu/bin/ld: ntp_config.c:(.text.dump_config_tree+0xe98): undefined reference to `keyword'
/usr/lib/gcc/powerpc64-unknown-linux-gnu/9.2.0/../../../../powerpc64-unknown-linux-gnu/bin/ld: ntp_config.c:(.text.dump_config_tree+0xf40): undefined reference to `keyword'
/usr/lib/gcc/powerpc64-unknown-linux-gnu/9.2.0/../../../../powerpc64-unknown-linux-gnu/bin/ld: ntp_config.c:(.text.dump_config_tree+0xf6c): undefined reference to `keyword'
/usr/lib/gcc/powerpc64-unknown-linux-gnu/9.2.0/../../../../powerpc64-unknown-linux-gnu/bin/ld: ntp_config.c:(.text.dump_config_tree+0xfa4): undefined reference to `keyword'
/usr/lib/gcc/powerpc64-unknown-linux-gnu/9.2.0/../../../../powerpc64-unknown-linux-gnu/bin/ld: ntp_config.c:(.text.dump_config_tree+0x1004): undefined reference to `keyword'
/usr/lib/gcc/powerpc64-unknown-linux-gnu/9.2.0/../../../../powerpc64-unknown-linux-gnu/bin/ld: ../../ntpd/ntp_config.o:ntp_config.c:(.text.dump_config_tree+0x10d0): more undefined references to `keyword' follow
/usr/lib/gcc/powerpc64-unknown-linux-gnu/9.2.0/../../../../powerpc64-unknown-linux-gnu/bin/ld: ../../ntpd/ntp_config.o: in function `save_and_apply_config_tree':
ntp_config.c:(.text.save_and_apply_config_tree+0x38e0): undefined reference to `token_name'
/usr/lib/gcc/powerpc64-unknown-linux-gnu/9.2.0/../../../../powerpc64-unknown-linux-gnu/bin/ld: ../../ntpd/ntp_config.o: in function `config_remotely':
ntp_config.c:(.text.config_remotely+0x5c): undefined reference to `lex_init_stack'
/usr/lib/gcc/powerpc64-unknown-linux-gnu/9.2.0/../../../../powerpc64-unknown-linux-gnu/bin/ld: ntp_config.c:(.text.config_remotely+0x88): undefined reference to `yyparse'
/usr/lib/gcc/powerpc64-unknown-linux-gnu/9.2.0/../../../../powerpc64-unknown-linux-gnu/bin/ld: ntp_config.c:(.text.config_remotely+0x90): undefined reference to `lex_drop_stack'
/usr/lib/gcc/powerpc64-unknown-linux-gnu/9.2.0/../../../../powerpc64-unknown-linux-gnu/bin/ld: ../../ntpd/ntp_io.o:(.toc+0x8): undefined reference to `listen_to_virtual_ips'
/usr/lib/gcc/powerpc64-unknown-linux-gnu/9.2.0/../../../../powerpc64-unknown-linux-gnu/bin/ld: ../../ntpd/ntp_io.o:(.toc+0x10): undefined reference to `ntpdOptions'
/usr/lib/gcc/powerpc64-unknown-linux-gnu/9.2.0/../../../../powerpc64-unknown-linux-gnu/bin/ld: ../../ntpd/libntpd.a(ntp_control.o):(.toc+0x0): undefined reference to `Version'
/usr/lib/gcc/powerpc64-unknown-linux-gnu/9.2.0/../../../../powerpc64-unknown-linux-gnu/bin/ld: ../../ntpd/libntpd.a(ntp_proto.o):(.toc+0x0): undefined reference to `waitsync_fd_to_close'
collect2: error: ld returned 1 exit status
make[5]: *** [Makefile:992: test-ntp_signd] Error 1
make[5]: Leaving directory '/var/tmp/portage/net-misc/ntp-4.2.8_p13-r2/work/ntp-4.2.8p13/tests/ntpd'
make[4]: *** [Makefile:1564: check-am] Error 2
make[4]: Leaving directory '/var/tmp/portage/net-misc/ntp-4.2.8_p13-r2/work/ntp-4.2.8p13/tests/ntpd'
make[3]: *** [Makefile:1567: check] Error 2
make[3]: Leaving directory '/var/tmp/portage/net-misc/ntp-4.2.8_p13-r2/work/ntp-4.2.8p13/tests/ntpd'
make[2]: *** [Makefile:534: check-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/net-misc/ntp-4.2.8_p13-r2/work/ntp-4.2.8p13/tests'
make[1]: *** [Makefile:665: check-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/net-misc/ntp-4.2.8_p13-r2/work/ntp-4.2.8p13'
make: *** [Makefile:960: check] Error 2
 * ERROR: net-misc/ntp-4.2.8_p13-r2::gentoo failed (test phase):
 *   Make check failed. See above for details.
Comment 1 ernsteiswuerfel archtester 2020-01-05 19:00:12 UTC
Created attachment 602622 [details]
emerge --info
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2020-01-07 00:52:10 UTC
I suspect it's another case of too optimistic expectation of ntp from --gc-sections behaviour. --gc-sections does not seem to be able to remove global symbols from .TOC.