[Mod_gzip] mod_gzip & apache 2 - please help!! urgent!

MediaHost (TM) mod_gzip@lists.over.net
Sun, 3 Nov 2002 00:54:30 +0200


OK,

I've got the answer....

Go into the httpd-2.0.43/build directory and edit the config_vars.mk file
AFTER you run ./configure

It has there two lines, one for include and one for library files. search
for the string /usr/local/include and /usr/local/lib and change them to the
real path to your real zlib directory's. I compiled the 1.1.4 zlib into a
different location.

I compiled mod_gzip by placing it into httpd-2.0.43/modules/filters
directory and editing a few lines at the modules.mk file (You'll see by
yourself...)

After install added the addmodule directive for mod_gzip and.....here we go!

Hope this helps.

----- Original Message -----
From: <Michael.Schroepl@telekurs.de>
To: <mod_gzip@lists.over.net>
Sent: Thursday, October 31, 2002 2:13 PM
Subject: Antwort: Re: [Mod_gzip] mod_gzip & apache 2 - please help!! urgent!


>
> Hallo Michael,
>
>
> > OK, now I used the mod_gzip.c from the mail you sent.
> > It compiles with apxs -i -a -c mod_gzip.c.
>
> so you now have the version that has been adapted to
> the Apache API you are using. Fine.
>
> > Syntax error on line 269 of /opt/apache2/conf/httpd.conf:
> > Cannot load /opt/apache2/modules/mod_gzip.so into server:
> > /opt/apache2/modules/mod_gzip.so: undefined symbol: deflate
>
> Despite of its version number, mod_gzip 2.0 is a much
> _older_ product than mod_gzip 1.3 and not able to run
> without foreign dependencies.
> It does not contain its own gzip routines (like mod_gzip
> 1.3), but relies upon the operating system to have the
> standard "zlib" library already installed (which is
> quite common for Linux servers but obviously missing
> on your machine).
>
> The "deflate" symbol is a reference to a function inside
> this "zlib" code.
> And the resolving of these symbols is done at the time
> when your mod_gzip.so shared object is loaded into the
> Apache code, which happens when your "LoadModule" direc-
> tive is being parsed by the Apache server.
> Only then the Apache is able to find out that you are
> missing some requirement - this cannot be tested at
> compile time. And therefore Apache reports an error
> while parsing its configuration file - because this is
> what Apache is about to do when the error occurs.
>
> If you had compiled mod_gzip into the Apache code as a
> static module then this error would have occurred when
> linking the "httpd" binary, i. e. much earlier.
>
> So the solution is: Get yourself a "zlib" library, and
> install it on your machine.
> If done properly, the reference to it from mod_gzip 2.0
> will be successfully resolved at Apache load time.
>
> You need not recompile mod_gzip - just give to it what
> it asks you for.
>
> Regards, Michael
>
>
> _______________________________________________
> mod_gzip mailing list
> mod_gzip@lists.over.net
> http://lists.over.net/mailman/listinfo/mod_gzip
>


---
StartCom Ltd.
http://www.startcom.org

Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.408 / Virus Database: 230 - Release Date: 10/30/2002