Antwort: [Mod_gzip] Compilation Problem w/apxs

mod_gzip@lists.over.net mod_gzip@lists.over.net
Tue, 4 Mar 2003 18:51:32 +0200


Hi Ed,



> /$PATH/libexec/mod_gzip.so: undefined symbol: gzp_main
> Googling revealed nothing for 'gzp_main': anyone an idea what may be
wrong?

     int gzp_main(request_rec *, GZP_CONTROL *);

is defined in "mod_gzip_compress.c".

> I'm using the latest mod_gzip source, compiled using:
> apxs -c mod_foo.c
> apxs -i -a -n foo mod_foo.so

This would work for Apache modules that consist of a single
source code file.
mod_gzip has been of that type in earlier versions, but now
consists of several source code files (to clearly separate
compression stuff from Apache API stuff), all of which have
to be compiled (which you didn't do - you only compiled the
Apache API source file).

Therefore, the download archive contains a Makefile that
specifies the dependencies between these files.
This Makefile must be used to compile mod_gzip with apxs.
(You may need to edit this Makefile to adapt the path of
your apxs, or somehow set the apxs path externally.)

Regards, Michael