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

make error on MacOS #6

Closed
IStranger opened this issue Mar 19, 2018 · 2 comments
Closed

make error on MacOS #6

IStranger opened this issue Mar 19, 2018 · 2 comments

Comments

@IStranger
Copy link

Hi! Thank you for your efforts!
I've installed this extension on Ubuntu16.04, it works fine.
But I can't compile it on MacOS 10.11.5 (El Captain).
Could you help me with it?
Details:
php installed from brew.

$ php -v
PHP 7.0.26 (cli) (built: Dec 22 2017 09:20:13) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with Xdebug v2.5.5, Copyright (c) 2002-2017, by Derick Rethans


$ sudo make && sudo make install
....

/Users/istranger/work/bin/xhprof/xhprof/extension/xhprof.c:721:43: error: use of undeclared identifier 'IS_UNDEF'
    if (Z_TYPE(hp_globals.stats_count) == IS_UNDEF) {
                                          ^
/Users/istranger/work/bin/xhprof/xhprof/extension/xhprof.c:754:43: error: use of undeclared identifier 'IS_UNDEF'
    if (Z_TYPE(hp_globals.stats_count) != IS_UNDEF) {
                                          ^
...
/Users/istranger/work/bin/xhprof/xhprof/extension/xhprof.c:842:31: error: no member named 'This' in 'struct _zend_execute_data'
        zval *object = (data->This.value.obj) ? &(data->This) : NULL;
                        ~~~~  ^
/Users/istranger/work/bin/xhprof/xhprof/extension/xhprof.c:842:57: error: no member named 'This' in 'struct _zend_execute_data'
        zval *object = (data->This.value.obj) ? &(data->This) : NULL;
                                                  ~~~~  ^
...

/Users/istranger/work/bin/xhprof/xhprof/extension/xhprof.c:861:17: error: use of undeclared identifier 'zend_string'; did you mean 'zend_strtod'?
                zend_string *pattern_str = NULL;
                ^~~~~~~~~~~
                zend_strtod
/usr/include/php/Zend/zend_strtod.h:30:17: note: 'zend_strtod' declared here
ZEND_API double zend_strtod(const char *s00, const char **se);
                ^
/Users/istranger/work/bin/xhprof/xhprof/extension/xhprof.c:861:30: error: use of undeclared identifier 'pattern_str'
                zend_string *pattern_str = NULL;
                             ^
@longxinH
Copy link
Owner

Brew can't find 7.0.26, I just updated 7.0.27 and it works, you can try 7.0.27

@longxinH
Copy link
Owner

@IStranger

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