Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 622250 - app-admin/apache-tools-2.4.26 USE=libressl undefined reference to `SSL_CTX_set_max_proto_version'
Summary: app-admin/apache-tools-2.4.26 USE=libressl undefined reference to `SSL_CTX_se...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2017-06-19 19:45 UTC by Nick Wallingford
Modified: 2018-04-25 15:04 UTC (History)
1 user (show)

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


Attachments
libressl.patch (libressl.patch,484 bytes, patch)
2017-06-19 19:46 UTC, Nick Wallingford
Details | Diff
emerge-info.txt (emerge-info.txt,19.33 KB, text/plain)
2017-06-20 18:22 UTC, Toralf Förster
Details
app-admin:apache-tools-2.4.26:20170620-181920.log (app-admin:apache-tools-2.4.26:20170620-181920.log,44.89 KB, text/plain)
2017-06-20 18:22 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,325.70 KB, text/plain)
2017-06-20 18:22 UTC, Toralf Förster
Details
environment (environment,90.74 KB, text/plain)
2017-06-20 18:22 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,34.60 KB, application/x-bzip)
2017-06-20 18:22 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,13.84 KB, application/x-bzip)
2017-06-20 18:22 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,27.13 KB, application/x-bzip)
2017-06-20 18:22 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Wallingford 2017-06-19 19:45:44 UTC
ab.c: In function ‘main’:
ab.c:2518:5: warning: implicit declaration of function ‘SSL_CTX_set_max_proto_version’ [-Wimplicit-function-declaration]
     SSL_CTX_set_max_proto_version(ssl_ctx, max_prot);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ab.c:2519:5: warning: implicit declaration of function ‘SSL_CTX_set_min_proto_version’ [-Wimplicit-function-declaration]
     SSL_CTX_set_min_proto_version(ssl_ctx, min_prot);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Comment 1 Nick Wallingford 2017-06-19 19:46:29 UTC
Created attachment 477288 [details, diff]
libressl.patch
Comment 2 Nick Wallingford 2017-06-19 19:48:54 UTC
Oops. Those are the warnings, not the error.

ab.c: In function ‘main’:
ab.c:2518:5: warning: implicit declaration of function ‘SSL_CTX_set_max_proto_version’ [-Wimplicit-function-declaration]
     SSL_CTX_set_max_proto_version(ssl_ctx, max_prot);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ab.c:2519:5: warning: implicit declaration of function ‘SSL_CTX_set_min_proto_version’ [-Wimplicit-function-declaration]
     SSL_CTX_set_min_proto_version(ssl_ctx, min_prot);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

[...snip...]

/var/tmp/portage/app-admin/apache-tools-2.4.26/temp/ccK81tY8.ltrans0.ltrans.o: In function `main':
/var/tmp/portage/app-admin/apache-tools-2.4.26/work/httpd-2.4.26/support/ab.c:2518: undefined reference to `SSL_CTX_set_max_proto_version'
/var/tmp/portage/app-admin/apache-tools-2.4.26/work/httpd-2.4.26/support/ab.c:2519: undefined reference to `SSL_CTX_set_min_proto_version'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:65: ab] Error 1
make[1]: *** Waiting for unfinished jobs....
Comment 3 Toralf Förster gentoo-dev 2017-06-20 18:22:22 UTC
confirmed at plasma-systemd_libressl_20170609-232249
Comment 4 Toralf Förster gentoo-dev 2017-06-20 18:22:25 UTC
Created attachment 477460 [details]
emerge-info.txt
Comment 5 Toralf Förster gentoo-dev 2017-06-20 18:22:28 UTC
Created attachment 477462 [details]
app-admin:apache-tools-2.4.26:20170620-181920.log
Comment 6 Toralf Förster gentoo-dev 2017-06-20 18:22:31 UTC
Created attachment 477464 [details]
emerge-history.txt
Comment 7 Toralf Förster gentoo-dev 2017-06-20 18:22:34 UTC
Created attachment 477466 [details]
environment
Comment 8 Toralf Förster gentoo-dev 2017-06-20 18:22:37 UTC
Created attachment 477468 [details]
etc.portage.tbz2
Comment 9 Toralf Förster gentoo-dev 2017-06-20 18:22:40 UTC
Created attachment 477470 [details]
logs.tbz2
Comment 10 Toralf Förster gentoo-dev 2017-06-20 18:22:43 UTC
Created attachment 477472 [details]
temp.tbz2
Comment 11 Nick Wallingford 2017-06-21 16:16:53 UTC
Upstream bug: https://bz.apache.org/bugzilla/show_bug.cgi?id=61184

Note that this is a larger problem with www-servers/apache-2.4.26 in general, not just apache-tools. Since both apache and apache-tools use the same source tarball, the patch for apache will also work for apache-tools. I recommend using the patch on the apache bug tracker instead of mine, and also apply it to =www-servers/apache-2.4.26.
Comment 12 Enne Eziarc 2017-06-28 19:59:34 UTC
This also happens with USE="-libressl -ssl" (on a libressl system), so it's sprouted an automagic dependency somewhere in this version.
Comment 13 Aaron Bauman (RETIRED) gentoo-dev 2018-04-21 18:09:01 UTC
This is not reproducable with 2.4.27 or 2.4.29.
Comment 14 Aaron Bauman (RETIRED) gentoo-dev 2018-04-25 14:59:45 UTC
(In reply to Aaron Bauman from comment #13)
> This is not reproducable with 2.4.27 or 2.4.29.

This is applicable to libressl 2.6.x and 2.7.x builds.
Comment 15 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2018-04-25 15:04:17 UTC
(In reply to Aaron Bauman from comment #14)
> (In reply to Aaron Bauman from comment #13)
> > This is not reproducable with 2.4.27 or 2.4.29.
> 
> This is applicable to libressl 2.6.x and 2.7.x builds.

So let's close this bug.