#21232 [Com]: Unresolved references to PQsetnonblocking
| From: | nathan at windsofstorm dot net | Date: | Thu, 02 Jan 2003 03:58:41 +0000 |
| Subject: | #21232 [Com]: Unresolved references to PQsetnonblocking | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-28892@lists.php.net to get a copy of this message | ||
ID: 21232
Comment by: nathan@windsofstorm.net
Reported By: floyd@studiodust.com
Status: Feedback
Bug Type: Compile Failure
Operating System: RedHat Linux 6.2
PHP Version: 4.3.0
New Comment:
Same problem, same work fixed it. Note that it's php_pgsql_flush_query,
not slush_query :)
--Nathan
Previous Comments:
------------------------------------------------------------------------
[2002-12-28 05:22:48] derick@php.net
Would you be able to prepare a patch for us (By doing "diff -U
oldfilename.c newfilename.c)? Please send it as attachment to
php-dev@lists.php.net.
Derick
------------------------------------------------------------------------
[2002-12-27 22:41:35] floyd@studiodust.com
I have verson 6.5.2 of Postgresql installed and have --with-pgsql on
my
configure command line for PHP. Version 4.3.0 fails to compile
complaining
about unresolved references to the function, PQsetnonblocking.
I should probably upgrade my postgres installation but I decided to
try
and resolve this problem with PHP.
I discovered that in ext/pgsql/pgsql.c the PQsetnonblocking function
is referred to using a macro, PQ_SETNONBLOCKING which is defined
to be 0 if HAVE_PQSETNONBLOCKING is set.
However, in the function php_pgsql_slush_query() in ext/pgsql/pgsql.c
the function PQsetnonblocking() is referred to using its real name
instead
of the macro: on lines 2838 and 2846. I edited thos two lines to use
the PQ_SETNONBLOCKING macro and now PHP compiles without error.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21232&edit=1