Trying to install php5 from fink on MacOSX 10.5, I stumbled over the  
build
problem for that package.

As far as I can see, the problem is caused by an error in the configure
script. The path of some sources in the Zend directory are given with
a leading "/" so that wrong paths are written to the Makefile.

I applied the following patch to php5-10.5.info to fix this problem:

--- php5-10.5.info.orig 2008-08-18 21:38:17.000000000 +0200
+++ php5-10.5.info      2008-08-18 21:33:15.000000000 +0200
@@ -1,6 +1,6 @@
  Package: php5
  Version: 5.1.4
-Revision: 122
+Revision: 123
  Distribution: 10.5
  ###
  BuildDepends: <<
@@ -159,6 +159,9 @@

    ### Fix thread-safety
    perl -pi -e  
's,enable_maintainer_zts=no,enable_maintainer_zts=yes,g' configure
+
+  ### Fix incorrectly specified directory for some Zend sources
+  sed -i '' '112529,112532 s/\/Zend/Zend/g' configure
  <<
  ### Fix for 10.3 dns stuff & apr & snmp
  ### make really sure system-openssl flags are before fink's

I've also seen reports on the fink-users list saying that php5 builds
correctly for some people: I think this only can work with different
(newer) sources of php5, where the configure.in is fixed upstream.

That said, an alternative approach would be to upgrade to a later
upstream version of php5.

Vivenzio


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.devel

Reply via email to