php/mapscript installation error

Lambang Nugroho lambangnugroho at TELKOM.NET
Mon Sep 13 15:46:07 EDT 2004


Hi All!

I've been install mapserver-4.0.2 in FreeBSD 5.2.1, it's end up with this
error message:

cc -fPIC -O -pipe -mcpu=pentiumpro -Wall -DCOMPILE_DL=1 -DPHP4 -c
php_mapscript_util.c
In file included from php_mapscript_util.c:101:
php_mapscript_util.h:58:17: php.h: No such file or directory
php_mapscript_util.h:59:25: php_globals.h: No such file or directory
In file included from php_mapscript_util.c:101:
php_mapscript_util.h:118: error: syntax error before '*' token
php_mapscript_util.h:133: error: syntax error before '*' token
php_mapscript_util.h:137: error: syntax error before '*' token
php_mapscript_util.h:140: error: syntax error before '*' token
php_mapscript_util.h:143: error: syntax error before '*' token
php_mapscript_util.h:146: error: syntax error before '*' token
php_mapscript_util.h:148: error: syntax error before '*' token
php_mapscript_util.h:150: error: syntax error before '*' token
php_mapscript_util.h:152: error: syntax error before '*' token
php_mapscript_util.h:154: error: syntax error before '*' token
php_mapscript_util.h:156: error: syntax error before '*' token
php_mapscript_util.h:158: error: syntax error before '*' token
php_mapscript_util.h:160: error: syntax error before '*' token
php_mapscript_util.h:163: error: syntax error before '*' token
php_mapscript_util.c:102:22: maperror.h: No such file or directory
php_mapscript_util.c: In function `_phpms_report_mapserver_error':
php_mapscript_util.c:113: error: `errorObj' undeclared (first use in this
function)
php_mapscript_util.c:113: error: (Each undeclared identifier is reported
only once
php_mapscript_util.c:113: error: for each function it appears in.)
php_mapscript_util.c:113: error: `ms_error' undeclared (first use in this
function)
php_mapscript_util.c:115: warning: implicit declaration of function
`msGetErrorObj'
php_mapscript_util.c:117: error: `MS_NOERR' undeclared (first use in this
function)
php_mapscript_util.c:119: warning: implicit declaration of function `php3_error'
php_mapscript_util.c: At top level:
php_mapscript_util.c:132: error: syntax error before '*' token
php_mapscript_util.c: In function `_phpms_fetch_handle2':
php_mapscript_util.c:137: error: `pval' undeclared (first use in this function)
php_mapscript_util.c:137: error: `phandle' undeclared (first use in this
function)
php_mapscript_util.c:138: error: `NULL' undeclared (first use in this function)
php_mapscript_util.c:140: error: `pObj' undeclared (first use in this function)
php_mapscript_util.c:140: error: `IS_OBJECT' undeclared (first use in this
function)
php_mapscript_util.c:142: error: `E_ERROR' undeclared (first use in this
function)
php_mapscript_util.c:145: warning: implicit declaration of function
`zend_hash_find'
php_mapscript_util.c:147: error: `FAILURE' undeclared (first use in this
function)
php_mapscript_util.c:156: warning: implicit declaration of function
`php3_list_find'
php_mapscript_util.c:158: error: `handle_type1' undeclared (first use in
this function)
php_mapscript_util.c:158: error: `handle_type2' undeclared (first use in
this function)
php_mapscript_util.c: At top level:
php_mapscript_util.c:174: error: syntax error before '*' token
php_mapscript_util.c: In function `_phpms_fetch_handle':
php_mapscript_util.c:177: error: `pObj' undeclared (first use in this function)
php_mapscript_util.c:177: error: `handle_type' undeclared (first use in this
function)
php_mapscript_util.c:177: error: `list' undeclared (first use in this function)
php_mapscript_util.c: At top level:
php_mapscript_util.c:184: error: syntax error before '*' token
php_mapscript_util.c: In function `_phpms_fetch_property_handle2':
php_mapscript_util.c:188: error: `pval' undeclared (first use in this function)
php_mapscript_util.c:188: error: `phandle' undeclared (first use in this
function)
php_mapscript_util.c:189: error: `NULL' undeclared (first use in this function)
php_mapscript_util.c:192: error: `pObj' undeclared (first use in this function)
php_mapscript_util.c:192: error: `IS_OBJECT' undeclared (first use in this
function)
php_mapscript_util.c:194: error: `err_type' undeclared (first use in this
function)
php_mapscript_util.c:197: error: `property_name' undeclared (first use in
this function)
php_mapscript_util.c:198: warning: implicit declaration of function `strlen'
php_mapscript_util.c:199: error: `FAILURE' undeclared (first use in this
function)
php_mapscript_util.c:206: error: `IS_RESOURCE' undeclared (first use in this
function)
php_mapscript_util.c:208: error: `handle_type1' undeclared (first use in
this function)
php_mapscript_util.c:208: error: `handle_type2' undeclared (first use in
this function)
php_mapscript_util.c: At top level:
php_mapscript_util.c:222: error: syntax error before '*' token
php_mapscript_util.c: In function `_phpms_fetch_property_handle':
php_mapscript_util.c:226: error: `pObj' undeclared (first use in this function)
php_mapscript_util.c:226: error: `property_name' undeclared (first use in
this function)
php_mapscript_util.c:227: error: `handle_type' undeclared (first use in this
function)
php_mapscript_util.c:228: error: `list' undeclared (first use in this function)
php_mapscript_util.c:228: error: `err_type' undeclared (first use in this
function)
php_mapscript_util.c: At top level:
php_mapscript_util.c:234: error: syntax error before '*' token
php_mapscript_util.c: In function `_phpms_fetch_property_string':
php_mapscript_util.c:237: error: `pval' undeclared (first use in this function)
php_mapscript_util.c:237: error: `phandle' undeclared (first use in this
function)
php_mapscript_util.c:239: error: `pObj' undeclared (first use in this function)
php_mapscript_util.c:239: error: `IS_OBJECT' undeclared (first use in this
function)
php_mapscript_util.c:241: error: `err_type' undeclared (first use in this
function)
php_mapscript_util.c:245: error: `property_name' undeclared (first use in
this function)
php_mapscript_util.c:246: error: `FAILURE' undeclared (first use in this
function)
php_mapscript_util.c:253: warning: implicit declaration of function
`convert_to_string'
php_mapscript_util.c: At top level:
php_mapscript_util.c:260: error: syntax error before '*' token
php_mapscript_util.c: In function `_phpms_fetch_property_long':
php_mapscript_util.c:263: error: `pval' undeclared (first use in this function)
php_mapscript_util.c:263: error: `phandle' undeclared (first use in this
function)
php_mapscript_util.c:265: error: `pObj' undeclared (first use in this function)
php_mapscript_util.c:265: error: `IS_OBJECT' undeclared (first use in this
function)
php_mapscript_util.c:267: error: `err_type' undeclared (first use in this
function)
php_mapscript_util.c:270: error: `property_name' undeclared (first use in
this function)
php_mapscript_util.c:272: error: `FAILURE' undeclared (first use in this
function)
php_mapscript_util.c:279: error: `IS_RESOURCE' undeclared (first use in this
function)
php_mapscript_util.c:286: warning: implicit declaration of function
`convert_to_long'
php_mapscript_util.c: At top level:
php_mapscript_util.c:293: error: syntax error before '*' token
php_mapscript_util.c: In function `_phpms_fetch_property_double':
php_mapscript_util.c:296: error: `pval' undeclared (first use in this function)
php_mapscript_util.c:296: error: `phandle' undeclared (first use in this
function)
php_mapscript_util.c:298: error: `pObj' undeclared (first use in this function)
php_mapscript_util.c:298: error: `IS_OBJECT' undeclared (first use in this
function)
php_mapscript_util.c:300: error: `err_type' undeclared (first use in this
function)
php_mapscript_util.c:303: error: `property_name' undeclared (first use in
this function)
php_mapscript_util.c:305: error: `FAILURE' undeclared (first use in this
function)
php_mapscript_util.c:312: warning: implicit declaration of function
`convert_to_double'
php_mapscript_util.c: At top level:
php_mapscript_util.c:319: error: syntax error before '*' token
php_mapscript_util.c: In function `_phpms_fetch_property_resource':
php_mapscript_util.c:322: error: `pval' undeclared (first use in this function)
php_mapscript_util.c:322: error: `phandle' undeclared (first use in this
function)
php_mapscript_util.c:324: error: `pObj' undeclared (first use in this function)
php_mapscript_util.c:324: error: `IS_OBJECT' undeclared (first use in this
function)
php_mapscript_util.c:326: error: `err_type' undeclared (first use in this
function)
php_mapscript_util.c:329: error: `property_name' undeclared (first use in
this function)
php_mapscript_util.c:331: error: `FAILURE' undeclared (first use in this
function)
php_mapscript_util.c:338: error: `IS_RESOURCE' undeclared (first use in this
function)
php_mapscript_util.c: At top level:
php_mapscript_util.c:355: error: syntax error before '*' token
php_mapscript_util.c: In function `_phpms_set_property_string':
php_mapscript_util.c:358: error: `pval' undeclared (first use in this function)
php_mapscript_util.c:358: error: `phandle' undeclared (first use in this
function)
php_mapscript_util.c:360: error: `pObj' undeclared (first use in this function)
php_mapscript_util.c:360: error: `IS_OBJECT' undeclared (first use in this
function)
php_mapscript_util.c:362: error: `err_type' undeclared (first use in this
function)
php_mapscript_util.c:365: error: `property_name' undeclared (first use in
this function)
php_mapscript_util.c:367: error: `FAILURE' undeclared (first use in this
function)
php_mapscript_util.c:374: warning: implicit declaration of function
`SEPARATE_ZVAL'
php_mapscript_util.c:375: warning: implicit declaration of function `zval_dtor'
php_mapscript_util.c:376: warning: implicit declaration of function
`ZVAL_STRING'
php_mapscript_util.c:376: error: `szNewValue' undeclared (first use in this
function)
php_mapscript_util.c: At top level:
php_mapscript_util.c:384: error: syntax error before '*' token
php_mapscript_util.c: In function `_phpms_set_property_long':
php_mapscript_util.c:387: error: `pval' undeclared (first use in this function)
php_mapscript_util.c:387: error: `phandle' undeclared (first use in this
function)
php_mapscript_util.c:389: error: `pObj' undeclared (first use in this function)
php_mapscript_util.c:389: error: `IS_OBJECT' undeclared (first use in this
function)
php_mapscript_util.c:391: error: `err_type' undeclared (first use in this
function)
php_mapscript_util.c:394: error: `property_name' undeclared (first use in
this function)
php_mapscript_util.c:396: error: `FAILURE' undeclared (first use in this
function)
php_mapscript_util.c:405: warning: implicit declaration of function `ZVAL_LONG'
php_mapscript_util.c:405: error: `lNewValue' undeclared (first use in this
function)
php_mapscript_util.c: At top level:
php_mapscript_util.c:413: error: syntax error before '*' token
php_mapscript_util.c: In function `_phpms_set_property_double':
php_mapscript_util.c:416: error: `pval' undeclared (first use in this function)
php_mapscript_util.c:416: error: `phandle' undeclared (first use in this
function)
php_mapscript_util.c:418: error: `pObj' undeclared (first use in this function)
php_mapscript_util.c:418: error: `IS_OBJECT' undeclared (first use in this
function)
php_mapscript_util.c:420: error: `err_type' undeclared (first use in this
function)
php_mapscript_util.c:423: error: `property_name' undeclared (first use in
this function)
php_mapscript_util.c:425: error: `FAILURE' undeclared (first use in this
function)
php_mapscript_util.c:434: warning: implicit declaration of function
`ZVAL_DOUBLE'
php_mapscript_util.c:434: error: `dNewValue' undeclared (first use in this
function)
php_mapscript_util.c: At top level:
php_mapscript_util.c:442: error: syntax error before '*' token
php_mapscript_util.c: In function `_phpms_add_property_object':
php_mapscript_util.c:446: warning: implicit declaration of function
`add_property_zval'
php_mapscript_util.c:446: error: `pObj' undeclared (first use in this function)
php_mapscript_util.c:446: error: `property_name' undeclared (first use in
this function)
php_mapscript_util.c:446: error: `pObjToAdd' undeclared (first use in this
function)
php_mapscript_util.c:446: error: `FAILURE' undeclared (first use in this
function)
php_mapscript_util.c:448: error: `err_type' undeclared (first use in this
function)
php_mapscript_util.c: At top level:
php_mapscript_util.c:465: error: syntax error before '*' token
php_mapscript_util.c: In function `_phpms_object_init':
php_mapscript_util.c:473: error: `zend_class_entry' undeclared (first use in
this function)
php_mapscript_util.c:473: error: `new_class_entry_ptr' undeclared (first use
in this function)
php_mapscript_util.c:474: error: syntax error before ')' token
php_mapscript_util.c:476: warning: implicit declaration of function
`object_init_ex'
php_mapscript_util.c:476: error: `return_value' undeclared (first use in
this function)
php_mapscript_util.c:477: warning: implicit declaration of function
`add_property_resource'
php_mapscript_util.c:477: error: `handle_id' undeclared (first use in this
function)
php_mapscript_util.c: At top level:
php_mapscript_util.c:499: error: syntax error before '*' token
php_mapscript_util.c: In function `_php_extract_associative_array':
php_mapscript_util.c:505: error: `zval' undeclared (first use in this function)
php_mapscript_util.c:505: error: `value' undeclared (first use in this function)
php_mapscript_util.c:506: error: `NULL' undeclared (first use in this function)
php_mapscript_util.c:507: error: syntax error before "num_key"
php_mapscript_util.c:510: warning: implicit declaration of function
`zend_hash_internal_pointer_reset'
php_mapscript_util.c:510: error: `php' undeclared (first use in this function)
php_mapscript_util.c:511: warning: implicit declaration of function
`zend_hash_get_current_data'
php_mapscript_util.c:511: error: `SUCCESS' undeclared (first use in this
function)
php_mapscript_util.c:512: warning: implicit declaration of function
`zend_hash_move_forward'
php_mapscript_util.c:515: warning: implicit declaration of function
`convert_to_string_ex'
php_mapscript_util.c:517: warning: implicit declaration of function
`zend_hash_get_current_key'
php_mapscript_util.c:517: error: `num_key' undeclared (first use in this
function)
php_mapscript_util.c:519: error: `HASH_KEY_IS_STRING' undeclared (first use
in this function)
php_mapscript_util.c:520: error: `array' undeclared (first use in this function)
php_mapscript_util.c:521: warning: implicit declaration of function
`Z_STRVAL_PP'
Error code 1

Stop in /usr/ports/graphics/mapserver/work/mapserver-4.0.2/mapscript/php3.
Error code 1

Stop in /usr/ports/graphics/mapserver/work/mapserver-4.0.2.
Error code 1

Stop in /usr/ports/graphics/mapserver.
Error code 1

Stop in /usr/ports/graphics/mapserver.

Please Help Me!

Thanx

Lambang Nugroho

lambangnugroho at telkom.net



More information about the mapserver-users mailing list