Opened 20 years ago

Closed 20 years ago

#990 closed defect (fixed)

./configure complains it's having problems with PHP's bundled regex.

Reported by: dirk@… Owned by: mapserverbugs
Priority: high Milestone: 4.4 release
Component: MapScript-PHP Version: 4.2
Severity: normal Keywords:
Cc:

Description

Since nobody could say what the problem originally was, I assumed it was only
the compilation problem I discovered as well and I create this path to fix this
issue.

The patch can be downloaded from the URL above.

NOTE: You have to run 'autoconf' again. My autoconf was older than yours, so I
through out this portion of the patch.

Attachments (1)

mapserver-diff.txt (4.7 KB ) - added by dirk@… 20 years ago.
The attached ptch will fix the PHP-related issue I had.

Download all attachments as: .zip

Change History (6)

comment:1 by dirk@…, 20 years ago

Milestone: 4.4 release

comment:2 by dirk@…, 20 years ago

op_sys: IRIXAll
rep_platform: SGIAll

by dirk@…, 20 years ago

Attachment: mapserver-diff.txt added

The attached ptch will fix the PHP-related issue I had.

comment:3 by dmorissette, 20 years ago

Status: newassigned
Unfortunately this patch seems to rely on the regex C source files from the PHP
source tree, so that won't work for those who don't compile PHP from source and
work with a precompiled version of PHP where only the headers are available and
not the C files.

It's seems that the only real solution is still to package our own copy of regex
in which we rename the function and struct names as suggested in bug 520 comment 4. 

comment:4 by dmorissette, 20 years ago

dependson: 520

comment:5 by dmorissette, 20 years ago

Resolution: fixed
Status: assignedclosed
I've been debating a lot whether we should bundle a local regex in MapServer, or
simply apply a patch like the one in this bug to allow using the PHP regex, and
in the end I decided to re-enable building using the PHP bundled regex with a
modified version of the patch from this bug.

The following not that I added to README.CONFIGURE explains the two options
available to users compiling PHP MapScript:

  If your PHP was compiled with PHP's bundled regex then configure may 
  return an error. In this case you have two options:
  1- Download/extract and build the PHP source on your system (no need 
     to 'make install') and use MapServer's --with-php-regex-dir=DIR 
     configure option to specifiy the location of the PHP source tree 
     where the regex/*.o files are located. This is the only way to
     build PHP MapScript in an environment where PHP is configured as
     an Apache DSO.
  2- Try to re-configure and re-compile PHP4 using --with-regex=system 
     and then re-configure and re-compile MapServer.                   
     Note that PHP's --with-regex=system works only when PHP is        
     is configured as a CGI (that is without the --with-apxs and       
     --with-httpd options). So if you configured your PHP using        
     --with-regex=system and still get this error then make sure you   
     configured PHP as a CGI.                                          
Note: See TracTickets for help on using tickets.