Opened 15 years ago

Closed 15 years ago

#3078 closed defect (fixed)

mapserver regex confuses gcc so it attempts to compile AND link on OSX

Reported by: kyngchaos Owned by: dmorissette
Priority: normal Milestone: 5.4.3 release
Component: Build Problems Version: 5.4
Severity: normal Keywords:
Cc: dmorissette

Description

The PHP 5.3 changes for MS 5.4.2 included a minor change in the PHP MapScript makefile that cause trouble when using the MapServer regex on OSX:

PHP_REGEX_INC=@PHP_REGEX_INC@

became:

PHP_REGEX_INC=-I@PHP_REGEX_INC@

With the mapserv regex, PHP_REGEX_INC is empty and you get -I with no path. I don't know if this is valid or not (maybe it thinks the following -c flag is the path?), but it causes the OSX GCC 4.0.1 to try to compile and link php_mapscript_util.c. This fails with missing symbols (PHP), since it's not time for linking yet.

Change History (4)

comment:1 by dmorissette, 15 years ago

Cc: dmorissette added
Milestone: 5.4.2 release
Owner: changed from dmorissette to aboudreault

Not sure why that was done this way. It would seem more natural to have the -I as part of the @PHP_REGEX_INC@ symbol defined by the configure script.

Assigned to Alan.

comment:2 by dmorissette, 15 years ago

Milestone: 5.4.2 release5.4.3 release

comment:3 by dmorissette, 15 years ago

Owner: changed from aboudreault to dmorissette

Fixed in SVN trunk r9364 (5.6.0-beta2) and backported to 5.4 branch in r9365 (future 5.4.3)

comment:4 by dmorissette, 15 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.