Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 16.04 - Build Issue #20

Open
hellracer opened this issue Mar 29, 2018 · 5 comments
Open

Ubuntu 16.04 - Build Issue #20

hellracer opened this issue Mar 29, 2018 · 5 comments

Comments

@hellracer
Copy link

hellracer commented Mar 29, 2018

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

@kjdev
Copy link
Owner

kjdev commented Apr 4, 2018

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 ?

@shiny
Copy link

shiny commented Jan 26, 2019

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

@kjdev
Copy link
Owner

kjdev commented Jan 27, 2019

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.

@shiny
Copy link

shiny commented Jan 28, 2019

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

@nikpant
Copy link

nikpant commented Sep 20, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants