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

ngx_http_core_try_files_phase was not declared in this scope #3

Open
brad13x opened this issue Jul 28, 2017 · 2 comments
Open

ngx_http_core_try_files_phase was not declared in this scope #3

brad13x opened this issue Jul 28, 2017 · 2 comments

Comments

@brad13x
Copy link

brad13x commented Jul 28, 2017

Installing on a clean ubuntu 16.04 at digital ocean.

Used this guide to create some Swap space then ran the code below per this post

cd /opt
&& git clone https://github.com/serveradminsh/installers
&& cd installers/nginx
&& chmod +x installer.sh
&& ./installer.sh

/usr/local/src/github/ngx_pagespeed-1.12.34.2-beta/src/ngx_pagespeed.cc
/usr/local/src/github/ngx_pagespeed-1.12.34.2-beta/src/ngx_pagespeed.cc: In function ‘ngx_int_t net_instaweb::{anonymous}::ps_preaccess_handler(ngx_http_request_t*)’:
/usr/local/src/github/ngx_pagespeed-1.12.34.2-beta/src/ngx_pagespeed.cc:3011:31: error: ‘ngx_http_core_try_files_phase’ was not declared in this scope
while (ph[i + 1].checker != ngx_http_core_try_files_phase &&
^
objs/Makefile:2364: recipe for target 'objs/addon/src/ngx_pagespeed.o' failed
make[1]: *** [objs/addon/src/ngx_pagespeed.o] Error 1
make[1]: Leaving directory '/usr/local/src/github/nginx'
Makefile:8: recipe for target 'build' failed
make: *** [build] Error 2

Was wondering if it was because I didnt create enough Swap space (1G) or if the something is wrong with the ngx_pagespeed code.

@bbbenji
Copy link

bbbenji commented Aug 24, 2017

This is an issue with NGINX 1.13.4 and PageSpeed 1.12.34.2.

Please see my pull request: #5

This resolves the problem by building NGINX 1.13.3 instead.

@CristianHG2
Copy link

The fix that @bbbenji mention works, but there is a working candidate fix on ngx-pagespeed's repo

pagespeed#1453

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

4 participants