# Unable to compile PHP6 with pgsql

- Thread: https://externals.io/message/33516
- Original archive: https://news-web.php.net/php.internals/33516
- Started by Michael Eshom on 2007-11-29T18:11:10+00:00
- Messages: 9
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #33516 — Michael Eshom — 2007-11-29T18:11:10+00:00

URL: https://externals.io/message/33516#33516

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

---

## #33518 — Antony Dovgal — 2007-11-29T21:24:55+00:00

URL: https://externals.io/message/33516#33518 · In reply to: #33516

> 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

---

## #33529 — Michael Eshom — 2007-11-29T23:51:00+00:00

URL: https://externals.io/message/33516#33529 · In reply to: #33518

Everything worked this time. Still get the "incompatible pointer type" 
messages, but it still compiled properly. Thanks!

Antony Dovgal wrote:
> 
>   
> > […]
>
>   
> > […]
>
> 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

---

## #33533 — Antony Dovgal — 2007-11-30T00:07:42+00:00

URL: https://externals.io/message/33516#33533 · In reply to: #33529

> 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

---

## #33536 — Michael Eshom — 2007-11-30T01:43:28+00:00

URL: https://externals.io/message/33516#33536 · In reply to: #33533

Wish I could help, but I don't know what needs to be done or how to go 
about doing it.

Antony Dovgal wrote:
> 
>   
> > […]
>
> 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

---

## #33539 — Antony Dovgal — 2007-11-30T06:59:14+00:00

URL: https://externals.io/message/33516#33539 · In reply to: #33536

> 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

---

## #33566 — Michael Eshom — 2007-12-01T15:45:05+00:00

URL: https://externals.io/message/33516#33566 · In reply to: #33539

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:
> 
>   
> > […]
>
> That's no problem, we can show what to do =)
>
>   

-- 

Michael Eshom
Christian Oldies Fan
Cincinnati, Ohio

---

## #33567 — David Coallier — 2007-12-01T18:42:58+00:00

URL: https://externals.io/message/33516#33567 · In reply to: #33566

> 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:
> > […]
>
> --
>
>
> 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

---

## #33744 — Michael Eshom — 2007-12-05T17:50:27+00:00

URL: https://externals.io/message/33516#33744 · In reply to: #33567

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'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
