apache-mod-brotli icon indicating copy to clipboard operation
apache-mod-brotli copied to clipboard

Ubuntu 16.04 - Build Issue

Open hellracer opened this issue 6 years ago • 5 comments

make[1]: Entering directory '/root/apache-mod-brotli'
/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.  -DBUILD_DATETIME='"2017-09-18T15:09:02"' -Wdate-time -D_FORTIFY_SOURCE=2    -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apache2  -I/usr/include/apr-1.0  -I./brotli/c/include  -pipe -g -O2 -fstack-protector-strong -Wformat -Werror=format-security    -pthread -I/usr/include/apache2  -I/usr/include/apr-1.0   -g -O2 -MT mod_brotli_la-mod_brotli.lo -MD -MP -MF .deps/mod_brotli_la-mod_brotli.Tpo -c -o mod_brotli_la-mod_brotli.lo `test -f 'mod_brotli.c' || echo './'`mod_brotli.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -DBUILD_DATETIME=\"2017-09-18T15:09:02\" -Wdate-time -D_FORTIFY_SOURCE=2 -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apache2 -I/usr/include/apr-1.0 -I./brotli/c/include -pipe -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -pthread -I/usr/include/apache2 -I/usr/include/apr-1.0 -g -O2 -MT mod_brotli_la-mod_brotli.lo -MD -MP -MF .deps/mod_brotli_la-mod_brotli.Tpo -c mod_brotli.c  -fPIC -DPIC -o .libs/mod_brotli_la-mod_brotli.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -DBUILD_DATETIME=\"2017-09-18T15:09:02\" -Wdate-time -D_FORTIFY_SOURCE=2 -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apache2 -I/usr/include/apr-1.0 -I./brotli/c/include -pipe -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -pthread -I/usr/include/apache2 -I/usr/include/apr-1.0 -g -O2 -MT mod_brotli_la-mod_brotli.lo -MD -MP -MF .deps/mod_brotli_la-mod_brotli.Tpo -c mod_brotli.c -o mod_brotli_la-mod_brotli.o >/dev/null 2>&1
mv -f .deps/mod_brotli_la-mod_brotli.Tpo .deps/mod_brotli_la-mod_brotli.Plo
make[1]: *** No rule to make target 'brotli/c/common/dictionary.c', needed by 'brotli/c/common/mod_brotli_la-dictionary.lo'.  Stop.
make[1]: Leaving directory '/root/apache-mod-brotli'
Makefile:403: recipe for target 'all' failed
make: *** [all] Error 2

Is there any parameter I can pass to configure script to find this? thanks

hellracer avatar Mar 29 '18 00:03 hellracer

Build using Ubuntu container is done.

% docker run -it --rm ubuntu:16.04 bash
$ apt-get update
$ apt-get install -y apache2-dev libtool autotools-dev automake git
$ git clone --depth=1 --recursive https://github.com/kjdev/apache-mod-brotli.git
$ cd apache-mod-brotli
$ ./autogen.sh
$ ./configure
$ make
$ ls .libs/mod_brotli.so

What about detailed errors and options ?

kjdev avatar Apr 04 '18 22:04 kjdev

Same issue, CentOS 7

[root@izwz99vsyf423lvhl4zmqgz apache-mod-brotli-master]# make
make  all-am
make[1]: Entering directory `/root/apache-mod-brotli-master'
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.  -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/httpd  -I/usr/include/apr-1  -I./brotli/c/include  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic   -pthread -I/usr/include/httpd  -I/usr/include/apr-1   -g -O2 -MT mod_brotli_la-mod_brotli.lo -MD -MP -MF .deps/mod_brotli_la-mod_brotli.Tpo -c -o mod_brotli_la-mod_brotli.lo `test -f 'mod_brotli.c' || echo './'`mod_brotli.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/httpd -I/usr/include/apr-1 -I./brotli/c/include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -pthread -I/usr/include/httpd -I/usr/include/apr-1 -g -O2 -MT mod_brotli_la-mod_brotli.lo -MD -MP -MF .deps/mod_brotli_la-mod_brotli.Tpo -c mod_brotli.c  -fPIC -DPIC -o .libs/mod_brotli_la-mod_brotli.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/httpd -I/usr/include/apr-1 -I./brotli/c/include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -pthread -I/usr/include/httpd -I/usr/include/apr-1 -g -O2 -MT mod_brotli_la-mod_brotli.lo -MD -MP -MF .deps/mod_brotli_la-mod_brotli.Tpo -c mod_brotli.c -o mod_brotli_la-mod_brotli.o >/dev/null 2>&1
mv -f .deps/mod_brotli_la-mod_brotli.Tpo .deps/mod_brotli_la-mod_brotli.Plo
make[1]: *** No rule to make target `brotli/c/common/dictionary.c', needed by `brotli/c/common/mod_brotli_la-dictionary.lo'.  Stop.
make[1]: Leaving directory `/root/apache-mod-brotli-master'
make: *** [all] Error 2

shiny avatar Jan 26 '19 13:01 shiny

Is brotli submodule able to capture it?

$ git submodule init
$ git submodule update

There was no problem when using the CentOS 7 container

$ docker run -it --rm centos:7 bash
$ yum install -y httpd-devel make libtool automake git
$ git clone --depth=1 --recursive https://github.com/kjdev/apache-mod-brotli.git
$ cd apache-mod-brotli
$ ./autogen.sh
$ ./configure
$ make
$ ls .libs/*.so
.libs/mod_brotli.so

Since Apache 2.4.26 or later is officially included, we recommend that you use it.

kjdev avatar Jan 27 '19 22:01 kjdev

Is brotli submodule able to capture it?

$ git submodule init
$ git submodule update

There was no problem when using the CentOS 7 container

$ docker run -it --rm centos:7 bash
$ yum install -y httpd-devel make libtool automake git
$ git clone --depth=1 --recursive https://github.com/kjdev/apache-mod-brotli.git
$ cd apache-mod-brotli
$ ./autogen.sh
$ ./configure
$ make
$ ls .libs/*.so
.libs/mod_brotli.so

Since Apache 2.4.26 or later is officially included, we recommend that you use it.

I don't know why but it works fine now

shiny avatar Jan 28 '19 09:01 shiny

Hello,

I have the same issuse on suse brotoli.txt

make make all-am make[1]: Entering directory '/install/mzahorsk/apache-mod-brotli-master' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DSSL_EXPERIMENTAL_ENGINE -DMAX_SERVER_LIMIT=200000 -DLDAP_DEPRECATED -DMAXLINE=4096 -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apache2 -I/usr/include/apr-1 -I./brotli/c/include -fmessage-length=0 -grecord-gcc-switches -fstack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g -fPIC -Wall -DLDAP_DEPRECATED -pthread -I/usr/include/apache2 -I/usr/include/apr-1 -g -O2 -MT mod_brotli_la-mod_brotli.lo -MD -MP -MF .deps/mod_brotli_la-mod_brotli.Tpo -c -o mod_brotli_la-mod_brotli.lo test -f 'mod_brotli.c' || echo './'mod_brotli.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -DSSL_EXPERIMENTAL_ENGINE -DMAX_SERVER_LIMIT=200000 -DLDAP_DEPRECATED -DMAXLINE=4096 -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apache2 -I/usr/include/apr-1 -I./brotli/c/include -fmessage-length=0 -grecord-gcc-switches -fstack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g -fPIC -Wall -DLDAP_DEPRECATED -pthread -I/usr/include/apache2 -I/usr/include/apr-1 -g -O2 -MT mod_brotli_la-mod_brotli.lo -MD -MP -MF .deps/mod_brotli_la-mod_brotli.Tpo -c mod_brotli.c -fPIC -DPIC -o .libs/mod_brotli_la-mod_brotli.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -DSSL_EXPERIMENTAL_ENGINE -DMAX_SERVER_LIMIT=200000 -DLDAP_DEPRECATED -DMAXLINE=4096 -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apache2 -I/usr/include/apr-1 -I./brotli/c/include -fmessage-length=0 -grecord-gcc-switches -fstack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g -fPIC -Wall -DLDAP_DEPRECATED -pthread -I/usr/include/apache2 -I/usr/include/apr-1 -g -O2 -MT mod_brotli_la-mod_brotli.lo -MD -MP -MF .deps/mod_brotli_la-mod_brotli.Tpo -c mod_brotli.c -o mod_brotli_la-mod_brotli.o >/dev/null 2>&1 mv -f .deps/mod_brotli_la-mod_brotli.Tpo .deps/mod_brotli_la-mod_brotli.Plo make[1]: *** No rule to make target 'brotli/c/common/dictionary.c', needed by 'brotli/c/common/mod_brotli_la-dictionary.lo'. Stop. make[1]: Leaving directory '/install/mzahorsk/apache-mod-brotli-master' Makefile:390: recipe for target 'all' failed make: *** [all] Error 2

nikpant avatar Sep 20 '21 09:09 nikpant