PHP 4.0 Bug #9553: openssl detection in wrong order for linkage

From: Date: Mon, 05 Mar 2001 03:24:40 +0000
Subject: PHP 4.0 Bug #9553: openssl detection in wrong order for linkage
Groups: php.dev 
Request: Send a blank email to php-dev+get-47942@lists.php.net to get a copy of this message
From: alfredreibenschuh@yahoo.com Operating system: solaris-2.6(sun4u), probably other unices PHP version: 4.0.4pl1 PHP Bug Type: Unknown/Other Function Bug description: openssl detection in wrong order for linkage hi ! i'm using curl with ssl so i use --with-openssl to have php linked against the right libs beginning on line 545 of "configure.in" it reads: AC_ADD_LIBPATH($OPENSSL_DIR/lib) AC_ADD_LIBRARY(ssl) AC_ADD_LIBRARY(crypto) AC_ADD_INCLUDE($OPENSSL_INC) ---- but in "configure" the libraries are assigned like LIBS=" -llib $LIBS " which means that crypto is linked before ssl BUT ssl needs crypto !!! it should read: AC_ADD_LIBPATH($OPENSSL_DIR/lib) AC_ADD_LIBRARY(crypto) AC_ADD_LIBRARY(ssl) AC_ADD_INCLUDE($OPENSSL_INC) ---- probably other unices have another linking order so adding another crypto after ssl may help too have had no such problems on linux tho -- Edit Bug report at: http://bugs.php.net/?id=9553&edit=1

« previous php.dev (#47942) next »