Cannot compile with these configure options

99 views
Skip to first unread message

con t

unread,
May 4, 2016, 8:51:00 PM5/4/16
to ngx-pagespeed-discuss
NPS_VERSION=1.11.33.1
./configure \
        --add-module=/home/nginx/ngx_pagespeed-release-${NPS_VERSION}-beta \
        --add-module=/home/nginx/naxsi-0.55rc1/naxsi_src \
        --prefix=/etc/nginx \
        --sbin-path=/usr/sbin/nginx \
        --modules-path=/usr/lib/nginx/modules \
        --conf-path=/etc/nginx/nginx.conf \
        --error-log-path=/var/log/nginx/error.log \
        --http-log-path=/var/log/nginx/access.log \
        --pid-path=/var/run/nginx.pid \
        --lock-path=/var/run/nginx.lock \
        --http-client-body-temp-path=/var/cache/nginx/client_temp \
        --http-proxy-temp-path=/var/cache/nginx/proxy_temp \
        --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp \
        --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp \
        --http-scgi-temp-path=/var/cache/nginx/scgi_temp \
        --user=nginx \
        --group=nginx \
        --with-http_ssl_module \
        --with-http_realip_module \
        --with-http_addition_module \
        --with-http_sub_module \
        --with-http_dav_module \
        --with-http_flv_module \
        --with-http_mp4_module \
        --with-http_gunzip_module \
        --with-http_gzip_static_module \
        --with-http_random_index_module \
        --with-http_secure_link_module \
        --with-http_stub_status_module \
        --with-http_auth_request_module \
        --with-http_xslt_module=dynamic \
        --with-http_image_filter_module=dynamic \
        --with-http_geoip_module=dynamic \
        --with-http_perl_module=dynamic \
        --with-threads \
        --with-stream \
        --with-stream_ssl_module \
        --with-http_slice_module \
        --with-mail \
        --with-mail_ssl_module \
        --with-file-aio \
        --with-ipv6 \
        --with-http_v2_module \
        --with-cc-opt="-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security" \
        --with-ld-opt="-Wl,-Bsymbolic-functions -Wl,-z,relro"

make log: http://pastebin.com/XSSspr6y

  1. objs/addon/src/ngx_url_async_fetcher.o:/home/nginx/ngx_pagespeed-release-1.11.33.1-beta/src/ngx_url_async_fetcher.cc:89: first defined here
  2. collect2: error: ld returned 1 exit status
  3. make[1]: *** [objs/nginx] Error 1
  4. make: *** [build] Error 2

Nginx 1.10.0, pagespeed 1.11.33.1-beta, psol 1.11.33.1, Ubuntu 14.04

Otto van der Schaaf

unread,
May 6, 2016, 4:49:50 AM5/6/16
to ngx-pagesp...@googlegroups.com
Using the exact same versions and configure line, I'm not able to reproduce any compilation errors.
The errors you get look vaguely familiar, I'm wondering if you somehow have an older ngx_pagespeed release.. where did you get pagespeed 1.11.33.1-beta from?

Otto

--
You received this message because you are subscribed to the Google Groups "ngx-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ngx-pagespeed-di...@googlegroups.com.
Visit this group at https://groups.google.com/group/ngx-pagespeed-discuss.
For more options, visit https://groups.google.com/d/optout.

con t

unread,
May 7, 2016, 9:46:36 PM5/7/16
to ngx-pagespeed-discuss
cd
wget https
://github.com/nbs-system/naxsi/archive/0.55rc1.tar.gz
tar xvf
0.55rc1.tar.gz

cd
NPS_VERSION
=1.11.33.1
wget https
://github.com/pagespeed/ngx_pagespeed/archive/release-${NPS_VERSION}-beta.zip -O 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  # extracts to psol/

cd
# check http://nginx.org/en/download.html for the latest version
NGINX_VERSION
=1.10.0
wget http
://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz
tar
-xvzf nginx-${NGINX_VERSION}.tar.gz
cd nginx
-${NGINX_VERSION}/

Just tried grabbing everything again, same results.
To unsubscribe from this group and stop receiving emails from it, send an email to ngx-pagespeed-discuss+unsub...@googlegroups.com.

Otto van der Schaaf

unread,
May 9, 2016, 4:58:55 PM5/9/16
to ngx-pagesp...@googlegroups.com
Could you swap these two lines and try again? 


       --add-module=/home/nginx/ngx_pagespeed-release-${NPS_VERSION}-beta \
       --add-module=/home/nginx/naxsi-0.55rc1/naxsi_src \

That way you should be able to compile nginx. When you specify them the other way around, there seems to be a conflict between ngx_pagespeed and naxsi. I'll have a look at that to see if I can get more details about it.

Otto


To unsubscribe from this group and stop receiving emails from it, send an email to ngx-pagespeed-di...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "ngx-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ngx-pagespeed-di...@googlegroups.com.

con t

unread,
May 9, 2016, 9:40:30 PM5/9/16
to ngx-pagespeed-discuss
Yes that worked, thanks for the help.

Changing pagespeed to --add-dynamic-module also works.
To unsubscribe from this group and stop receiving emails from it, send an email to ngx-pagespeed-discuss+unsub...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "ngx-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ngx-pagespeed-discuss+unsub...@googlegroups.com.

Otto van der Schaaf

unread,
May 10, 2016, 4:33:28 AM5/10/16
to ngx-pagesp...@googlegroups.com

To unsubscribe from this group and stop receiving emails from it, send an email to ngx-pagespeed-di...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "ngx-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ngx-pagespeed-di...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "ngx-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ngx-pagespeed-di...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages