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

[phpng] PHP7 with ZTS: use of undeclared identifier 'ERROR' #5

Closed
J5lx opened this issue Jul 18, 2015 · 2 comments
Closed

[phpng] PHP7 with ZTS: use of undeclared identifier 'ERROR' #5

J5lx opened this issue Jul 18, 2015 · 2 comments
Assignees
Labels

Comments

@J5lx
Copy link

J5lx commented Jul 18, 2015

I just successfully rebuilt PHP7 beta 1 with ZTS enabled. However, when trying to rebuild ext-http I get the following error:

...
 clang -I. -I/home/jakob/Downloads/ext-http -DPHP_ATOM_INC -I/home/jakob/Downloads/ext-http/include -I/home/jakob/Downloads/ext-http/main -I/home/jakob/Downloads/ext-http -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 -I/usr/include/php/ext/raphf -I/usr/include/php/ext/propro -I/usr/include/php/ext/hash -DHAVE_CONFIG_H -g -O0 -c /home/jakob/Downloads/ext-http/php_http_client_curl.c  -fPIC -DPIC -o .libs/php_http_client_curl.o
/home/jakob/Downloads/ext-http/php_http_client_curl.c:223:2: error: use of
      undeclared identifier 'ERROR'
        TSRMLS_FETCH_FROM_CTX(body->ts);
        ^
./php_http_api.h:124:37: note: expanded from macro 'TSRMLS_FETCH_FROM_CTX'
#       define TSRMLS_FETCH_FROM_CTX(ctx) ERROR
                                          ^
/home/jakob/Downloads/ext-http/php_http_client_curl.c:1646:2: error: use of
      undeclared identifier 'ERROR'
        TSRMLS_FETCH_FROM_CTX(client->ts);
        ^
./php_http_api.h:124:37: note: expanded from macro 'TSRMLS_FETCH_FROM_CTX'
#       define TSRMLS_FETCH_FROM_CTX(ctx) ERROR
                                          ^
/home/jakob/Downloads/ext-http/php_http_client_curl.c:2417:2: error: use of
      undeclared identifier 'ERROR'
        TSRMLS_FETCH_FROM_CTX(h->ts);
        ^
./php_http_api.h:124:37: note: expanded from macro 'TSRMLS_FETCH_FROM_CTX'
#       define TSRMLS_FETCH_FROM_CTX(ctx) ERROR
                                          ^
3 errors generated.
Makefile:200: recipe for target 'php_http_client_curl.lo' failed
make: *** [php_http_client_curl.lo] Error 1

When compiling with gcc instead of clang the error messages differ, but not the error itself, so I'm pretty sure this isn't related to the compiler.

@m6w6 m6w6 added the bug label Jul 20, 2015
@m6w6 m6w6 self-assigned this Jul 20, 2015
@m6w6
Copy link
Owner

m6w6 commented Jul 20, 2015

Should be fixed by 8840a33

@J5lx
Copy link
Author

J5lx commented Jul 20, 2015

Yep, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants