Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Error: called object ‘zend_error’ is not a function or function pointer #5319

Closed
crankycyclops opened this issue Sep 2, 2016 · 1 comment

Comments

@crankycyclops
Copy link

crankycyclops commented Sep 2, 2016

Hi,

I'm trying to compile the PHP extension against PHP 5.6 and get the following error:

In file included from /usr/include/php/20131226/main/php.h:40:0,
                 from /usr/local/src/mapserver/mapscript/php/php_mapscript.h:35,
                 from /usr/local/src/mapserver/mapscript/php/error.c:32:
/usr/local/src/mapserver/mapscript/php/error.c: In function ‘zim_errorObj___get’:
/usr/include/php/20131226/Zend/zend_API.h:582:4: error: called object ‘zend_error’ is not a function or function pointer
    zend_error(E_ERROR, "String size overflow"); \
    ^
/usr/include/php/20131226/Zend/zend_API.h:626:39: note: in expansion of macro ‘ZVAL_STRING’
 #define RETVAL_STRING(s, duplicate)   ZVAL_STRING(return_value, s, duplicate)
                                       ^
/usr/local/src/mapserver/mapscript/php/php_mapscript_util.h:186:9: note: in expansion of macro ‘RETVAL_STRING’
         RETVAL_STRING( (value ? value:"") , 1);    \
         ^
/usr/local/src/mapserver/mapscript/php/error.c:71:8: note: in expansion of macro ‘IF_GET_STRING’
   else IF_GET_STRING("routine", php_error->error->routine)
        ^
In file included from /usr/local/src/mapserver/mapscript/php/php_mapscript.h:35:0,
                 from /usr/local/src/mapserver/mapscript/php/error.c:32:
/usr/include/php/20131226/main/php.h:293:19: note: declared here
 #define php_error zend_error
                   ^
/usr/local/src/mapserver/mapscript/php/error.c:58:21: note: in expansion of macro ‘php_error’
   php_error_object *php_error;
                     ^
In file included from /usr/include/php/20131226/main/php.h:40:0,
                 from /usr/local/src/mapserver/mapscript/php/php_mapscript.h:35,
                 from /usr/local/src/mapserver/mapscript/php/error.c:32:
/usr/include/php/20131226/Zend/zend_API.h:582:4: error: called object ‘zend_error’ is not a function or function pointer
    zend_error(E_ERROR, "String size overflow"); \
    ^
/usr/include/php/20131226/Zend/zend_API.h:626:39: note: in expansion of macro ‘ZVAL_STRING’
 #define RETVAL_STRING(s, duplicate)   ZVAL_STRING(return_value, s, duplicate)
                                       ^
/usr/local/src/mapserver/mapscript/php/php_mapscript_util.h:186:9: note: in expansion of macro ‘RETVAL_STRING’
         RETVAL_STRING( (value ? value:"") , 1);    \
         ^
/usr/local/src/mapserver/mapscript/php/error.c:72:10: note: in expansion of macro ‘IF_GET_STRING’
     else IF_GET_STRING("message", php_error->error->message)
          ^
In file included from /usr/local/src/mapserver/mapscript/php/php_mapscript.h:35:0,
                 from /usr/local/src/mapserver/mapscript/php/error.c:32:
/usr/include/php/20131226/main/php.h:293:19: note: declared here
 #define php_error zend_error
                   ^
/usr/local/src/mapserver/mapscript/php/error.c:58:21: note: in expansion of macro ‘php_error’
   php_error_object *php_error;
                     ^
/usr/local/src/mapserver/mapscript/php/error.c: In function ‘zim_errorObj___set’:
/usr/include/php/20131226/main/php.h:293:19: warning: variable ‘zend_error’ set but not used [-Wunused-but-set-variable]
 #define php_error zend_error
                   ^
/usr/local/src/mapserver/mapscript/php/error.c:85:21: note: in expansion of macro ‘php_error’
   php_error_object *php_error;

I've tried both the 7.0.1 release and the current code from git. Thanks!

@tbonfort
Copy link
Member

tbonfort commented Sep 2, 2016

Duplicate of #5318

@tbonfort tbonfort closed this as completed Sep 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants