Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46641 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14565 invoked from network); 11 Jan 2010 17:43:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jan 2010 17:43:20 -0000 Authentication-Results: pb1.pair.com header.from=Andrey.Hristov@Sun.COM; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=andrey@mysql.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain mysql.com from 192.18.6.21 cause and error) X-PHP-List-Original-Sender: andrey@mysql.com X-Host-Fingerprint: 192.18.6.21 gmp-eb-inf-1.sun.com Solaris 10 (beta) Received: from [192.18.6.21] ([192.18.6.21:41961] helo=gmp-eb-inf-1.sun.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 52/74-26332-6336B4B4 for ; Mon, 11 Jan 2010 12:43:19 -0500 Received: from fe-emea-09.sun.com (gmp-eb-lb-1-fe1.eu.sun.com [192.18.6.7] (may be forged)) by gmp-eb-inf-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id o0BHhGIb005318 for ; Mon, 11 Jan 2010 17:43:16 GMT MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII; format=flowed Received: from conversion-daemon.fe-emea-09.sun.com by fe-emea-09.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) id <0KW300J00FAAIA00@fe-emea-09.sun.com> for internals@lists.php.net; Mon, 11 Jan 2010 17:43:10 +0000 (GMT) Received: from [192.168.1.127] (g228005056.adsl.alicedsl.de [92.228.5.56]) by fe-emea-09.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) with ESMTPSA id <0KW3002T2FVQHH60@fe-emea-09.sun.com>; Mon, 11 Jan 2010 17:43:03 +0000 (GMT) Date: Mon, 11 Jan 2010 18:43:02 +0100 In-reply-to: <4B4B60A7.5030604@zend.com> Sender: Andrey.Hristov@Sun.COM To: Jess Portnoy Cc: PHP Developers Mailing List Message-ID: <4B4B6326.20903@mysql.com> References: <4B4B53A8.8010300@zend.com> <4B4B5639.1020404@mysql.com> <4B4B5728.20502@zend.com> <4B4B5879.5030809@zend.com> <4B4B596E.7070608@mysql.com> <4B4B5C7E.5040305@zend.com> <4B4B5E6C.9070908@mysql.com> <4B4B60A7.5030604@zend.com> User-Agent: Thunderbird 2.0.0.23 (X11/20090817) Subject: Re: [PHP-DEV] [PATCH] Attempt to include ext/mysqlnd/mysqlnd_portability.h when building MySQLi against libmysql From: andrey@mysql.com (Andrey Hristov) Hi Jess, Jess Portnoy wrote: > I see but assuming mysqlnd is copied, I can still see a problem, in the > configure script: > echo "#define $php_def_have_what 1" >> ext/mysqlnd/php_mysqlnd_config.h > When running my configure: > ./configure --disable-xml --disable-dom --disable-libxml > --disable-simplexml --without-pear --disable-xmlreader > --disable-xmlwriter --without-iconv > > ext/mysqlnd/php_mysqlnd_config.h is not created and > ext/mysqlnd/mysqlnd_portability.h attempts to include that and hence, > even if the mysqlnd dir is copied to $PHP_PREFIX/include/php/ext > regardless of your configure argument, there will still be a problem > with this auto generated header. > > May the source be with you, > Best regards, > Jess Portnoy > Possible solution is to copy the macros from mysqlnd_portability.h to mysqli and use ifndef to define them, if mysqlnd_portability.h is not available. Hopefully the code will compile without the need to typedef types as the macros use C99 types (uintXX_t) which should be available mostly anywhere. Best, Andrey