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

Fails to build with PHP -enable-maintainer-zts flag enabled #23

Open
wagnert opened this issue Jun 28, 2014 · 1 comment
Open

Fails to build with PHP -enable-maintainer-zts flag enabled #23

wagnert opened this issue Jun 28, 2014 · 1 comment

Comments

@wagnert
Copy link

wagnert commented Jun 28, 2014

When i try to build the profiler on a thread safe compiled PHP 5.5.10 on Mac OS X 10.9, it failed with the following error message:

/opt/appserver/var/tmp/forp/php_forp.c:304:5: warning: implicit declaration of function 'forp_json' is invalid in C99 [-Wimplicit-function-declaration]
    forp_json(TSRMLS_C);
    ^
1 warning generated.
/bin/sh /opt/appserver/var/tmp/forp/libtool --mode=compile cc  -I. -I/opt/appserver/var/tmp/forp -DPHP_ATOM_INC -I/opt/appserver/var/tmp/forp/include -I/opt/appserver/var/tmp/forp/main -I/opt/appserver/var/tmp/forp -I/opt/appserver/include/php -I/opt/appserver/include/php/main -I/opt/appserver/include/php/TSRM -I/opt/appserver/include/php/Zend -I/opt/appserver/include/php/ext -I/opt/appserver/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /opt/appserver/var/tmp/forp/forp.c -o forp.lo 
 cc -I. -I/opt/appserver/var/tmp/forp -DPHP_ATOM_INC -I/opt/appserver/var/tmp/forp/include -I/opt/appserver/var/tmp/forp/main -I/opt/appserver/var/tmp/forp -I/opt/appserver/include/php -I/opt/appserver/include/php/main -I/opt/appserver/include/php/TSRM -I/opt/appserver/include/php/Zend -I/opt/appserver/include/php/ext -I/opt/appserver/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /opt/appserver/var/tmp/forp/forp.c  -fno-common -DPIC -o .libs/forp.o
/opt/appserver/var/tmp/forp/forp.c:201:45: error: too few arguments to function call, single argument 'tsrm_ls' was not specified
            if(zend_vm_stack_get_args_count() > 0) {
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/opt/appserver/include/php/Zend/zend_execute.h:328:1: note: 'zend_vm_stack_get_args_count' declared here
static zend_always_inline int zend_vm_stack_get_args_count(TSRMLS_D)
^
/opt/appserver/var/tmp/forp/forp.c:358:96: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
        php_printf(FORP_HIGHLIGHT_END, n->caption != NULL ? n->caption : "", (n->time / 1000), (n->mem / 1024), n->level);
                                                                                               ^~~~~~~~~~~~~~~
/opt/appserver/var/tmp/forp/forp.c:454:5: warning: implicit declaration of function 'php_info_print_table_start' is invalid in C99 [-Wimplicit-function-declaration]
    php_info_print_table_start();
    ^
/opt/appserver/var/tmp/forp/forp.c:455:5: warning: implicit declaration of function 'php_info_print_table_row' is invalid in C99 [-Wimplicit-function-declaration]
    php_info_print_table_row(2, "Version", FORP_VERSION);
    ^
/opt/appserver/var/tmp/forp/forp.c:456:5: warning: implicit declaration of function 'php_info_print_table_end' is invalid in C99 [-Wimplicit-function-declaration]
    php_info_print_table_end();
    ^
4 warnings and 1 error generated.
make: *** [forp.lo] Error 1

Any chance to make this run?

Tim

@crowcrow
Copy link

Hi!
It looks like the same issue that I experienced.
See #22 (comment)

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