| Summary: | net-misc/ntp-4.2.8 - ../libntp/libntp.a(ntp_crypto_rnd.o): In function `ntp_crypto_random_buf': ntp_crypto_rnd.c:(.text.ntp_crypto_random_buf+0x7): undefined reference to `arc4random_buf' | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Thomas Deutschmann (RETIRED) <whissi> |
| Component: | [OLD] Core system | Assignee: | Gentoo's Team for Core System packages <base-system> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Bug Depends on: | |||
| Bug Blocks: | 533076 | ||
| Attachments: | net-misc_ntp-4.2.8_20141221-232351.log | ||
|
Description
Thomas Deutschmann (RETIRED)
2014-12-21 23:37:29 UTC
Does it build for you if you enable ssl? I wonder if we miss an optional libbsd dependency for USE="-ssl" cases. hmm I think this is a bug in the upstream code itself. This function is used when not using USE="-ssl", and nothing in the build system currently checks for the availability of that function (especially when --disable-local-libevent) is passed. Even with --enable-local-libevent used, it does not seem to make any difference. How about this patch? http://bk1.ntp.org/ntp-stable/?PAGE=patch&REV=5497b345z5MNTuNvJWuqPSje25NQTg Hi, net-misc/ntp-4.2.8-r1[caps,ipv6] is still failing. net-misc/ntp-4.2.8-r1[caps,ipv6,ssl] succeeded. So it is just building without SSL which is broken. I applied the patch set from your link, but is still doesn't build without SSL (patch seems to be incomplete): ../libntp/libntp.a(ntp_crypto_rnd.o): In function `ntp_crypto_random_buf': ntp_crypto_rnd.c:(.text.ntp_crypto_random_buf+0x5): undefined reference to `evutil_secure_rng_get_bytes' collect2: error: ld returned 1 exit status Makefile:740: recipe for target 'ntp-keygen' failed make[3]: *** [ntp-keygen] Error 1 make[3]: *** Waiting for unfinished jobs.... config.status: creating ntp-keygen.1+ mv ntp-keygen.1+ ntp-keygen.1 make[3]: Leaving directory '/var/tmp/portage/net-misc/ntp-4.2.8-r1/work/ntp-4.2.8/util' Makefile:558: recipe for target 'all' failed make[2]: *** [all] Error 2 make[2]: Leaving directory '/var/tmp/portage/net-misc/ntp-4.2.8-r1/work/ntp-4.2.8/util' Makefile:549: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/net-misc/ntp-4.2.8-r1/work/ntp-4.2.8' Makefile:478: recipe for target 'all' failed make: *** [all] Error 2 please read my last comment. It's USE="-ssl" that's failing. We need to put some effort to backport the upstream patch or wait for 4.2.8p1 or something Should be ok now. Sync in an hour to get the updated ebuild. Thanks for the report + 22 Dec 2014; Markos Chandras <hwoarang@gentoo.org> + +files/ntp-4.2.8-ntp-keygen-no-openssl.patch, ntp-4.2.8-r1.ebuild: + Backport upstream patch to allow ntp-keygen building with USE=-ssl. + |