php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8004 Failure to create a valid PHP module on Mac OS X Public Beta
Submitted: 2000-11-28 02:49 UTC Modified: 2001-04-27 18:54 UTC
From: markhers at green-ant dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.3pl1 OS: Mac OS X Public Beta (darwin 1.2
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: markhers at green-ant dot com
New email:
PHP Version: OS:

 

 [2000-11-28 02:49 UTC] markhers at green-ant dot com
I am currently in charge of evaluating/deploying Mac OS 
X as a front-end platform for our new PHP based site. 
However, as has been the case for a while, I cannot get 
PHP 4 to compile.

I had filed a bug report earlier (http://bugs.php.net/
bugs.php?id=4764) which went unfulfilled, I just found 
out, because when I got written back, my email address 
of my previous employer was no longer in my 
possession.

I had read something, somewhere (that somewhere 
escapes me) that had said that the libtool that is 
included with PHP 4 does not recognize/properly act on 
the Mac OS X Server / Mac OS X.

Is it possible that this tool is now "broken" on the Mac 
OS X platform? Reason being I tried yet again to create 
a DSO for Mac OS X, and had the exact same issue as 
http://bugs.php.net/bugs.php?id=7872.

Now, I figured, hey, maybe if I tried to compile it directly 
into Apache, and then use "--enable-shared=max" 
would help some...and I got this when I started the 
Apache server. I?configured the two pieces as follow:

PHP:?./configure ?--with-apache=../apache-641/apache -
-enable-track-vars --enable-inline-optimizations --with-
mysql=/usr/local/mysql --without-gd --quiet

Apache: ./configure --with-layout=opt-mark --activate-
module=src/modules/php4/libphp4.a --enable-
module=so --enable-shared=max

Once compilation is complete, I?try to start the server 
and receive the following message:

[localhost:local/src/apache_1.3.14] root# /opt/apache/
sbin/apachectl start
dyld: /opt/apache/sbin/httpd multiple definitions of 
symbol _ThNormalize
/opt/apache/sbin/httpd definition of _ThNormalize
/opt/apache/libexec/libphp4.so definition of 
_ThNormalize
/opt/apache/sbin/apachectl start: httpd could not be 
started

Same exact thing happened with the Apache source 
tree available from Apple at publicsource.apple.com.

I noticed the following:

[localhost:src/apache-641/apache] root# nm /opt/
apache/sbin/httpd | grep ThNorma
000653b0 T _ThNormalize
[localhost:src/apache-641/apache] root# nm /opt/
apache/libexec/libphp4.so ?| grep ThNorma
000c0d28 T _ThNormalize

--

Now, I will say this now as I need this done sooner than 
later, and I believe there are many Mac OS X / Darwin 
users who would love to be running PHP 4 but they 
can't, but I can arrainge for anyone who needs it, 
access to a stock Mac OS X Public Beta box with 
developer tools installed and everything.

Thank you for your great product, and I await your 
speedy attention.

??Mark J. Hershenson
??markhers@green-ant.com
??http://green-ant.com/

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-29 04:42 UTC] sniper@php.net
reclassified
 [2000-11-29 04:48 UTC] sniper@php.net
Duplicate of #7872
 [2001-04-27 18:54 UTC] sniper@php.net
Fixed.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 11:01:29 2025 UTC