Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 604642 - net-misc/ntp-4.2.8_p9 with dev-libs/openssl-1.1.0c - undefined reference to `ERR_load_crypto_strings'
Summary: net-misc/ntp-4.2.8_p9 with dev-libs/openssl-1.1.0c - undefined reference to `...
Status: RESOLVED FIXED
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: http://bugs.ntp.org/show_bug.cgi?id=3363
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: openssl-1.1
  Show dependency tree
 
Reported: 2017-01-04 11:29 UTC by eroen
Modified: 2017-04-12 08:40 UTC (History)
0 users

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


Attachments
net-misc/ntp-4.2.8_p9:20170104-111946.log (ntp-4.2.8_p9:20170104-111946.log,115.04 KB, text/plain)
2017-01-04 11:29 UTC, eroen
Details
0001-Enhance-openssl-1.1.0-compatibility.patch (0001-Enhance-openssl-1.1.0-compatibility.patch,6.11 KB, patch)
2017-01-04 17:53 UTC, eroen
Details | Diff
0001-Enhance-openssl-1.1.0-compatibility.patch v2 (0001-Enhance-openssl-1.1.0-compatibility.patch,11.08 KB, patch)
2017-01-05 22:23 UTC, eroen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description eroen 2017-01-04 11:29:27 UTC
Created attachment 458706 [details]
net-misc/ntp-4.2.8_p9:20170104-111946.log

Initial openssl-1.1.0 patches are already in ntp-4.2.8p9, but it still fails when openssl is built with --api=1.1.0 (like we do). It is not fixed in upstream master either.[1]

0: http://bugs.ntp.org/show_bug.cgi?id=3095
1: http://bk1.ntp.org/ntp-stable/libntp/ssl_init.c?PAGE=history


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 -O0 -g -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -o sntp sntp.o version.o -pthread -Wl,--gc-sections -pthread  libsntp.a ./libopts/.libs/libopts.a -levent_pthreads -levent_core ../libntp/libntp.a -lcap -lm -lssl -lcrypto -pthread
../libntp/libntp.a(ssl_init.o): In function `ssl_init':
/var/tmp/portage/net-misc/ntp-4.2.8_p9/work/ntp-4.2.8p9/libntp/ssl_init.c:32: undefined reference to `ERR_load_crypto_strings'
/var/tmp/portage/net-misc/ntp-4.2.8_p9/work/ntp-4.2.8p9/libntp/ssl_init.c:33: undefined reference to `OpenSSL_add_all_algorithms'
../libntp/libntp.a(ssl_init.o): In function `atexit_ssl_cleanup':
/var/tmp/portage/net-misc/ntp-4.2.8_p9/work/ntp-4.2.8p9/libntp/ssl_init.c:47: undefined reference to `EVP_cleanup'
/var/tmp/portage/net-misc/ntp-4.2.8_p9/work/ntp-4.2.8p9/libntp/ssl_init.c:48: undefined reference to `ERR_free_strings'
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:896: sntp] Error 1
make[4]: Leaving directory '/var/tmp/portage/net-misc/ntp-4.2.8_p9/work/ntp-4.2.8p9/sntp'
make[3]: *** [Makefile:1057: all-recursive] Error 1
make[3]: Leaving directory '/var/tmp/portage/net-misc/ntp-4.2.8_p9/work/ntp-4.2.8p9/sntp'
make[2]: *** [Makefile:685: all] Error 2
make[2]: Leaving directory '/var/tmp/portage/net-misc/ntp-4.2.8_p9/work/ntp-4.2.8p9/sntp'
make[1]: *** [Makefile:667: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/net-misc/ntp-4.2.8_p9/work/ntp-4.2.8p9'
make: *** [Makefile:599: all] Error 2
 * ERROR: net-misc/ntp-4.2.8_p9::gentoo failed (compile phase):
 *   emake failed
Comment 1 eroen 2017-01-04 17:53:25 UTC
Created attachment 458774 [details, diff]
0001-Enhance-openssl-1.1.0-compatibility.patch

I have submitted this patch upstream.[0]

0: http://bugs.ntp.org/show_bug.cgi?id=3363
Comment 2 eroen 2017-01-05 22:23:11 UTC
Created attachment 458864 [details, diff]
0001-Enhance-openssl-1.1.0-compatibility.patch v2

Revised version of patch sent to upstream.
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2017-04-12 08:40:43 UTC
Fixed in >=net-misc/ntp-4.2.8_p10