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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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: Sun Dec 22 11:01:30 2024 UTC