From:             koalay at gmail dot com
Operating system: Linux
PHP version:      5.2.4
PHP Bug Type:     Compile Failure
Bug description:  PHP won't build with PostgreSQL < 7.4

Description:
------------
I believe this is almost the same bug as Bug #33813.

PHP-5.2.4 won't build with PostgreSQL < 7.4.
The reason for this is that the ext/pgsql/pgsql.c use the PQfreemem
function which is only available in PostgreSQL 7.4 or later.


Reproduce code:
---------------
Build with --with-pgsql=[DIR]

Expected result:
----------------
It builds normally.

Actual result:
--------------
...
ext/pgsql/.libs/pgsql.o(.text+0x591a): In function `zif_pg_escape_bytea':
/var/software/LAMP/php-5.2.4/ext/pgsql/pgsql.c:3641: undefined reference
to `PQfreemem'
ext/pgsql/.libs/pgsql.o(.text+0x599c): In function
`zif_pg_unescape_bytea':
/var/software/LAMP/php-5.2.4/ext/pgsql/pgsql.c:3766: undefined reference
to `PQfreemem'
ext/pgsql/.libs/pgsql.o(.text+0x6122): In function `zif_pg_get_notify':
/var/software/LAMP/php-5.2.4/ext/pgsql/pgsql.c:4379: undefined reference
to `PQfreemem'
ext/pgsql/.libs/pgsql.o(.text+0x7daf): In function `php_pgsql_convert':
/var/software/LAMP/php-5.2.4/ext/pgsql/pgsql.c:5185: undefined reference
to `PQfreemem'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

(error exit)

-- 
Edit bug report at http://bugs.php.net/?id=43214&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=43214&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=43214&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=43214&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=43214&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=43214&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=43214&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=43214&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=43214&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=43214&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=43214&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=43214&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=43214&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=43214&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=43214&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=43214&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=43214&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=43214&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=43214&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=43214&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=43214&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=43214&r=mysqlcfg

Reply via email to