[MacPorts] #18843: swig +php5 doesn't build any php bindings (was: graphviz 2.22.2 +php does not build, Error: Unable to find 'php.swg')
MacPorts
noreply at macports.org
Tue Jun 16 20:14:00 PDT 2009
#18843: swig +php5 doesn't build any php bindings
----------------------------------+-----------------------------------------
Reporter: calle.kabo@… | Owner: jwa@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.7.0
Keywords: graphviz php swig | Port: swig
----------------------------------+-----------------------------------------
Changes (by ryandesign@…):
* cc: kevin@…, ryandesign@… (added)
* keywords: graphviz php => graphviz php swig
* port: graphviz => swig
* owner: ryandesign@… => jwa@…
Comment:
The problem is in swig, which uses the configure option `--with-php4` but
the [http://www.swig.org/Doc1.3/Php.html swig documentation says] php4
support was removed with swig 1.3.37.
The configure script in swig 1.3.39 says this like this:
{{{
checking for php5... no
checking for php... php
checking for PHP header files... -I/mp/include/php -I/mp/include/php/main
-I/mp/include/php/TSRM -I/mp/include/php/Zend -I/mp/include/php/ext
-I/mp/include/php/ext/date/lib
}}}
{{{
config.status: creating Examples/test-suite/php/Makefile
}}}
{{{
Installing language specific files for php4
/bin/sh: line 1: cd: ./Lib/php4: No such file or directory
/bin/sh: line 1: cd: ./Lib/php4: No such file or directory
Installing nothing from Lib/php4
}}}
From `./configure --help` it looks like the available options are now:
{{{
--without-php Disable PHP
--with-php=path Set location of PHP executable
}}}
Using `--with-php` instead of `--with-php4` seems to fix the issue; see
[attachment:swig-php5.diff this patch].
--
Ticket URL: <http://trac.macports.org/ticket/18843#comment:3>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list