Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81181 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51976 invoked from network); 26 Jan 2015 22:02:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jan 2015 22:02:32 -0000 Authentication-Results: pb1.pair.com header.from=honey@internot.info; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=honey@internot.info; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain internot.info designates 185.57.82.47 as permitted sender) X-PHP-List-Original-Sender: honey@internot.info X-Host-Fingerprint: 185.57.82.47 mail.internot.info Received: from [185.57.82.47] ([185.57.82.47:42201] helo=mail.internot.info) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D2/15-25415-679B6C45 for ; Mon, 26 Jan 2015 17:02:31 -0500 Message-ID: <54C6B96F.10101@internot.info> Date: Tue, 27 Jan 2015 09:02:23 +1100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 To: internals@lists.php.net OpenPGP: id=296E6003; url=https://internot.info/docs/gpg_pubkey.asc.gpg Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="j1t0IFsrd7c8VPQ7CCfIXXEnErbGVVGgA" Subject: Error compiling with debug From: honey@internot.info (Joshua Rogers) --j1t0IFsrd7c8VPQ7CCfIXXEnErbGVVGgA Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi guys, I'm trying to compile phpdbg, but am receiving these errors(yes, I know, I'm compiling as root. It's a VM): > In file included from /root/php-src/sapi/phpdbg/phpdbg.h:126:0, > from /root/php-src/sapi/phpdbg/phpdbg_bp.c:23: > /root/php-src/sapi/phpdbg/phpdbg_bp.c: In function > =E2=80=98phpdbg_set_breakpoint_file=E2=80=99: > /root/php-src/sapi/phpdbg/phpdbg_bp.c:241:134: warning: passing > argument 2 of =E2=80=98zend_hash_exists=E2=80=99 from incompatible poin= ter type > phpdbg_debug("file path: %s, resolved path: %s, was compiled: %d\n", > original_path, path, zend_hash_exists(&PHPDBG_G(file_sources), path, > path_len)); > = =20 > ^ > /root/php-src/sapi/phpdbg/phpdbg_out.h:66:97: note: in definition of > macro =E2=80=98phpdbg_log_ex=E2=80=99 > #define phpdbg_log_ex(out, fmt, ...) > phpdbg_log_internal(PHPDBG_G(io)[PHPDBG_STDOUT].fd, fmt, ##__VA_ARGS__)= > = =20 > ^ > /root/php-src/sapi/phpdbg/phpdbg_bp.c:241:2: note: in expansion of > macro =E2=80=98phpdbg_debug=E2=80=99 > phpdbg_debug("file path: %s, resolved path: %s, was compiled: %d\n", > original_path, path, zend_hash_exists(&PHPDBG_G(file_sources), path, > path_len)); > ^ > In file included from /root/php-src/Zend/zend.h:34:0, > from /root/php-src/sapi/phpdbg/phpdbg_bp.c:21: > /root/php-src/Zend/zend_hash.h:158:20: note: expected =E2=80=98struct > zend_string *=E2=80=99 but argument is of type =E2=80=98const char *=E2= =80=99 > ZEND_API zend_bool zend_hash_exists(const HashTable *ht, zend_string > *key); > ^ > In file included from /root/php-src/sapi/phpdbg/phpdbg.h:126:0, > from /root/php-src/sapi/phpdbg/phpdbg_bp.c:23: > /root/php-src/sapi/phpdbg/phpdbg_bp.c:241:92: error: too many > arguments to function =E2=80=98zend_hash_exists=E2=80=99 > phpdbg_debug("file path: %s, resolved path: %s, was compiled: %d\n", > original_path, path, zend_hash_exists(&PHPDBG_G(file_sources), path, > path_len)); > = =20 > ^ > /root/php-src/sapi/phpdbg/phpdbg_out.h:66:97: note: in definition of > macro =E2=80=98phpdbg_log_ex=E2=80=99 > #define phpdbg_log_ex(out, fmt, ...) > phpdbg_log_internal(PHPDBG_G(io)[PHPDBG_STDOUT].fd, fmt, ##__VA_ARGS__)= > = =20 > ^ > /root/php-src/sapi/phpdbg/phpdbg_bp.c:241:2: note: in expansion of > macro =E2=80=98phpdbg_debug=E2=80=99 > phpdbg_debug("file path: %s, resolved path: %s, was compiled: %d\n", > original_path, path, zend_hash_exists(&PHPDBG_G(file_sources), path, > path_len)); > ^ > In file included from /root/php-src/Zend/zend.h:34:0, > from /root/php-src/sapi/phpdbg/phpdbg_bp.c:21: > /root/php-src/Zend/zend_hash.h:158:20: note: declared here > ZEND_API zend_bool zend_hash_exists(const HashTable *ht, zend_string > *key); > ^ > In file included from /root/php-src/sapi/phpdbg/phpdbg.h:126:0, > from /root/php-src/sapi/phpdbg/phpdbg_bp.c:23: > /root/php-src/sapi/phpdbg/phpdbg_bp.c: In function > =E2=80=98phpdbg_resolve_pending_file_break_ex=E2=80=99: > /root/php-src/sapi/phpdbg/phpdbg_bp.c:309:103: error: =E2=80=98curlen=E2= =80=99 > undeclared (first use in this function) > phpdbg_debug("file: %s, filelen: %u, cur: %s, curlen %u, pos: %c, > memcmp: %d\n", file, filelen, cur, curlen, filelen > curlen ? > file[filelen - curlen - 1] : '?', filelen > curlen ? memcmp(file + > filelen - curlen, cur, curlen) : 0); > = =20 > ^ > /root/php-src/sapi/phpdbg/phpdbg_out.h:66:97: note: in definition of > macro =E2=80=98phpdbg_log_ex=E2=80=99 > #define phpdbg_log_ex(out, fmt, ...) > phpdbg_log_internal(PHPDBG_G(io)[PHPDBG_STDOUT].fd, fmt, ##__VA_ARGS__)= > = =20 > ^ > /root/php-src/sapi/phpdbg/phpdbg_bp.c:309:2: note: in expansion of > macro =E2=80=98phpdbg_debug=E2=80=99 > phpdbg_debug("file: %s, filelen: %u, cur: %s, curlen %u, pos: %c, > memcmp: %d\n", file, filelen, cur, curlen, filelen > curlen ? > file[filelen - curlen - 1] : '?', filelen > curlen ? memcmp(file + > filelen - curlen, cur, curlen) : 0); > ^ > /root/php-src/sapi/phpdbg/phpdbg_bp.c:309:103: note: each undeclared > identifier is reported only once for each function it appears in > phpdbg_debug("file: %s, filelen: %u, cur: %s, curlen %u, pos: %c, > memcmp: %d\n", file, filelen, cur, curlen, filelen > curlen ? > file[filelen - curlen - 1] : '?', filelen > curlen ? memcmp(file + > filelen - curlen, cur, curlen) : 0); > = =20 > ^ > /root/php-src/sapi/phpdbg/phpdbg_out.h:66:97: note: in definition of > macro =E2=80=98phpdbg_log_ex=E2=80=99 > #define phpdbg_log_ex(out, fmt, ...) > phpdbg_log_internal(PHPDBG_G(io)[PHPDBG_STDOUT].fd, fmt, ##__VA_ARGS__)= > = =20 > ^ > /root/php-src/sapi/phpdbg/phpdbg_bp.c:309:2: note: in expansion of > macro =E2=80=98phpdbg_debug=E2=80=99 > phpdbg_debug("file: %s, filelen: %u, cur: %s, curlen %u, pos: %c, > memcmp: %d\n", file, filelen, cur, curlen, filelen > curlen ? > file[filelen - curlen - 1] : '?', filelen > curlen ? memcmp(file + > filelen - curlen, cur, curlen) : 0); > ^ Any ideas on why this may be happening? It's from the master branch. Thanks, --=20 -- Joshua Rogers --j1t0IFsrd7c8VPQ7CCfIXXEnErbGVVGgA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJUxrlvAAoJEJCcj5QpbmADMAQP/3KhtSenOhltDWCepk1rmraZ uUM2MydIhkR8RdgraRUduXi4mxOrYsbin4dZpuPYlTeYhuaauZCbFQ8ClVMJl+JC pmGlHxz1OrCla1XPuG3NeRZTcKQOozDTUtvcD/SEbgqL0VY26/wlTv24vSmLXIlv Isuy6sGWMjYtvdqeNJbS+tXyYrMTYoNs240CEKl/dSbYx7sjdCRpXUbZZiVcRRBM agrBbuy6UQVItqsXs7gic+qqN4LckEmv+KdWlBWINb1fCS8gTicOZjBL6f67B8Uo qZbgflYSrUIFWFjtcIe8TUDsJq+QtwlZ+oz0tLUahW5accILGduROouiYMgdtL00 gUSDEGfNHNxtWI3glCS5bExCrMqdSXr+J83pSpACpriSy48Sp8+631jTO6PurDjj guS2DqLGpEz/w0tPMrZJMZsBg2it15yCYM8ohRGignFijF3ElEPeZgP/l5wwngrC KKK3eyqrGm2u05lFc01FDifHapq6QO1iNeDJoIMkbIdx+SqxvifdWOZpmzjSgHJb 4r7b+/JSzR5n/y81dnrQ5lxZNpFtkIlWKDLaburrl/HbzVidmWfWCbTpZmHc0RTh ooz5ORjXmwqzvpEC3Bvbc9PeKnH/FzyrUW02P9+YPGoOexlvmBPwzq02SQVad/K/ LD25vBtnGDS24OX2RJB1 =Jhg4 -----END PGP SIGNATURE----- --j1t0IFsrd7c8VPQ7CCfIXXEnErbGVVGgA--