Bug #29994 mysqli error while bulding php 5.2.3
Submitted: 24 Jul 2007 0:55 Modified: 24 Jul 2007 9:24
Reporter: Sorin Roiban - mysql5.net Email Updates:
Status: Closed Impact on me:
None 
Category:Connectors: mysqlnd ( PHP ) Severity:S2 (Serious)
Version:5.1.20 beta OS:Linux
Assigned to: Andrey Hristov CPU Architecture:Any
Tags: php mysql regression

[24 Jul 2007 0:55] Sorin Roiban - mysql5.net
Description:
Trying to compile PHP after installing 5.1.20 beta (used to compile just fine with mysql 5.1.18 beta) gives this error after "make":

/tmp/php-5.2.3/ext/mysqli/mysqli_api.c: In function `zif_mysqli_stmt_bind_param':
/tmp/php-5.2.3/ext/mysqli/mysqli_api.c:144: error: `gptr' undeclared (first use in this function)
/tmp/php-5.2.3/ext/mysqli/mysqli_api.c:144: error: (Each undeclared identifier is reported only once
/tmp/php-5.2.3/ext/mysqli/mysqli_api.c:144: error: for each function it appears in.)
/tmp/php-5.2.3/ext/mysqli/mysqli_api.c: In function `zif_mysqli_stmt_execute':
/tmp/php-5.2.3/ext/mysqli/mysqli_api.c:603: error: `gptr' undeclared (first use in this function)
make: *** [ext/mysqli/mysqli_api.lo] Error 1

How to repeat:
install mysql-5.1.20 beta
configure and make php-5.2.3
[24 Jul 2007 7:08] Sveta Smirnova
Thank you for the report.

Verified as described using last BK sources.

Category changed to not correct, but more appropriate.
[24 Jul 2007 9:24] Andrey Hristov
The problem is mysqli_api.c, because it used gptr, which is no more in the latest 5.1 versions. The fix will appear as part of 5.2.4. If you need to build 5.2.3, search and replace in mysqli_api.c `gtpr` with `char*`

Thanks
[14 Aug 2007 8:03] de Kesi
Hello,

fix worked for me. Thanks.
But you have to search for 'gptr' :)

Bye.
[2 Mar 2010 12:09] Tonci Grgin
Bug#51582 was marked as duplicate of this report.