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 > ‘phpdbg_set_breakpoint_file’: > /root/php-src/sapi/phpdbg/phpdbg_bp.c:241:134: warning: passing > argument 2 of ‘zend_hash_exists’ from incompatible pointer 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)); > > > ^ > /root/php-src/sapi/phpdbg/phpdbg_out.h:66:97: note: in definition of > macro ‘phpdbg_log_ex’ > #define phpdbg_log_ex(out, fmt, ...) > phpdbg_log_internal(PHPDBG_G(io)[PHPDBG_STDOUT].fd, fmt, ##__VA_ARGS__) > > > ^ > /root/php-src/sapi/phpdbg/phpdbg_bp.c:241:2: note: in expansion of > macro ‘phpdbg_debug’ > 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 ‘struct > zend_string *’ but argument is of type ‘const char *’ > 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 ‘zend_hash_exists’ > 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)); > > > ^ > /root/php-src/sapi/phpdbg/phpdbg_out.h:66:97: note: in definition of > macro ‘phpdbg_log_ex’ > #define phpdbg_log_ex(out, fmt, ...) > phpdbg_log_internal(PHPDBG_G(io)[PHPDBG_STDOUT].fd, fmt, ##__VA_ARGS__) > > > ^ > /root/php-src/sapi/phpdbg/phpdbg_bp.c:241:2: note: in expansion of > macro ‘phpdbg_debug’ > 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 > ‘phpdbg_resolve_pending_file_break_ex’: > /root/php-src/sapi/phpdbg/phpdbg_bp.c:309:103: error: ‘curlen’ > 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); > > > ^ > /root/php-src/sapi/phpdbg/phpdbg_out.h:66:97: note: in definition of > macro ‘phpdbg_log_ex’ > #define phpdbg_log_ex(out, fmt, ...) > phpdbg_log_internal(PHPDBG_G(io)[PHPDBG_STDOUT].fd, fmt, ##__VA_ARGS__) > > > ^ > /root/php-src/sapi/phpdbg/phpdbg_bp.c:309:2: note: in expansion of > macro ‘phpdbg_debug’ > 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); > > > ^ > /root/php-src/sapi/phpdbg/phpdbg_out.h:66:97: note: in definition of > macro ‘phpdbg_log_ex’ > #define phpdbg_log_ex(out, fmt, ...) > phpdbg_log_internal(PHPDBG_G(io)[PHPDBG_STDOUT].fd, fmt, ##__VA_ARGS__) > > > ^ > /root/php-src/sapi/phpdbg/phpdbg_bp.c:309:2: note: in expansion of > macro ‘phpdbg_debug’ > 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, -- -- Joshua Rogers <https://internot.info/>
signature.asc
Description: OpenPGP digital signature