Antwort: [Mod_gzip] [compilation problem] apache&mod_gzip

phil mod_gzip@lists.over.net
Mon, 17 Mar 2003 07:24:03 +0100


it worked finally.

its not a really good method but it work ...
I will see later for something of better

cd mod_gzip-1.3.26.1a
mkdir ../apache/src/modules/gzip
cp *.c ../apache/src/modules/gzip/
cp *.h ../apache/src/modules/gzip/
cp *.tmpl ../apache/src/modules/gzip/

cd ../apache
./configure \
--prefix=/var/www \
--activate-module=src/modules/gzip/mod_gzip.a

in file apache/src/modules/gzip/Makefile

replace at line 63: "all: lib shlib" by "all: libgzip.a mod_gzip.a"

and at line 112: "all: lib" by "all: libgzip.a mod_gzip.a"

from line 96 to 103 of apache/src/modules/gzip/mod_gzip.c :

#include "httpd.h"
#include "http_config.h"
#include "http_core.h"
#include "http_log.h"
#include "http_main.h"
#include "http_protocol.h"
#include "http_request.h"
#include "util_script.h"

by

#include "../../include/httpd.h"
#include "../../include/http_config.h"
#include "../../include/http_core.h"
#include "../../include/http_log.h"
#include "../../include/http_main.h"
#include "../../include/http_protocol.h"
#include "../../include/http_request.h"
#include "../../include/util_script.h"

line 114 of apache/src/include/ap_config.h
#include "os.h" by #include "../os/unix/os.h"

line 62 of apache/src/os/unix/os.h
#include "ap_config.h" by #include "../../include/ap_config.h"

cd apache
make && make install

apachectl start

and in log i can see :
Apache/1.3.27 (Unix) mod_gzip/1.3.26.1a configured -- resuming normal
operations