Bug 64315 - configure output for OpenSSL wrong/incomplete sometimes
Summary: configure output for OpenSSL wrong/incomplete sometimes
Status: RESOLVED FIXED
Alias: None
Product: Tomcat Native
Classification: Unclassified
Component: Library (show other bugs)
Version: 1.2.23
Hardware: All All
: P2 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-06 12:19 UTC by Michael Osipov
Modified: 2020-04-06 20:36 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Osipov 2020-04-06 12:19:54 UTC
When OpenSSL lives in /usr then configure output will be:
> checking for OpenSSL library... using openssl from /usr/ and /usr/include

'/usr/' is obviously wrong. The root cause is in build/tcnative.m4. In the case of '"$use_openssl" = "/usr"' 'test -d $use_openssl/lib64 && ssllibdir=lib64 || ssllibdir=lib" is not executed', thus remains unset.

The simplest fix is to move the dir test out of the if clause.
Comment 1 Michael Osipov 2020-04-06 14:12:52 UTC
More over, the ssllibdir is always wrong on HP-UX. It has to be either lib/hpux32 or lib/hpux64.
Comment 2 Michael Osipov 2020-04-06 20:36:11 UTC
Fix in 1.2.24 and onwards