Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74259 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20508 invoked from network); 16 May 2014 12:31:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 May 2014 12:31:59 -0000 Authentication-Results: pb1.pair.com header.from=brian@moonspot.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=brian@moonspot.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain moonspot.net designates 72.5.90.26 as permitted sender) X-PHP-List-Original-Sender: brian@moonspot.net X-Host-Fingerprint: 72.5.90.26 mail.dealnews.com Received: from [72.5.90.26] ([72.5.90.26:42382] helo=mail.dealnews.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 58/99-58167-D3506735 for ; Fri, 16 May 2014 08:31:58 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.dealnews.com (Postfix) with ESMTP id D2D213846AF for ; Fri, 16 May 2014 08:31:54 -0400 (EDT) Received: from mail.dealnews.com ([127.0.0.1]) by localhost (atl-zimbra2.dealnews.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id SoPorTHagXQW for ; Fri, 16 May 2014 08:31:50 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.dealnews.com (Postfix) with ESMTP id E4710385327 for ; Fri, 16 May 2014 08:31:50 -0400 (EDT) X-Virus-Scanned: amavisd-new at dealnews.com Received: from mail.dealnews.com ([127.0.0.1]) by localhost (atl-zimbra2.dealnews.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id iOddG4v8cOIs for ; Fri, 16 May 2014 08:31:50 -0400 (EDT) Received: from Adrastea.local (h105.248.18.98.static.ip.windstream.net [98.18.248.105]) by mail.dealnews.com (Postfix) with ESMTPSA id A055E385312 for ; Fri, 16 May 2014 08:31:50 -0400 (EDT) Message-ID: <53760535.3060506@moonspot.net> Date: Fri, 16 May 2014 07:31:49 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: PHP Internals Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Make errors in phpng From: brian@moonspot.net (Brian Moon) I encountered two make errors in phpng last night. Both mysql related. System: Ubuntu 12.04.4 LTS (GNU/Linux 3.8.0-37-generic x86_64) I used the configure from https://wiki.php.net/phpng with tweaks for my=20 system. ./configure \ --prefix=3D$HOME/tmp/usr \ --with-config-file-path=3D$HOME/tmp/usr/etc \ --enable-mbstring \ --enable-zip \ --enable-bcmath \ --enable-pcntl \ --enable-ftp \ --enable-exif \ --enable-calendar \ --enable-sysvmsg \ --enable-sysvsem \ --enable-sysvshm \ --enable-wddx \ --with-curl \ --with-mcrypt \ --with-iconv \ --with-gmp \ --with-pspell \ --with-gd \ --with-jpeg-dir \ --with-png-dir \ --with-zlib-dir \ --with-xpm-dir \ --with-freetype-dir \ --with-t1lib \ --enable-gd-native-ttf \ --enable-gd-jis-conv \ --with-openssl \ --with-mysql \ --with-gettext \ --with-zlib \ --with-bz2 \ --with-recode \ --with-mysqli=3D/usr/bin/mysql_config \ --with-libdir=3D/lib/x86_64-linux-gnu First: /root/tmp/php-src/ext/pdo_mysql/mysql_driver.c: In function=20 =E2=80=98pdo_mysql_get_attribute=E2=80=99: /root/tmp/php-src/ext/pdo_mysql/mysql_driver.c:447:47: error: macro=20 "ZVAL_STRINGL" passed 4 arguments, but takes just 3 /root/tmp/php-src/ext/pdo_mysql/mysql_driver.c:447:5: error:=20 =E2=80=98ZVAL_STRINGL=E2=80=99 undeclared (first use in this function) /root/tmp/php-src/ext/pdo_mysql/mysql_driver.c:447:5: note: each=20 undeclared identifier is reported only once for each function it appears = in make: *** [ext/pdo_mysql/mysql_driver.lo] Error 1 I removed PDO mysql support since I don't need it in my application and=20 continued. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D The second one is mysqlnd related. I saw on the phpng page that it is=20 not supported. I did not add it to configure. I am not sure why it tried=20 to build. /root/tmp/php-src/ext/mysqlnd/mysqlnd.c: In function=20 =E2=80=98php_mysqlnd_conn_data_set_client_option_pub=E2=80=99: /root/tmp/php-src/ext/mysqlnd/mysqlnd.c:2419:5: warning: passing=20 argument 2 of =E2=80=98zend_hash_del=E2=80=99 from incompatible pointer t= ype [enabled by=20 default] /root/tmp/php-src/Zend/zend_hash.h:127:14: note: expected =E2=80=98struct= =20 zend_string *=E2=80=99 but argument is of type =E2=80=98const char * cons= t=E2=80=99 /root/tmp/php-src/ext/mysqlnd/mysqlnd.c:2419:5: error: too many=20 arguments to function =E2=80=98zend_hash_del=E2=80=99 /root/tmp/php-src/Zend/zend_hash.h:127:14: note: declared here /root/tmp/php-src/ext/mysqlnd/mysqlnd.c: In function=20 =E2=80=98php_mysqlnd_conn_data_set_client_option_2d_pub=E2=80=99: /root/tmp/php-src/ext/mysqlnd/mysqlnd.c:2495:5: warning: passing=20 argument 3 of =E2=80=98_zend_hash_init=E2=80=99 from incompatible pointer= type [enabled=20 by default] /root/tmp/php-src/Zend/zend_hash.h:63:15: note: expected =E2=80=98dtor_fu= nc_t=E2=80=99=20 but argument is of type =E2=80=98void (*)(void *)=E2=80=99 /root/tmp/php-src/ext/mysqlnd/mysqlnd.c:2503:97: error: macro=20 "zend_hash_update" passed 6 arguments, but takes just 3 /root/tmp/php-src/ext/mysqlnd/mysqlnd.c:2503:5: error:=20 =E2=80=98zend_hash_update=E2=80=99 undeclared (first use in this function= ) /root/tmp/php-src/ext/mysqlnd/mysqlnd.c:2503:5: note: each undeclared=20 identifier is reported only once for each function it appears in /root/tmp/php-src/ext/mysqlnd/mysqlnd.c: In function=20 =E2=80=98php_mysqlnd_conn_data_tx_cor_options_to_string_pub=E2=80=99: /root/tmp/php-src/ext/mysqlnd/mysqlnd.c:2672:10: error: =E2=80=98smart_st= r=E2=80=99 has=20 no member named =E2=80=98len=E2=80=99 /root/tmp/php-src/ext/mysqlnd/mysqlnd.c:2677:10: error: =E2=80=98smart_st= r=E2=80=99 has=20 no member named =E2=80=98len=E2=80=99 /root/tmp/php-src/ext/mysqlnd/mysqlnd.c:2684:10: error: =E2=80=98smart_st= r=E2=80=99 has=20 no member named =E2=80=98len=E2=80=99 /root/tmp/php-src/ext/mysqlnd/mysqlnd.c:2689:10: error: =E2=80=98smart_st= r=E2=80=99 has=20 no member named =E2=80=98len=E2=80=99 /root/tmp/php-src/ext/mysqlnd/mysqlnd.c: In function=20 =E2=80=98php_mysqlnd_conn_data_tx_commit_or_rollback_pub=E2=80=99: /root/tmp/php-src/ext/mysqlnd/mysqlnd.c:2752:4: warning: excess elements=20 in struct initializer [enabled by default] /root/tmp/php-src/ext/mysqlnd/mysqlnd.c:2752:4: warning: (near=20 initialization for =E2=80=98tmp_str=E2=80=99) [enabled by default] /root/tmp/php-src/ext/mysqlnd/mysqlnd.c:2762:17: error: =E2=80=98smart_st= r=E2=80=99 has=20 no member named =E2=80=98c=E2=80=99 /root/tmp/php-src/ext/mysqlnd/mysqlnd.c:2762:17: error: =E2=80=98smart_st= r=E2=80=99 has=20 no member named =E2=80=98c=E2=80=99 /root/tmp/php-src/ext/mysqlnd/mysqlnd.c: In function=20 =E2=80=98php_mysqlnd_conn_data_tx_begin_pub=E2=80=99: /root/tmp/php-src/ext/mysqlnd/mysqlnd.c:2796:4: warning: excess elements=20 in struct initializer [enabled by default] /root/tmp/php-src/ext/mysqlnd/mysqlnd.c:2796:4: warning: (near=20 initialization for =E2=80=98tmp_str=E2=80=99) [enabled by default] /root/tmp/php-src/ext/mysqlnd/mysqlnd.c:2798:16: error: =E2=80=98smart_st= r=E2=80=99 has=20 no member named =E2=80=98len=E2=80=99 /root/tmp/php-src/ext/mysqlnd/mysqlnd.c:2810:17: error: =E2=80=98smart_st= r=E2=80=99 has=20 no member named =E2=80=98len=E2=80=99 /root/tmp/php-src/ext/mysqlnd/mysqlnd.c:2815:17: error: =E2=80=98smart_st= r=E2=80=99 has=20 no member named =E2=80=98len=E2=80=99 /root/tmp/php-src/ext/mysqlnd/mysqlnd.c:2826:30: error: =E2=80=98smart_st= r=E2=80=99 has=20 no member named =E2=80=98c=E2=80=99 /root/tmp/php-src/ext/mysqlnd/mysqlnd.c:2826:30: error: =E2=80=98smart_st= r=E2=80=99 has=20 no member named =E2=80=98c=E2=80=99 make: *** [ext/mysqlnd/mysqlnd.lo] Error 1 I stopped here since I was not sure why this was trying to build when=20 enable-mysqlnd was not on my configure line. --=20 Brian. -------- http://brian.moonspot.net/