Closed 27Bslash6 closed 9 years ago
UP & my log from Docker:
/b/ngx_pagespeed-release-1.9.32.6-beta//src/ngx_pagespeed.cc: In function 'void net_instaweb::{anonymous}::ps_release_request_context(void*)':
/b/ngx_pagespeed-release-1.9.32.6-beta//src/ngx_pagespeed.cc:1713:42: error: no matching function for call to 'net_instaweb::InPlaceResourceRecorder::DoneAndSetHeaders(NULL)'
ctx->recorder->DoneAndSetHeaders(NULL); // Deletes recorder.
^
/b/ngx_pagespeed-release-1.9.32.6-beta//src/ngx_pagespeed.cc:1713:42: note: candidate is:
In file included from /b/ngx_pagespeed-release-1.9.32.6-beta//src/ngx_pagespeed.cc:56:0:
/b/ngx_pagespeed-release-1.9.32.6-beta//psol/include/net/instaweb/system/public/in_place_resource_recorder.h:120:8: note: void net_instaweb::InPlaceResourceRecorder::DoneAndSetHeaders(net_instaweb::ResponseHeaders*, bool)
void DoneAndSetHeaders(ResponseHeaders* response_headers,
^
/b/ngx_pagespeed-release-1.9.32.6-beta//psol/include/net/instaweb/system/public/in_place_resource_recorder.h:120:8: note: candidate expects 2 arguments, 1 provided
/b/ngx_pagespeed-release-1.9.32.6-beta//src/ngx_pagespeed.cc: In function 'ngx_int_t net_instaweb::{anonymous}::in_place::ps_in_place_body_filter(ngx_http_request_t*, ngx_chain_t*)':
/b/ngx_pagespeed-release-1.9.32.6-beta//src/ngx_pagespeed.cc:2509:57: error: no matching function for call to 'net_instaweb::InPlaceResourceRecorder::DoneAndSetHeaders(net_instaweb::ResponseHeaders*)'
ctx->recorder->DoneAndSetHeaders(&response_headers);
^
/b/ngx_pagespeed-release-1.9.32.6-beta//src/ngx_pagespeed.cc:2509:57: note: candidate is:
In file included from /b/ngx_pagespeed-release-1.9.32.6-beta//src/ngx_pagespeed.cc:56:0:
/b/ngx_pagespeed-release-1.9.32.6-beta//psol/include/net/instaweb/system/public/in_place_resource_recorder.h:120:8: note: void net_instaweb::InPlaceResourceRecorder::DoneAndSetHeaders(net_instaweb::ResponseHeaders*, bool)
void DoneAndSetHeaders(ResponseHeaders* response_headers,
^
/b/ngx_pagespeed-release-1.9.32.6-beta//psol/include/net/instaweb/system/public/in_place_resource_recorder.h:120:8: note: candidate expects 2 arguments, 1 provided
make[1]: *** [objs/addon/src/ngx_pagespeed.o] Error 1
make[1]: Leaving directory `/b/nginx-1.9.3'
make: *** [build] Error 2
INFO[0245] The command [/bin/sh -c DEBIAN_FRONTEND=noninteractive apt-get update && apt-get -y install wget unzip && apt-get -y install build-essential zlib1g-dev libpcre3 libpcre3-dev && mkdir ${BUILDDIR} && cd ${BUILDDIR} && wget https://github.com/pagespeed/ngx_pagespeed/archive/release-${NPS_VERSION}-beta.zip && unzip release-${NPS_VERSION}-beta.zip && cd ngx_pagespeed-release-${NPS_VERSION}-beta/ && wget https://dl.google.com/dl/page-speed/psol/${NPS_VERSION}.tar.gz && tar -xzvf ${NPS_VERSION}.tar.gz && cd ${BUILDDIR} && wget http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz && tar -xvzf nginx-${NGINX_VERSION}.tar.gz && cd ${BUILDDIR} && wget ftp://ftp.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz && tar -xvzf openssl-${OPENSSL_VERSION}.tar.gz && cd ${BUILDDIR}/nginx-${NGINX_VERSION} && ./configure --add-module=${BUILDDIR}/ngx_pagespeed-release-${NPS_VERSION}-beta/ --with-openssl=${BUILDDIR}/openssl-${OPENSSL_VERSION} --with-http_ssl_module --with-http_realip_module && make && make install && cd / && rm -r ${BUILDDIR} && apt-get purge -y --auto-remove wget build-essential unzip && rm -rf /var/lib/apt/lists/*] returned a non-zero code: 2
https://github.com/episage/docker-ngx-psm/blob/master/Dockerfile
I'm sorry about that! Totally our fault. Fixed in 0f3f268. Redownload https://github.com/pagespeed/ngx_pagespeed/archive/release-1.9.32.6-beta.zip and it should work now.
Where I had no trouble compiling 1.9.32.4-beta in my Dockerfile, upon changing to 1.9.32.6 I receive the following error:
This is built on a Phusion Ubuntu trusty image - https://registry.hub.docker.com/u/phusion/baseimage/