[PHP-DEV] PHP 4.0 Bug #9553 Updated: openssl detection in wrong order for linkage From: sniper <email protected>
Date: 03/04/01

ID: 9553
Updated by: sniper
Reported By: alfredreibenschuh <email protected>
Old-Status: Open
Status: Closed
Bug Type: Unknown/Other Function
Assigned To:
Comments:

This is already fixed in CVS. Please try a CVS snapshot from http://snaps.php.net/

--Jani

Previous Comments:
---------------------------------------------------------------------------

[2001-03-04 22:24:40] alfredreibenschuh <email protected>
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

---------------------------------------------------------------------------

ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9553&edit=2

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>