yucolabjames edited a comment on issue #1615: Build error for nginx 1.15.8 (invalid option "-DNGX_HTTP_HEADERS'") URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1615#issuecomment-453886668 Thanks for pointing me into the right direction, adding a single quote didn't work and double quote broke it even more with an error: `Makefile:18: *** missing separator. Stop.` What I resorted doing is pasting the variable in a single line which worked but the binary obtained is still invalid ``` ./configure --add-dynamic-module=$HOME/$nps_dir --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-compat --with-file-aio --with-threads --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-mail --with-mail_ssl_module --with-stream --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module --with-cc-opt='-g -DNGX_HTTP_HEADERS' --with-ld-opt='-Wl,-Bsymbolic-functions' ``` Error on restarting nginx: ``` Jan 14 09:54:46 www-dev systemd[1]: Starting nginx - high performance web server... Jan 14 09:54:46 www-dev nginx[21741]: nginx: [emerg] module "/usr/local/nginx/modules/ngx_pagespeed.so" is not binary compatible in /etc/nginx/nginx.conf:4 Jan 14 09:54:46 www-dev systemd[1]: nginx.service: Control process exited, code=exited status=1 Jan 14 09:54:46 www-dev systemd[1]: nginx.service: Failed with result 'exit-code'. ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
