Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42404 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62750 invoked from network); 30 Dec 2008 03:24:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Dec 2008 03:24:20 -0000 Authentication-Results: pb1.pair.com smtp.mail=lihouyu@dandanyu.name; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=lihouyu@dandanyu.name; sender-id=unknown Received-SPF: error (pb1.pair.com: domain dandanyu.name from 208.68.93.202 cause and error) X-PHP-List-Original-Sender: lihouyu@dandanyu.name X-Host-Fingerprint: 208.68.93.202 unknown Linux 2.6 Received: from [208.68.93.202] ([208.68.93.202:38351] helo=dashi-x02.karadog.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F6/18-08292-36499594 for ; Mon, 29 Dec 2008 22:24:20 -0500 Received: by dashi-x02.karadog.net (Postfix, from userid 503) id 303B01EF037B; Mon, 29 Dec 2008 17:04:33 -0500 (EST) Received: from 116.231.107.177 ([116.231.107.177]) by mail.dandanyu.name (Horde Framework) with HTTP; Tue, 30 Dec 2008 06:04:33 +0800 Message-ID: <20081230060433.189215il2bwuzyxw@mail.dandanyu.name> X-Priority: 3 (Normal) Date: Tue, 30 Dec 2008 06:04:33 +0800 To: internals@lists.php.net MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.3) Subject: PHP 6.0 snap 200812292330 compile error with mysqlnd From: lihouyu@dandanyu.name (HouYu Li Karajan) My system is CentOS 5.2. I use the following configure command: ./configure --prefix=3D/usr/local/php6.0-dev =20 --with-config-file-path=3D/usr/local/php6.0-dev/etc =20 --with-config-file-scan-dir=3D/usr/local/php6.0-dev/etc/php.d =20 --with-openssl --with-kerberos --with-zlib --with-mysql =20 --with-mysqli=3Dmysqlnd --with-pdo-mysql=3Dmysqlnd =20 --enable-mysqlnd-threading The configure command runs OK. When I doing "make", I have the =20 following error: /root/src/build/php6.0-200812292330/ext/mysqlnd/mysqlnd_result.c: In =20 function 'mysqlnd_fetch_row_async_buffered': /root/src/build/php6.0-200812292330/ext/mysqlnd/mysqlnd_result.c:1396: =20 error: 'i' undeclared (first use in this function) /root/src/build/php6.0-200812292330/ext/mysqlnd/mysqlnd_result.c:1396: =20 error: (Each undeclared identifier is reported only once /root/src/build/php6.0-200812292330/ext/mysqlnd/mysqlnd_result.c:1396: =20 error: for each function it appears in.) /root/src/build/php6.0-200812292330/ext/mysqlnd/mysqlnd_result.c: In =20 function 'mysqlnd_background_store_result_fetch_data': /root/src/build/php6.0-200812292330/ext/mysqlnd/mysqlnd_result.c:1465: =20 error: 'STORE_RESULT_PREALLOCATED_SET' undeclared (first use in this =20 function) /root/src/build/php6.0-200812292330/ext/mysqlnd/mysqlnd_result.c: In =20 function 'php_mysqlnd_res_background_store_result_pub': /root/src/build/php6.0-200812292330/ext/mysqlnd/mysqlnd_result.c:1609: =20 error: 'STORE_RESULT_PREALLOCATED_SET' undeclared (first use in this =20 function) Some declaration of variables missing. Following is the patch I made. =20 Hope it's helpful. --- php6.0-200812292330-orig/ext/mysqlnd/mysqlnd_result.c =20 2008-11-06 06:30:47.000000000 -0500 +++ php6.0-200812292330/ext/mysqlnd/mysqlnd_result.c 2008-12-29 =20 15:46:13.000000000 -0500 @@ -1180,6 +1180,7 @@ #define STORE_RESULT_PREALLOCATED_SET_IF_NOT_EMPTY 2 +#define STORE_RESULT_PREALLOCATED_SET 32 /* {{{ mysqlnd_store_result_fetch_data */ enum_func_status @@ -1361,6 +1362,7 @@ /* At the point we are still under LOCK */ if (set->data_cursor && (set->data_cursor - set->data) < =20 (set->row_count)) { + unsigned int i; uint64_t row_num =3D set->data_cursor - set->data; zval **current_row =3D *set->data_cursor++; set->initialized_rows++; @@ -1370,7 +1372,6 @@ /* If there was no decoding in background, we have to =20 decode here */ if (set->decode_in_foreground =3D=3D TRUE) { MYSQLND_MEMORY_POOL_CHUNK *current_buffer =3D =20 set->row_buffers[row_num]; - unsigned int i; result->m.row_decoder(current_buffer, current_r= ow, =20 result->meta->field_count, ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.