(Thanks again Steve, fastcgi dropped, that got me over the lfcgi hurdle)

G'day all,

Step by Step, now I am into the php build, and more errors - I suspect related to the switch into the php3 directory? (I have php5)

I have attached the terminal output from where it starts to go wrong... sorry it is a rather long attachment, and I suspect it is mostly redundant, but if anyone had any ideas I would be very grateful.

again, this is using MS4.10.1 on Apache/2.2.4 (FreeBSD) mod_ssl/2.2.4 OpenSSL/0.9.7e-p1 DAV/2 PHP/5.2.1 with Suhosin-Patch

cheers

Ben



/usr/local/lib/libjasper.so: warning: warning: tmpnam() possibly used unsafely; consider using mkstemp()
cd mapscript/php3; make; cd ../..
gcc -fPIC -g -O2 -fPIC -Wall -DUSE_PHP_REGEX -DCOMPILE_DL=1 -DPHP4 - c php_mapscript_util.c
In file included from php_mapscript_util.c:117:
php_mapscript_util.h:64:17: php.h: No such file or directory
php_mapscript_util.h:65:25: php_globals.h: No such file or directory
In file included from php_mapscript_util.c:117:
php_mapscript_util.h:132: error: syntax error before '*' token
php_mapscript_util.h:147: error: syntax error before '*' token
php_mapscript_util.h:151: error: syntax error before '*' token
php_mapscript_util.h:154: error: syntax error before '*' token
php_mapscript_util.h:157: error: syntax error before '*' token
php_mapscript_util.h:160: error: syntax error before '*' token
php_mapscript_util.h:162: error: syntax error before '*' token
php_mapscript_util.h:164: error: syntax error before '*' token
php_mapscript_util.h:166: error: syntax error before '*' token
php_mapscript_util.h:168: error: syntax error before '*' token
php_mapscript_util.h:170: error: syntax error before '*' token
php_mapscript_util.h:171: error: syntax error before '*' token
php_mapscript_util.h:173: error: syntax error before '*' token
php_mapscript_util.h:175: error: syntax error before '*' token
php_mapscript_util.h:178: error: syntax error before '*' token
php_mapscript_util.c:118:22: maperror.h: No such file or directory
php_mapscript_util.c: In function `_phpms_report_mapserver_error':
php_mapscript_util.c:130: error: `errorObj' undeclared (first use in this function) php_mapscript_util.c:130: error: (Each undeclared identifier is reported only once
php_mapscript_util.c:130: error: for each function it appears in.)
php_mapscript_util.c:130: error: `ms_error' undeclared (first use in this function) php_mapscript_util.c:132: warning: implicit declaration of function `msGetErrorObj' php_mapscript_util.c:134: error: `MS_NOERR' undeclared (first use in this function) php_mapscript_util.c:136: warning: implicit declaration of function `php3_error'
php_mapscript_util.c: At top level:
php_mapscript_util.c:149: error: syntax error before '*' token
php_mapscript_util.c: In function `_phpms_fetch_handle2':
php_mapscript_util.c:154: error: `pval' undeclared (first use in this function) php_mapscript_util.c:154: error: `phandle' undeclared (first use in this function) php_mapscript_util.c:155: error: `NULL' undeclared (first use in this function) php_mapscript_util.c:157: error: `pObj' undeclared (first use in this function) php_mapscript_util.c:157: error: `IS_OBJECT' undeclared (first use in this function) php_mapscript_util.c:159: error: `E_ERROR' undeclared (first use in this function) php_mapscript_util.c:162: warning: implicit declaration of function `zend_hash_find' php_mapscript_util.c:162: warning: implicit declaration of function `Z_OBJPROP_P' php_mapscript_util.c:164: error: `FAILURE' undeclared (first use in this function) php_mapscript_util.c:173: warning: implicit declaration of function `php3_list_find' php_mapscript_util.c:175: error: `handle_type1' undeclared (first use in this function) php_mapscript_util.c:175: error: `handle_type2' undeclared (first use in this function)
php_mapscript_util.c: At top level:
php_mapscript_util.c:191: error: syntax error before '*' token
php_mapscript_util.c: In function `_phpms_fetch_handle':
php_mapscript_util.c:194: error: `pObj' undeclared (first use in this function) php_mapscript_util.c:194: error: `handle_type' undeclared (first use in this function) php_mapscript_util.c:194: error: `list' undeclared (first use in this function)
php_mapscript_util.c: At top level:
php_mapscript_util.c:201: error: syntax error before '*' token
php_mapscript_util.c: In function `_phpms_fetch_property_handle2':
php_mapscript_util.c:205: error: `pval' undeclared (first use in this function) php_mapscript_util.c:205: error: `phandle' undeclared (first use in this function) php_mapscript_util.c:206: error: `NULL' undeclared (first use in this function) php_mapscript_util.c:209: error: `pObj' undeclared (first use in this function) php_mapscript_util.c:209: error: `IS_OBJECT' undeclared (first use in this function) php_mapscript_util.c:211: error: `err_type' undeclared (first use in this function) php_mapscript_util.c:214: error: `property_name' undeclared (first use in this function) php_mapscript_util.c:215: warning: implicit declaration of function `strlen' php_mapscript_util.c:216: error: `FAILURE' undeclared (first use in this function) php_mapscript_util.c:223: error: `IS_RESOURCE' undeclared (first use in this function) php_mapscript_util.c:225: error: `handle_type1' undeclared (first use in this function) php_mapscript_util.c:225: error: `handle_type2' undeclared (first use in this function)
php_mapscript_util.c: At top level:
php_mapscript_util.c:239: error: syntax error before '*' token
php_mapscript_util.c: In function `_phpms_fetch_property_handle':
php_mapscript_util.c:243: error: `pObj' undeclared (first use in this function) php_mapscript_util.c:243: error: `property_name' undeclared (first use in this function) php_mapscript_util.c:244: error: `handle_type' undeclared (first use in this function) php_mapscript_util.c:245: error: `list' undeclared (first use in this function) php_mapscript_util.c:245: error: `err_type' undeclared (first use in this function)
php_mapscript_util.c: At top level:
php_mapscript_util.c:251: error: syntax error before '*' token
php_mapscript_util.c: In function `_phpms_fetch_property_string':
php_mapscript_util.c:255: error: `pval' undeclared (first use in this function) php_mapscript_util.c:255: error: `phandle' undeclared (first use in this function) php_mapscript_util.c:257: error: `pObj' undeclared (first use in this function) php_mapscript_util.c:257: error: `IS_OBJECT' undeclared (first use in this function) php_mapscript_util.c:259: error: `err_type' undeclared (first use in this function) php_mapscript_util.c:263: error: `property_name' undeclared (first use in this function) php_mapscript_util.c:264: error: `FAILURE' undeclared (first use in this function) php_mapscript_util.c:271: warning: implicit declaration of function `convert_to_string'
php_mapscript_util.c: At top level:
php_mapscript_util.c:278: error: syntax error before '*' token
php_mapscript_util.c: In function `_phpms_fetch_property_long':
php_mapscript_util.c:281: error: `pval' undeclared (first use in this function) php_mapscript_util.c:281: error: `phandle' undeclared (first use in this function) php_mapscript_util.c:283: error: `pObj' undeclared (first use in this function) php_mapscript_util.c:283: error: `IS_OBJECT' undeclared (first use in this function) php_mapscript_util.c:285: error: `err_type' undeclared (first use in this function) php_mapscript_util.c:288: error: `property_name' undeclared (first use in this function) php_mapscript_util.c:290: error: `FAILURE' undeclared (first use in this function) php_mapscript_util.c:297: error: `IS_RESOURCE' undeclared (first use in this function) php_mapscript_util.c:304: warning: implicit declaration of function `convert_to_long'
php_mapscript_util.c: At top level:
php_mapscript_util.c:311: error: syntax error before '*' token
php_mapscript_util.c: In function `_phpms_fetch_property_double':
php_mapscript_util.c:314: error: `pval' undeclared (first use in this function) php_mapscript_util.c:314: error: `phandle' undeclared (first use in this function) php_mapscript_util.c:316: error: `pObj' undeclared (first use in this function) php_mapscript_util.c:316: error: `IS_OBJECT' undeclared (first use in this function) php_mapscript_util.c:318: error: `err_type' undeclared (first use in this function) php_mapscript_util.c:321: error: `property_name' undeclared (first use in this function) php_mapscript_util.c:323: error: `FAILURE' undeclared (first use in this function) php_mapscript_util.c:330: warning: implicit declaration of function `convert_to_double'
php_mapscript_util.c: At top level:
php_mapscript_util.c:337: error: syntax error before '*' token
php_mapscript_util.c: In function `_phpms_fetch_property_resource':
php_mapscript_util.c:340: error: `pval' undeclared (first use in this function) php_mapscript_util.c:340: error: `phandle' undeclared (first use in this function) php_mapscript_util.c:342: error: `pObj' undeclared (first use in this function) php_mapscript_util.c:342: error: `IS_OBJECT' undeclared (first use in this function) php_mapscript_util.c:344: error: `err_type' undeclared (first use in this function) php_mapscript_util.c:347: error: `property_name' undeclared (first use in this function) php_mapscript_util.c:349: error: `FAILURE' undeclared (first use in this function) php_mapscript_util.c:356: error: `IS_RESOURCE' undeclared (first use in this function)
php_mapscript_util.c: At top level:
php_mapscript_util.c:373: error: syntax error before '*' token
php_mapscript_util.c: In function `_phpms_set_property_string':
php_mapscript_util.c:376: error: `pval' undeclared (first use in this function) php_mapscript_util.c:376: error: `phandle' undeclared (first use in this function) php_mapscript_util.c:378: error: `pObj' undeclared (first use in this function) php_mapscript_util.c:378: error: `IS_OBJECT' undeclared (first use in this function) php_mapscript_util.c:380: error: `err_type' undeclared (first use in this function) php_mapscript_util.c:383: error: `property_name' undeclared (first use in this function) php_mapscript_util.c:385: error: `FAILURE' undeclared (first use in this function) php_mapscript_util.c:392: warning: implicit declaration of function `SEPARATE_ZVAL' php_mapscript_util.c:393: warning: implicit declaration of function `zval_dtor' php_mapscript_util.c:394: warning: implicit declaration of function `ZVAL_STRING' php_mapscript_util.c:394: error: `szNewValue' undeclared (first use in this function)
php_mapscript_util.c: At top level:
php_mapscript_util.c:402: error: syntax error before '*' token
php_mapscript_util.c: In function `_phpms_set_property_null':
php_mapscript_util.c:404: error: `pval' undeclared (first use in this function) php_mapscript_util.c:404: error: `phandle' undeclared (first use in this function) php_mapscript_util.c:406: error: `pObj' undeclared (first use in this function) php_mapscript_util.c:406: error: `IS_OBJECT' undeclared (first use in this function) php_mapscript_util.c:408: error: `err_type' undeclared (first use in this function) php_mapscript_util.c:411: error: `property_name' undeclared (first use in this function) php_mapscript_util.c:413: error: `FAILURE' undeclared (first use in this function) php_mapscript_util.c:422: warning: implicit declaration of function `ZVAL_NULL'
php_mapscript_util.c: At top level:
php_mapscript_util.c:430: error: syntax error before '*' token
php_mapscript_util.c: In function `_phpms_set_property_long':
php_mapscript_util.c:433: error: `pval' undeclared (first use in this function) php_mapscript_util.c:433: error: `phandle' undeclared (first use in this function) php_mapscript_util.c:435: error: `pObj' undeclared (first use in this function) php_mapscript_util.c:435: error: `IS_OBJECT' undeclared (first use in this function) php_mapscript_util.c:437: error: `err_type' undeclared (first use in this function) php_mapscript_util.c:440: error: `property_name' undeclared (first use in this function) php_mapscript_util.c:442: error: `FAILURE' undeclared (first use in this function) php_mapscript_util.c:451: warning: implicit declaration of function `ZVAL_LONG' php_mapscript_util.c:451: error: `lNewValue' undeclared (first use in this function)
php_mapscript_util.c: At top level:
php_mapscript_util.c:459: error: syntax error before '*' token
php_mapscript_util.c: In function `_phpms_set_property_double':
php_mapscript_util.c:462: error: `pval' undeclared (first use in this function) php_mapscript_util.c:462: error: `phandle' undeclared (first use in this function) php_mapscript_util.c:464: error: `pObj' undeclared (first use in this function) php_mapscript_util.c:464: error: `IS_OBJECT' undeclared (first use in this function) php_mapscript_util.c:466: error: `err_type' undeclared (first use in this function) php_mapscript_util.c:469: error: `property_name' undeclared (first use in this function) php_mapscript_util.c:471: error: `FAILURE' undeclared (first use in this function) php_mapscript_util.c:480: warning: implicit declaration of function `ZVAL_DOUBLE' php_mapscript_util.c:480: error: `dNewValue' undeclared (first use in this function)
php_mapscript_util.c: At top level:
php_mapscript_util.c:488: error: syntax error before '*' token
php_mapscript_util.c: In function `_phpms_add_property_object':
php_mapscript_util.c:492: warning: implicit declaration of function `add_property_zval' php_mapscript_util.c:492: error: `pObj' undeclared (first use in this function) php_mapscript_util.c:492: error: `property_name' undeclared (first use in this function) php_mapscript_util.c:492: error: `pObjToAdd' undeclared (first use in this function) php_mapscript_util.c:492: error: `FAILURE' undeclared (first use in this function) php_mapscript_util.c:494: error: `err_type' undeclared (first use in this function)
php_mapscript_util.c: At top level:
php_mapscript_util.c:511: error: syntax error before '*' token
php_mapscript_util.c: In function `_phpms_object_init':
php_mapscript_util.c:515: error: `zend_class_entry' undeclared (first use in this function) php_mapscript_util.c:515: error: `new_class_entry_ptr' undeclared (first use in this function)
php_mapscript_util.c:516: error: syntax error before ')' token
php_mapscript_util.c:518: warning: implicit declaration of function `object_init_ex' php_mapscript_util.c:518: error: `return_value' undeclared (first use in this function) php_mapscript_util.c:519: warning: implicit declaration of function `add_property_resource' php_mapscript_util.c:519: error: `handle_id' undeclared (first use in this function)
php_mapscript_util.c: At top level:
php_mapscript_util.c:541: error: syntax error before '*' token
php_mapscript_util.c: In function `_php_extract_associative_array':
php_mapscript_util.c:547: error: `zval' undeclared (first use in this function) php_mapscript_util.c:547: error: `value' undeclared (first use in this function) php_mapscript_util.c:548: error: `NULL' undeclared (first use in this function)
php_mapscript_util.c:549: error: syntax error before "num_key"
php_mapscript_util.c:552: warning: implicit declaration of function `zend_hash_internal_pointer_reset' php_mapscript_util.c:552: error: `php' undeclared (first use in this function) php_mapscript_util.c:553: warning: implicit declaration of function `zend_hash_get_current_data' php_mapscript_util.c:553: error: `SUCCESS' undeclared (first use in this function) php_mapscript_util.c:554: warning: implicit declaration of function `zend_hash_move_forward' php_mapscript_util.c:557: warning: implicit declaration of function `convert_to_string_ex' php_mapscript_util.c:559: warning: implicit declaration of function `zend_hash_get_current_key' php_mapscript_util.c:559: error: `num_key' undeclared (first use in this function) php_mapscript_util.c:561: error: `HASH_KEY_IS_STRING' undeclared (first use in this function) php_mapscript_util.c:562: error: `array' undeclared (first use in this function) php_mapscript_util.c:563: warning: implicit declaration of function `Z_STRVAL_PP'
*** Error code 1

Stop in /usr/local/mapserver-4.10.1/mapscript/php3.
*** Error code 1

Stop in /usr/local/mapserver-4.10.1.
freebsd#



On 18/04/2007, at 8:59 PM, Stephen Woodbridge wrote:

Ben,

Sounds like it might be a freeBSD bug in mapserver .configure script. You requested --with-fastcgi and I would think that since it did not find it is should have dropped the -lfcgi, but did not. You should probably write this up as a bug.

fastcgi is on little or no benefit unless you are using oracle and need connection pooling. So try to configure --without-fastcgi ot just remove the --with-fastcgi option. If one fails try the other.

-Steve W

--

Ben Madin
REMOTE INFORMATION

t : +61 8 9192 5455
f : +61 8 9192 5535
m : 0448 887 220
Broome   WA   6725

[EMAIL PROTECTED]





                                        Out here, it pays to know...









Reply via email to