Opened 16 years ago

Closed 15 years ago

#18843 closed defect (fixed)

swig +php5 doesn't build any php bindings

Reported by: calle.kabo@… Owned by: jyrkiwahlstedt
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: graphviz php swig Cc: kevin@…, ryandesign (Ryan Carsten Schmidt)
Port: swig

Description

Hi,

I'm unable to build graphviz 2.22.2 +php The error is:

swig -c++ -php5 -o gv_php.cpp ./gv.i
:3: Error: Unable to find 'php.swg'

Attachments (2)

debug graphviz.txt (402.6 KB) - added by calle.kabo@… 16 years ago.
debug outbut
swig-php5.diff (628 bytes) - added by ryandesign (Ryan Carsten Schmidt) 15 years ago.

Download all attachments as: .zip

Change History (6)

Changed 16 years ago by calle.kabo@…

Attachment: debug graphviz.txt added

debug outbut

comment:1 Changed 16 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to ryandesign@…

comment:2 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:3 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: kevin@… ryandesign@… added
Keywords: swig added
Owner: changed from ryandesign@… to jwa@…
Port: swig added; graphviz removed
Summary: graphviz 2.22.2 +php does not build, Error: Unable to find 'php.swg'swig +php5 doesn't build any php bindings

The problem is in swig, which uses the configure option --with-php4 but the 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 this patch.

Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: swig-php5.diff added

comment:4 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

Committed in r52846 (maintainer timeout).

Note: See TracTickets for help on using tickets.