php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9553 openssl detection in wrong order for linkage
Submitted: 2001-03-04 22:24 UTC Modified: 2001-03-04 22:30 UTC
From: alfredreibenschuh at yahoo dot com Assigned:
Status: Closed Package: Unknown/Other Function
PHP Version: 4.0.4pl1 OS: solaris-2.6(sun4u), probably oth
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: alfredreibenschuh at yahoo dot com
New email:
PHP Version: OS:

 

 [2001-03-04 22:24 UTC] alfredreibenschuh at yahoo dot com
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-04 22:30 UTC] sniper@php.net
This is already fixed in CVS. Please try a CVS snapshot from http://snaps.php.net/

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 03 18:01:30 2024 UTC