Build when adding additional arguments

49 views
Skip to first unread message

Frederic Trudeau

unread,
Dec 8, 2016, 12:00:50 PM12/8/16
to ngx-pagesp...@googlegroups.com

Hello, I'm trying to built ngx_pagespeed using latest build_ngx_pagespeed.sh script, and I gest this error message :

./configure: error: module ngx_pagespeed requires the pagespeed optimization library.  

- - -

This error does not occur if I leave out additional arguments. However I must add them, because I'm building against an existing nginx installation. See full process below :


# ./build_ngx_pagespeed.sh --ngx-pagespeed-version 1.12.34.1 --dynamic-module --nginx-version 1.11.6
Detected debian-based distro.
Operating system dependencies are all set.
Downloading ngx_pagespeed...
Resolving github.com (github.com)... 192.30.253.113, 192.30.253.112
Connecting to github.com (github.com)|192.30.253.113|:443... connected.
HTTP request sent, awaiting response... 302 Found
Resolving codeload.github.com (codeload.github.com)... 192.30.253.120, 192.30.253.121
Connecting to codeload.github.com (codeload.github.com)|192.30.253.120|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 146944 (144K) [application/zip]
Saving to: ‘/tmp/tmp.xA4FNuvACm/ngx_pagespeed-1.12.34.1-beta.zip’

/tmp/tmp.xA4FNuvACm/ngx_pagespeed-1.12.34.1-beta.zip                100%[==================================================================================================================================================================>] 143.50K  --.-KB/s    in 0.06s

2016-12-08 11:54:11 (2.18 MB/s) - ‘/tmp/tmp.xA4FNuvACm/ngx_pagespeed-1.12.34.1-beta.zip’ saved [146944/146944]

OK to delete /root/ngx_pagespeed-1.12.34.1-beta? [Y/n]
Extracting ngx_pagespeed...
Downloading PSOL binary...
Resolving dl.google.com (dl.google.com)... 2607:f8b0:4009:812::200e, 172.217.6.110
Connecting to dl.google.com (dl.google.com)|2607:f8b0:4009:812::200e|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 16949754 (16M) [application/octet-stream]
Saving to: ‘1.12.34.1-x64.tar.gz’

1.12.34.1-x64.tar.gz                                                100%[==================================================================================================================================================================>]  16.16M  44.2MB/s    in 0.4s

2016-12-08 11:54:14 (44.2 MB/s) - ‘1.12.34.1-x64.tar.gz’ saved [16949754/16949754]

Extracting PSOL...

Downloading nginx...
Resolving nginx.org (nginx.org)... 2606:7100:1:69::3f, 2001:1af8:4060:a004:21::e3, 95.211.80.227, ...
Connecting to nginx.org (nginx.org)|2606:7100:1:69::3f|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 960331 (938K) [application/octet-stream]
Saving to: ‘/tmp/tmp.xA4FNuvACm/nginx-1.11.6.tar.gz’

/tmp/tmp.xA4FNuvACm/nginx-1.11.6.tar.gz                             100%[==================================================================================================================================================================>] 937.82K  1.19MB/s    in 0.8s

2016-12-08 11:54:16 (1.19 MB/s) - ‘/tmp/tmp.xA4FNuvACm/nginx-1.11.6.tar.gz’ saved [960331/960331]

OK to delete /root/nginx-1.11.6/? [Y/n]
Extracting nginx...
About to build nginx.  Do you have any additional ./configure
arguments you would like to set?  For example, if you would like
to build nginx with https support give --with-http_ssl_module
If you don't have any, just press enter.
> --with-cc-opt='-g -O2 -fPIC -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-pcre-jit --with-ipv6 --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_addition_module --with-http_dav_module --with-http_geoip_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_v2_module --with-http_sub_module --with-http_xslt_module --with-stream --with-stream_ssl_module --with-mail --with-mail_ssl_module --with-threads
About to configure nginx with:
   ./configure --add-dynamic-module=/root/ngx_pagespeed-1.12.34.1-beta '--with-cc-opt=-g -O2 -fPIC -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2' '--with-ld-opt=-Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-pcre-jit --with-ipv6 --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_addition_module --with-http_dav_module --with-http_geoip_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_v2_module --with-http_sub_module --with-http_xslt_module --with-stream --with-stream_ssl_module --with-mail --with-mail_ssl_module --with-threads
Does this look right? [Y/n]
checking for OS
 + Linux 4.4.0-38-generic x86_64
checking for C compiler ... found
 + using GNU C compiler
 + gcc version: 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4)
checking for gcc -pipe switch ... found
checking for --with-ld-opt="-Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now" ... found
checking for -Wl,-E switch ... found
checking for gcc builtin atomic operations ... found
checking for C99 variadic macros ... found
checking for gcc variadic macros ... found
checking for gcc builtin 64 bit byteswap ... found
checking for unistd.h ... found
checking for inttypes.h ... found
checking for limits.h ... found
checking for sys/filio.h ... not found
checking for sys/param.h ... found
checking for sys/mount.h ... found
checking for sys/statvfs.h ... found
checking for crypt.h ... found
checking for Linux specific features
checking for epoll ... found
checking for EPOLLRDHUP ... found
checking for EPOLLEXCLUSIVE ... not found
checking for O_PATH ... found
checking for sendfile() ... found
checking for sendfile64() ... found
checking for sys/prctl.h ... found
checking for prctl(PR_SET_DUMPABLE) ... found
checking for sched_setaffinity() ... found
checking for crypt_r() ... found
checking for sys/vfs.h ... found
checking for nobody group ... not found
checking for nogroup group ... found
checking for poll() ... found
checking for /dev/poll ... not found
checking for kqueue ... not found
checking for crypt() ... not found
checking for crypt() in libcrypt ... found
checking for F_READAHEAD ... not found
checking for posix_fadvise() ... found
checking for O_DIRECT ... found
checking for F_NOCACHE ... not found
checking for directio() ... not found
checking for statfs() ... found
checking for statvfs() ... found
checking for dlopen() ... not found
checking for dlopen() in libdl ... found
checking for sched_yield() ... found
checking for SO_SETFIB ... not found
checking for SO_REUSEPORT ... found
checking for SO_ACCEPTFILTER ... not found
checking for SO_BINDANY ... not found
checking for IP_BIND_ADDRESS_NO_PORT ... found
checking for IP_TRANSPARENT ... found
checking for IP_BINDANY ... not found
checking for IP_RECVDSTADDR ... not found
checking for IP_PKTINFO ... found
checking for IPV6_RECVPKTINFO ... found
checking for TCP_DEFER_ACCEPT ... found
checking for TCP_KEEPIDLE ... found
checking for TCP_FASTOPEN ... found
checking for TCP_INFO ... found
checking for accept4() ... found
checking for eventfd() ... found
checking for int size ... 4 bytes
checking for long size ... 8 bytes
checking for long long size ... 8 bytes
checking for void * size ... 8 bytes
checking for uint32_t ... found
checking for uint64_t ... found
checking for sig_atomic_t ... found
checking for sig_atomic_t size ... 4 bytes
checking for socklen_t ... found
checking for in_addr_t ... found
checking for in_port_t ... found
checking for rlim_t ... found
checking for uintptr_t ... uintptr_t found
checking for system byte ordering ... little endian
checking for size_t size ... 8 bytes
checking for off_t size ... 8 bytes
checking for time_t size ... 8 bytes
checking for AF_INET6 ... found
checking for setproctitle() ... not found
checking for pread() ... found
checking for pwrite() ... found
checking for pwritev() ... found
checking for sys_nerr ... found
checking for localtime_r() ... found
checking for posix_memalign() ... found
checking for memalign() ... found
checking for mmap(MAP_ANON|MAP_SHARED) ... found
checking for mmap("/dev/zero", MAP_SHARED) ... found
checking for System V shared memory ... found
checking for POSIX semaphores ... not found
checking for POSIX semaphores in libpthread ... found
checking for struct msghdr.msg_control ... found
checking for ioctl(FIONBIO) ... found
checking for struct tm.tm_gmtoff ... found
checking for struct dirent.d_namlen ... not found
checking for struct dirent.d_type ... found
checking for sysconf(_SC_NPROCESSORS_ONLN) ... found
checking for openat(), fstatat() ... found
checking for getaddrinfo() ... found
configuring additional dynamic modules
adding module in /root/ngx_pagespeed-1.12.34.1-beta
mod_pagespeed_dir=/root/ngx_pagespeed-1.12.34.1-beta/psol/include
build_from_source=false
checking for psol ... not found
./configure: error: module ngx_pagespeed requires the pagespeed optimization library.
Look in /root/nginx-1.11.6/objs/autoconf.err for more details.
Error: Failure running './configure --add-dynamic-module=/root/ngx_pagespeed-1.12.34.1-beta --with-cc-opt=-g -O2 -fPIC -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 --with-ld-opt=-Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-pcre-jit --with-ipv6 --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_addition_module --with-http_dav_module --with-http_geoip_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_v2_module --with-http_sub_module --with-http_xslt_module --with-stream --with-stream_ssl_module --with-mail --with-mail_ssl_module --with-threads', exiting.

Jeff Kaufman

unread,
Dec 8, 2016, 12:50:35 PM12/8/16
to ngx-pagesp...@googlegroups.com
The problem is the --with-debug ; we have a bug open for this you can
track: https://github.com/pagespeed/ngx_pagespeed/issues/1333

(When you run build_ngx_pagespeed.sh without additional arguments it
defaults to latest-stable instead, which doesn't have this problem.)
> --
> 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.

Frederic Trudeau

unread,
Dec 8, 2016, 12:58:58 PM12/8/16
to ngx-pagesp...@googlegroups.com

I understand, but running build_ngx_pagespeed.sh without additional arguments  is not an option, since it must be built as a dynamic module, and if I specify this flag, I get another error :

# ./build_ngx_pagespeed.sh --dynamic-module
Error:
You're trying to build ngx_pagespeed latest-stable as a dynamic module, but
ngx_pagespeed didn't add support for dynamic modules until 1.10.33.5.

For usage information, run this script with --help

Sorry if this is also a known bug, I did not search for it.

FT

Jeff Kaufman

unread,
Dec 8, 2016, 1:48:49 PM12/8/16
to ngx-pagesp...@googlegroups.com
Hmm, that sounds like a bug in the installer script. Reproduced, and
filed a bug: https://github.com/pagespeed/mod_pagespeed/issues/1443

For now, what if you do:

./build_ngx_pagespeed.sh --dynamic-module --ngx-pagespeed-version 1.11.33.4

(This works for me locally. 1.11.33.4 is the current latest stable version)

Jeff

Frederic Trudeau

unread,
Dec 8, 2016, 1:50:40 PM12/8/16
to ngx-pagesp...@googlegroups.com

Gracias.

Jeff Kaufman

unread,
Dec 8, 2016, 3:15:43 PM12/8/16
to ngx-pagesp...@googlegroups.com
The installer script bug is fixed now.
Reply all
Reply to author
Forward
0 new messages