Bug #75726 [NEW]: ./configure: detecting openssl

From: Date: Sat, 23 Dec 2017 13:28:44 +0000
Subject: Bug #75726 [NEW]: ./configure: detecting openssl
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-213260@lists.php.net to get a copy of this message
From:             dpa-bugs at aegee dot org
Operating system: 
PHP version:      7.1.12
Package:          *Compile Issues
Bug Type:         Bug
Bug description:./configure: detecting openssl

Description:
------------
openssl/Configure --prefix=/usr/local installs the .h files in
/usr/local/include/openssl/ and on 64bit systems the libraries in
/usr/local/lib64 .  Most other packackages put their libraries in
/usr/local/lib, so PHP_LIBDIR is /usr/local/lib .

./configure --with-openssl=/usr/local does:

if test "$PHP_OPENSSL_DIR" = "yes"; then
  PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl"
fi

for i in $PHP_OPENSSL_DIR; do
  if test -r $i/include/openssl/evp.h; then
    OPENSSL_INCDIR=$i/include
  fi
  if test -r $i/$PHP_LIBDIR/libssl.a -o -r
$i/$PHP_LIBDIR/libssl.$SHLIB_SUFFIX_NAME; then
    OPENSSL_LIBDIR=$i/$PHP_LIBDIR
  fi
  test -n "$OPENSSL_INCDIR" && test -n "$OPENSSL_LIBDIR" &&
break
done

meaning that is does not check for /usr/local/lib64/libssl.(a,so) and
the detection for openssl always fails, if the paths are considers
whenre openssl installs itself by default.

This happens in configure four times (on lines 18413, 31988 and 42880
and 94001).


-- 
Edit bug report at https://bugs.php.net/bug.php?id=75726&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=75726&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=75726&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=75726&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=75726&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=75726&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=75726&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=75726&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=75726&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=75726&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=75726&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=75726&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=75726&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=75726&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75726&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=75726&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=75726&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=75726&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75726&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=75726&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=75726&r=mysqlcfg



Thread (3 messages)

« previous php.bugs (#213260) next »