php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43391 --with-openssl and --with-apxs2 conflicts
Submitted: 2007-11-23 15:26 UTC Modified: 2007-11-27 17:52 UTC
From: macintosh at mathiesen dot info Assigned:
Status: Closed Package: Compile Failure
PHP Version: 5.2.5 OS: Mac OS X 10.5.1
Private report: No CVE-ID: None
 [2007-11-23 15:26 UTC] macintosh at mathiesen dot info
Description:
------------
these works:
./configure --prefix=/Library/PHP5 --with-openssl=/usr
./configure \
    --prefix=/Library/PHP5 \
    --with-openssl=/macports \
    --with-openssl-dir=/macports \
    --with-iconv=/macports

and these works:
./configure --prefix=/Library/PHP5 --with-apxs2=/usr/sbin/apxs
./configure --prefix=/Library/PHP5 --with-apxs2=/Library/Apache2/bin/apxs

but these fails:
./configure \
    --prefix=/Library/PHP5 \
    --with-openssl=/macports \
    --with-openssl-dir=/macports \
    --with-iconv=/macports \
    --with-apxs2=/Library/Apache2/bin/apxs
./configure \
    --prefix=/Library/PHP5 \
    --with-openssl=/usr \
    --with-apxs2=/usr/sbin/apxs

always resulting in this:
  -o libs/libphp5.bundle && cp libs/libphp5.bundle libs/libphp5.so
Undefined symbols:
  "_EVP_CIPHER_CTX_block_size", referenced from:
      _zif_openssl_seal in openssl.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1

I'm getting this on both:
- a  PPC TiBook
- an Intel iMac
with the following versions of PHP:
- 5.2.4 , 5.2.5 , CVS 200711191530
and both with the libraries as supplied with the stock version of Mac OS X 10.5 as well as with the libraries from macports and my own compiled Apache2.

I've searched high and low in mail lists, forums and bug databases without finding anything like this. However, a japanese guy has had the exact same issue:
http://d.hatena.ne.jp/heavenshell/20071114
http://translate.google.com/translate?hl=en&sl=ja&u=http://d.hatena.ne.jp/heavenshell/20071114&sa=X&oi=translate




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-11-24 12:04 UTC] jani@php.net
Wild guess: You have multiple openssl header files in your filesystem which conflict. Or libs..
 [2007-11-24 12:06 UTC] jani@php.net
This might be helpful: 
http://blog.phpdoc.info/archives/83-php-5.2.5-on-Leopard.html#extended

As shown, it's possible to build PHP on Leopard. :)

 [2007-11-24 15:40 UTC] macintosh at mathiesen dot info
Yes - but they seem to have some issues with mod_ssl & Apache2.
My version of Apache2 has successfully been built with and subsequently loaded mod_ssl according to httpd -M

I'll try building Apache2 without support for ssl and see what happens and at the same time enter into correspondance with the macports people.
 [2007-11-24 15:47 UTC] macintosh at mathiesen dot info
I'm actually using the same configure settings for both PHP5 and Apache2 as I was using under Mac OS X 10.4.x ; and I had no problems like this then.
 [2007-11-25 17:29 UTC] jani@php.net
Well, obviously the update of MacOSX broke this. (and not only PHP, lot of other stuff too..)
 [2007-11-27 17:52 UTC] macintosh at mathiesen dot info
closing - resolution invalid.

does indeed seem to be some kind of lib conflict, but as to which !
messing around with paths in configure options for both apache and php eventually fixed php.
 [2010-11-04 16:40 UTC] doug at ceridwenproductions dot com
This problem seems to be solved by using the following configure directive:

--with-openssl=shared,/macports

Adding the keyword "shared," seems to do the trick.

-Doug
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 19 14:01:32 2024 UTC