GithubHelp home page GithubHelp logo

Comments (8)

charlesportwoodii avatar charlesportwoodii commented on August 14, 2024

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.

jonnybarnes avatar jonnybarnes commented on August 14, 2024

I got the same sed line as well.

from ngx_brotli.

charlesportwoodii avatar charlesportwoodii commented on August 14, 2024

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.

centminmod avatar centminmod commented on August 14, 2024

@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.

PiotrSikora avatar PiotrSikora commented on August 14, 2024

@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.

centminmod avatar centminmod commented on August 14, 2024

ah thanks @PiotrSikora for the clarification ..appreciate your work on this :)

from ngx_brotli.

PiotrSikora avatar PiotrSikora commented on August 14, 2024

Fixed in 86998c6.

from ngx_brotli.

centminmod avatar centminmod commented on August 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.