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
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:
/home/michael/Desktop/php6.0-200711291530/ext/pgsql/pgsql.c:5472: error:
'data_len' undeclared (first use in this function)
Patch committed, please try now (I don't have/use Postgres, so I can't test it myself..).
--
Wbr,
Antony Dovgal
Everything worked this time. Still get the "incompatible pointer type"
messages, but it still compiled properly. Thanks!
Antony Dovgal wrote:
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:/home/michael/Desktop/php6.0-200711291530/ext/pgsql/pgsql.c:5472: error:
'data_len' undeclared (first use in this function)Patch committed, please try now (I don't have/use Postgres, so I can't test it myself..).
--
Michael Eshom
Christian Oldies Fan
Cincinnati, Ohio
Everything worked this time. Still get the "incompatible pointer type"
messages, but it still compiled properly. Thanks!
The incompatible pointer type messages are expected since ext/pgsql is not (yet) updated to support Unicode.
And looking at the pgsql maintainers activity, I wouldn't expect any changes in the nearest future.
Want to give them a hand?
--
Wbr,
Antony Dovgal
Wish I could help, but I don't know what needs to be done or how to go
about doing it.
Antony Dovgal wrote:
Everything worked this time. Still get the "incompatible pointer type"
messages, but it still compiled properly. Thanks!The incompatible pointer type messages are expected since ext/pgsql is not (yet) updated to support Unicode.
And looking at the pgsql maintainers activity, I wouldn't expect any changes in the nearest future.
Want to give them a hand?
--
Michael Eshom
Christian Oldies Fan
Cincinnati, Ohio
Wish I could help, but I don't know what needs to be done or how to go
about doing it.
That's no problem, we can show what to do =)
--
Wbr,
Antony Dovgal
I should also mention that I haven't done anything with C in probably 5
or 6 years, but if you're willing to help me out, I'll see what I can do :)
Antony Dovgal wrote:
Wish I could help, but I don't know what needs to be done or how to go
about doing it.That's no problem, we can show what to do =)
--
Michael Eshom
Christian Oldies Fan
Cincinnati, Ohio
I should also mention that I haven't done anything with C in probably 5
or 6 years, but if you're willing to help me out, I'll see what I can do :)Antony Dovgal wrote:
Wish I could help, but I don't know what needs to be done or how to go
about doing it.That's no problem, we can show what to do =)
--
Michael Eshom
Christian Oldies Fan
Cincinnati, Ohio
I'd say start with that :)
http://cvs.php.net/viewvc.cgi/php-src/README.UNICODE?revision=1.9&view=markup&pathrev=HEAD,
http://cvs.php.net/viewvc.cgi/php-src/README.UNICODE-UPGRADES?revision=1.17&view=markup&pathrev=HEAD,
http://cvs.php.net/viewvc.cgi/php-src/unicode-gotchas.txt?revision=1.1&view=markup&pathrev=HEAD
:)
--
David Coallier,
Founder & Software Architect,
Agora Production (http://agoraproduction.com)
51.42.06.70.18
I think I may be in way over my head on this one... After reading those
pages, I still have no clue what to do. This is the first time I've
actually looked at PHP source code...
David Coallier wrote:
I should also mention that I haven't done anything with C in probably 5
or 6 years, but if you're willing to help me out, I'll see what I can do :)Antony Dovgal wrote:
Wish I could help, but I don't know what needs to be done or how to go
about doing it.That's no problem, we can show what to do =)
--
Michael Eshom
Christian Oldies Fan
Cincinnati, OhioI'd say start with that :)
http://cvs.php.net/viewvc.cgi/php-src/README.UNICODE?revision=1.9&view=markup&pathrev=HEAD,
http://cvs.php.net/viewvc.cgi/php-src/README.UNICODE-UPGRADES?revision=1.17&view=markup&pathrev=HEAD,
http://cvs.php.net/viewvc.cgi/php-src/unicode-gotchas.txt?revision=1.1&view=markup&pathrev=HEAD:)
--
Michael Eshom
Christian Oldies Fan
Cincinnati, Ohio