Comments (8)
Hi,
I'm seeing the same issue for Nginx 1.9.11 with the following configure line:
./configure
--with-http_geoip_module
--with-http_realip_module
--with-http_ssl_module
--with-http_gunzip_module
--with-http_addition_module
--with-http_auth_request_module
--with-http_gzip_static_module
--with-http_stub_status_module
--with-http_v2_module
--with-http_sub_module
--with-ipv6
--prefix=/etc/nginx
--sbin-path=/usr/bin/nginx
--error-log-path=/var/log/nginx/error.log
--pid-path=/var/run/nginx.pid
--http-log-path=/var/log/nginx/access.log
--add-module=modules/ngx_brotli
Configure passes, but ngx_brotli
spits out the following extra information. The output looks somewhat similar to that which is outputted by ngx_pagespeed
apache/incubator-pagespeed-ngx#1110
adding module in modules/ngx_brotli
checking for Brotli library ... found
sed: -e expression #1, char 0: no previous regular expression
+ ngx_brotli was configured
Make then errors out with the following:
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules -I src/http/v2 -I src/mail \
-o objs/addon/src/ngx_http_brotli_filter_module.o \
modules/ngx_brotli/src/ngx_http_brotli_filter_module.cc
modules/ngx_brotli/src/ngx_http_brotli_filter_module.cc:173:1: error: deprecated conversion from string constant to ‘char*’ [-Werror=write-strings]
};
^
cc1plus: all warnings being treated as errors
make[1]: *** [objs/addon/src/ngx_http_brotli_filter_module.o] Error 1
make[1]: Leaving directory `/tmp/nginx-1.9.11'
make: *** [build] Error 2
from ngx_brotli.
I got the same sed
line as well.
from ngx_brotli.
It looks like if you configure ngx_brotli
with export NGX_BROTLI_STATIC_MODULE_ONLY=1
, compilation proceeds without error.
export NGX_BROTLI_STATIC_MODULE_ONLY=1 && \
./configure --add-module=modules/ngx_brotli
I've only tested compilation thus far today, as I'm working on other modules that aren't working well with Nginx 1.9.11.
from ngx_brotli.
@charlesportwoodii tried that but get
Starting nginx: nginx: [emerg] unknown directive "brotli"
despite the ngx_brotli module showing up at
--with-http_gzip_static_module --add-module=../ngx_brotli
within
nginx -V
nginx version: nginx/1.9.11
built by clang 3.4.2 (tags/RELEASE_34/dot2-final)
built with LibreSSL 2.2.6
TLS SNI support enabled
configure arguments: --with-ld-opt='-lrt -ljemalloc -Wl,-z,relro -Wl,-rpath,/usr/local/lib' --with-cc-opt='-m64 -mtune=native -mfpmath=sse -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wno-sign-compare -Wno-string-plus-int -Wno-deprecated-declarations -Wno-unused-parameter -Wno-unused-const-variable -Wno-conditional-uninitialized -Wno-mismatched-tags -Wno-c++11-extensions -Wno-sometimes-uninitialized -Wno-parentheses-equality -Wno-tautological-compare -Wno-self-assign -Wno-deprecated-register -Wno-deprecated -Wno-invalid-source-encoding -Wno-pointer-sign -Wno-parentheses -Wno-enum-conversion -Wno-c++11-compat-deprecated-writable-strings' --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --with-http_stub_status_module --with-http_secure_link_module --with-openssl-opt=enable-tlsext --add-module=../nginx-module-vts --with-libatomic --with-threads --with-stream --with-stream_ssl_module --with-http_gzip_static_module --add-module=../ngx_brotli --with-http_sub_module --with-http_addition_module --with-http_image_filter_module --with-http_geoip_module --with-http_realip_module --add-module=../nginx-accesskey-2.0.3 --add-module=../nginx-http-concat-master --add-module=../ngx-fancyindex-ngx-fancyindex --add-module=../ngx_cache_purge-2.3 --add-module=../ngx_devel_kit-0.2.19 --add-module=../set-misc-nginx-module-0.29 --add-module=../echo-nginx-module-0.58 --add-module=../redis2-nginx-module-0.12 --add-module=../ngx_http_redis-0.3.7 --add-module=../nginx_upstream_check_module-0.3.0 --add-module=../openresty-memc-nginx-module-4f6f78f --add-module=../openresty-srcache-nginx-module-ffa9ab7 --add-module=../headers-more-nginx-module-0.29 --with-pcre=../pcre-8.38 --with-pcre-jit --with-http_ssl_module --with-http_v2_module --with-openssl=../libressl-2.2.6
from ngx_brotli.
@centminmod : using NGX_BROTLI_STATIC_MODULE_ONLY=1
provides only brotli_static
module (i.e. serving of pre-compressed files).
The issue is being worked on, expect fixes later today.
from ngx_brotli.
ah thanks @PiotrSikora for the clarification ..appreciate your work on this :)
from ngx_brotli.
Fixed in 86998c6.
from ngx_brotli.
haha nice just noticed the fix when i recompiled nginx just seconds ago https://community.centminmod.com/posts/26127/ !
thanks @PiotrSikora
from ngx_brotli.
Related Issues (20)
- Why on earth is this so complicated to install in Ubuntu AND have it auto-update? HOT 5
- nginx only uses br if content-length response header is missing HOT 1
- Use-After-Free problem HOT 5
- Does not compile on Debian 12 / Bookworm HOT 5
- Statically compiled installation fails HOT 13
- make[1]: Nothing to be done for 'modules' HOT 1
- cannot find -lbrotlienc HOT 3
- Statically compiled failure on debian 11 ARM HOT 1
- Still "make[1]: Nothing to be done for 'modules'" after PR HOT 6
- Statically compiled module fails to compile on arm64 HOT 2
- Brotli throwing errors on make modules: Ubuntu 22.04 HOT 4
- ''' /tmp/ngx_brotli/filter/ngx_http_brotli_filter_module.c: In function 'ngx_http_brotli_header_filter': 136.9 /tmp/ngx_brotli/filter/ngx_http_brotli_filter_module.c:322:4: error: 'ngx_table_elt_t' has no member named 'next' 136.9 322 | h->next = NULL; 136.9 | ^~ HOT 9
- nginx 1.25.2 rpm build (Fedora/COPR) + brotli/master as dynamic module FAIL: error: Brotli library is missing ... HOT 6
- compile failed with nginx when cmake build brotli return plugin needed to handle lto object HOT 6
- Statically compiled instructions fail for armv7 on raspberry pi 4 HOT 1
- Enforce Brotli over Gzip for reverse proxy HOT 1
- Docs / readme improvement: clarify behavior with reverse proxied backends
- Build errors for dynamic module on Ubuntu 20.04 on Raspeberry Pi 4 ARM. HOT 4
- cmake failed on macos HOT 1
- Critical issue on nginx worker exited on signal 4 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngx_brotli.