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 Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or 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

Add a Patch

Pull Requests

Add a Pull Request

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: Sat Apr 27 15:01:29 2024 UTC