Skip to content

Build failure with PHP 7.3 #73

Description

@hseagle2015

Compiling php-apm on CentOS 7 server with PHP 7.3.7 (installed from IUS yum repo) is failing. Here are steps to reproduce the problem:

phpize
 ./configure --without-sqlite3 --without-mysql --disable-socket

And here's the error I'm getting:

/bin/sh /home/user/APM/libtool --mode=compile cc  -I. -I/home/user/APM -DPHP_ATOM_INC -I/home/user/APM/include -I/home/user/APM/main -I/home/user/APM -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /home/user/APM/backtrace.c -o backtrace.lo 
libtool: compile:  cc -I. -I/home/user/APM -DPHP_ATOM_INC -I/home/user/APM/include -I/home/user/APM/main -I/home/user/APM -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/user/APM/backtrace.c  -fPIC -DPIC -o .libs/backtrace.o
/home/user/APM/backtrace.c: In function 'append_flat_zval_r':
/home/user/APM/backtrace.c:391:79: error: 'struct <anonymous>' has no member named 'nApplyCount'
    if (ZEND_HASH_APPLY_PROTECTION(Z_ARRVAL_P(expr)) && ++Z_ARRVAL_P(expr)->u.v.nApplyCount>1) {
                                                                               ^
/home/user/APM/backtrace.c:397:26: error: 'struct <anonymous>' has no member named 'nApplyCount'
     Z_ARRVAL_P(expr)->u.v.nApplyCount--;
                          ^
/home/user/APM/backtrace.c:407:26: error: 'struct <anonymous>' has no member named 'nApplyCount'
     Z_ARRVAL_P(expr)->u.v.nApplyCount--;
                          ^
make: *** [backtrace.lo] Error 1

I'd appreciate help in debugging this problem. Thank you.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions