I am unable to compile PHP6 with "--with-pgsql" on OpenSUSE 10.3. Every
time I've tried (three different snapshots - the "1130" one from
yesterday and the "1330" and "1530" snaps from today), the "make"
process ends up dying with errors:
/bin/sh /home/michael/Desktop/php6.0-200711291530/libtool --silent
--preserve-dup-deps --mode=compile
/home/michael/Desktop/php6.0-200711291530/meta_ccld -Iext/pgsql/
-I/home/michael/Desktop/php6.0-200711291530/ext/pgsql/ -DPHP_ATOM_INC
-I/home/micahel/Desktop/php6.0-200711291530/include
-I/home/michael/Desktop/php6.0-200711291530/main
-I/home/michael/desktop/php6.0-200711291530
-I/home/michael/Desktop/php6.0-200711291530/ext/ereg/regex
-I/usr/include/libxml2
-I/home/michael/Desktop/php6.0-200711291530/pcrelib
-I/home/michael/Desktop/php6.0-200711291530/ext/date/lib
-I/usr/include/freetype2
-I/home/michael/Desktop/php6.0-200711291530/ext/mbstring/libmfl
-I/home/michael/Desktop/php6.0-200711291530/ext/mbstring/libmbfl/mbfl
-I/usr/include/mysql -I/usr/include/pspell
-I/home/michael/Desktop/php6.0-200711291530/TSRM
-I/home/michael/Desktop/php6.0-200711291530/Zend -DREENTRANT -DTHREAD=1
-I/usr/include -g -O2 -pthread -DZTS -prefer-non-pic -c
/home/michael/Desktop/php6.0-200711291530/ext/pgsql/pgsql.c -o
ext/pgsql/pgsql.lo
/home/michael/Desktop/php6.0-200711291530/ext/pgsql/pgsql.c: In function
'php_pgsql_convert':
/home/michael/Desktop/php6.0-200711291530/ext/pgsql/pgsql.c:4673:
warning: passing argument 2 of 'zend_hash_get_current_key_ex' from
incompatible pointer type
/home/michael/Desktop/php6.0-200711291530/ext/pgsql/pgsql.c: In function
'php_pgsql_insert':
/home/michael/Desktop/php6.0-200711291530/ext/pgsql/pgsql.c:5371:
warning: passing argument 2 of 'zend_hash_get_current_key_ex' from
incompatible pointer type
/home/michael/Desktop/php6.0-200711291530/ext/pgsql/pgsql.c: In function
'build_assignment_string':
/home/michael/Desktop/php6.0-200711291530/ext/pgsql/pgsql.c:5486:
warning: passing argument 2 of 'zend_hash_get_current_key_ex' from
incompatible pointer type
/home/michael/Desktop/php6.0-200711291530/ext/pgsql/pgsql.c: In function
'php_pgsql_result2array':
/home/michael/Desktop/php6.0-200711291530/ext/pgsql/pgsql.c:5472: error:
'data_len' undeclared (first use in this function)
/home/michael/Desktop/php6.0-200711291530/ext/pgsql/pgsql.c:5472: error:
(Each undeclared identifier is reported only once
/home/michael/Desktop/php6.0-200711291530/ext/pgsql/pgsql.c:5472: error:
for each function it appears in.)
/home/michael/Desktop/php6.0-200711291530/ext/pgsql/pgsql.c:5473: error:
'data' undeclared (first use in this function)
make: *** [ext/pgsql/pgsql.lo] Error 1
I am using PostgreSQL 8.3 Beta 1 (compiled manually) if that makes any
difference.
--
Michael Eshom
Christian Oldies Fan
Cincinnati, Ohio