mapserver update

Daniel Morissette dmorissette at MAPGEARS.COM
Wed Dec 19 14:03:27 EST 2007


Which version of PHP is installed on this system? I've never heard of 
this error, but it looks like php_mapscript doesn't like something in 
the headers. Can you please provide the full output from the make 
command in the mapscript/php3 directory and not just the end of it? 
Usually the explanation to a build problem is in the beginning of the 
output (i.e. the first warnings/errors), not in the end of it.

Daniel



R. Ortner wrote:
> Checked again, no .so file:
> 
> root at umnmapserver:/tmp/Mapserver5/mapserver-5.0.0/mapscript/php3# ls
> 
> Makefile     Makefile.vc  README.WIN32  hashtable_i.c  nmake.opt       
> php_mapscript.h       php_mapscript_util.h  php_regex.c
> Makefile.in  README       examples      mapscript_i.c  php_mapscript.c 
> php_mapscript_util.c  php_proj.c
> 
> if i type make in the php3 directory:  (and thats only the very last part of
> the output)
> 
> 
> /usr/include/php/main/php_reentrancy.h:52: error: syntax error before
> "BEGIN_EXTERN_C"
> In file included from php_mapscript_util.c:33:
> php_mapscript_util.h:117: error: syntax error before '*' token
> php_mapscript_util.h:121: error: syntax error before '*' token
> php_mapscript_util.h:124: error: syntax error before '*' token
> php_mapscript_util.h:127: error: syntax error before '*' token
> php_mapscript_util.h:130: error: syntax error before '*' token
> php_mapscript_util.h:132: error: syntax error before '*' token
> php_mapscript_util.h:134: error: syntax error before '*' token
> php_mapscript_util.h:136: error: syntax error before '*' token
> php_mapscript_util.h:138: error: syntax error before '*' token
> php_mapscript_util.h:140: error: syntax error before '*' token
> php_mapscript_util.h:141: error: syntax error before '*' token
> php_mapscript_util.h:143: error: syntax error before '*' token
> php_mapscript_util.h:145: error: syntax error before '*' token
> php_mapscript_util.h:148: error: syntax error before '*' token
> In file included from php_mapscript_util.c:34:
> /tmp/Mapserver5/mapserver-5.0.0/maperror.h:101: warning: structure defined
> inside parms
> /tmp/Mapserver5/mapserver-5.0.0/maperror.h:101: error: storage class
> specified for parameter `errorObj'
> /tmp/Mapserver5/mapserver-5.0.0/maperror.h:106: error: syntax error before
> "errorObj"
> /tmp/Mapserver5/mapserver-5.0.0/maperror.h:114: error: syntax error before
> '*' token
> /tmp/Mapserver5/mapserver-5.0.0/maperror.h:115: error: syntax error before
> '*' token
> /tmp/Mapserver5/mapserver-5.0.0/maperror.h:117: error: syntax error before
> "errorObj"
> /tmp/Mapserver5/mapserver-5.0.0/maperror.h:119: warning: empty declaration
> /tmp/Mapserver5/mapserver-5.0.0/maperror.h:134: warning: enum defined inside
> parms
> /tmp/Mapserver5/mapserver-5.0.0/maperror.h:134: error: storage class
> specified for parameter `debugLevel'
> /tmp/Mapserver5/mapserver-5.0.0/maperror.h:143: warning: enum defined inside
> parms
> /tmp/Mapserver5/mapserver-5.0.0/maperror.h:143: error: storage class
> specified for parameter `debugMode'
> /tmp/Mapserver5/mapserver-5.0.0/maperror.h:147: error: syntax error before
> "debugLevel"
> /tmp/Mapserver5/mapserver-5.0.0/maperror.h:147: warning: no semicolon at end
> of struct or union
> /tmp/Mapserver5/mapserver-5.0.0/maperror.h:150: error: syntax error before
> "FILE"
> /tmp/Mapserver5/mapserver-5.0.0/maperror.h:154: error: syntax error before
> '}' token
> /tmp/Mapserver5/mapserver-5.0.0/maperror.h:162: error: syntax error before
> "debugLevel"
> php_mapscript_util.c:45: error: redefinition of parameter
> '_phpms_report_mapserver_error'
> php_mapscript_util.h:115: error: previous definition of
> '_phpms_report_mapserver_error' was here
> php_mapscript_util.c:45: error: syntax error before '{' token
> php_mapscript_util.c:71: error: parameter `retVal' is initialized
> php_mapscript_util.c:73: error: syntax error before "if"
> php_mapscript_util.c:122: error: parameter `retVal' is initialized
> php_mapscript_util.c:122: error: redefinition of parameter 'retVal'
> php_mapscript_util.c:71: error: previous definition of 'retVal' was here
> php_mapscript_util.c:125: error: syntax error before "if"
> php_mapscript_util.c:464: error: parameter `string_key' is initialized
> php_mapscript_util.c:466: error: parameter `i' is initialized
> php_mapscript_util.c:468: error: syntax error before "for"
> make: *** [php_mapscript_util.o] Error 1
> 
> 
> 
> 
> Guillaume Sueur-2 wrote:
>> it looks ok.
>> can you check your mapserver-5.0.0/mapscript/php3/ again and make sure
>> php_mapscript.so is not in it ?
>> If not, like Umberto said, try to type make in that directory and see
>> what happen
>>
>> R. Ortner a écrit :
>>> Sorry but I´ve never done something like installing mapserver before,...
>>>
>>> I even don´t know what the php-devel package is.
>>> If u mean the config.log file, there is something like:
>>>
>>>    configure:11379: checking for PHP/MapScript module options...
>>>    configure:11654: checking for location of config.h or php_config.h
>>>    configure:11665: result: /usr/include/php/main//php_config.h
>>>    configure:11677: checking whether we have PHP3 or PHP4
>>>    configure:11691: result: -DPHP4
>>>    configure:11694: checking whether we should use PHP's regex
>>>    configure:11717: result: no
>>>    configure:11740: result:         PHP/MapScript module configured.
>>>    configure:12018: checking if --enable-runpath requested
>>>    configure:12028: result: no
>>>    configure:12036: checking if --with-java-include-os-name specified
>>>    configure:12057: result: no, autodetected linux
>>>    configure:12208: creating ./config.status
>>>
>>>
>>>
>>>
>>> Guillaume Sueur-2 wrote:
>>>> maybe you should check the configure output as it can claims for php
>>>> header files. do you have the php-devel package installed as well ?
>>>>
>>>>
>>>> R. Ortner a écrit :
>>>>> I tried to replace my /usr/lib/php/extensions/php_mapscript.so but in
>>>>> the
>>>>> mapserver5 folder (downloaded from
>>>>> http://mapserver.gis.umn.edu/download/current/) is no php_mapserver.so
>>>>> in
>>>>> the /mapserver/php3 folder!?
>>>>>
>>>>>
>>>>>
>>>>> Umberto wrote:
>>>>>> In fact now you have the *CGI* version of mapserver installed. But
>>>>>> since you use php mapscript you need to configure, compile and install
>>>>>> php mapscript.
>>>>>> You should be able to do that just by:
>>>>>>
>>>>>> mapserver-5-source$ cd mapscript/php3
>>>>>> mapserver-5-source$ make
>>>>>>
>>>>>> and then replace with the new php_*.so the old ones picked up in
>>>>>> php.ini
>>>>>>
>>>>>> HTH,
>>>>>> Umberto
>>>>>>
>>>>>>
>>>>>>
>>>>>> ----
>>>>>> Hi,
>>>>>>
>>>>>> I have Mapserver 4.10 installed and tried to install the mapserver
>>>>>> 5.0.0.
>>>>>>
>>>>>> I´ve configured the mapserver with 
>>>>>>
>>>>>>
>>>>>> ./configure --with-ogr=/usr/bin/gdal-config --with-wfs --with-proj
>>>>>> --with-postgis --with-gdal --with-geos --with-wmsclient --with-wcs
>>>>>> --with-sos --with-php=/usr/include/php/main/ --with-threads
>>>>>>
>>>>>> and then executed the make command.
>>>>>> after copying the mapserv file to my cgi-bin folder where the old one
>>>>>> (from mapserver 4) was I thougtt that I now have mapserver 5
>>>>>> installed,
>>>>>> but when I call the test.php which shows me what version is installed,
>>>>>> it
>>>>>> tells me still Mapserver 4.10.
>>>>>>
>>>>>> Is there something special to do to activate the mapserver 5 (i
>>>>>> thought
>>>>>> with installing the version 4 the old version should be either
>>>>>> overwritten
>>>>>> or working parallel by calling the new mapserv or the old mapserv
>>>>>> (which
>>>>>> I
>>>>>> copied to a subfolder (mapserver4/mapserv).
>>>>>>
>>>>>> regards
>>>>>>
>>>> -- 
>>>> Guillaume SUEUR
>>>> Expert SIG et OpenSource
>>>> NEOGEO
>>>> 46 RUE MATABIAU
>>>> 31000 TOULOUSE
>>>> 06 65 58 88 82
>>>> Site web : http://www.neogeo-online.net
>>>>
>>>>
>> -- 
>> Guillaume SUEUR
>> Expert SIG et OpenSource
>> NEOGEO
>> 46 RUE MATABIAU
>> 31000 TOULOUSE
>> 06 65 58 88 82
>> Site web : http://www.neogeo-online.net
>>
>>
> 


-- 
Daniel Morissette
http://www.mapgears.com/



More information about the mapserver-users mailing list