[Mod_gzip] trouble compling as a static module

Mark Maunder mod_gzip@lists.over.net
07 Aug 2003 16:11:01 -0700


OK, solved it myself. Not sure why it works, but it works. I modified
the first line of Makefile.tmpl from LIB=libgzip.$(LIBEXT) to 
LIB=libgzip.a
And changed the configure command to
./configure --prefix=/usr/local/apache 
--activate-module=src/modules/gzip/mod_gzip.o 
(changed mod_gzip.a to mod_gzip.o)

I found a posting on the mod_ssl list describing a similar problem with
that module and a similar fix. Anyway, seems to have compiled ok now
with mod_gzip listed under httpd -l so I'm happy.

On Thu, 2003-08-07 at 15:59, Mark Maunder wrote:
> erm, Just thought I'd add this. Right before the error I get a bunch of
> warnings about make overriding commands in the Makefile. The entire
> output including warnings is:
> 
> Makefile:108: warning: overriding commands for target `libgzip.a'
> Makefile:61: warning: ignoring old commands for target `libgzip.a'
> Makefile:132: warning: overriding commands for target `.c.o'
> Makefile:68: warning: ignoring old commands for target `.c.o'
> Makefile:138: warning: overriding commands for target `clean'
> Makefile:75: warning: ignoring old commands for target `clean'
> Makefile:141: warning: overriding commands for target `distclean'
> Makefile:78: warning: ignoring old commands for target `distclean'
> Makefile:147: warning: overriding commands for target `depend'
> Makefile:82: warning: ignoring old commands for target `depend'
> gcc -c  -I../../os/unix -I../../include   -DLINUX=22 -DUSE_HSREGEX
> -DNO_DL_NEEDED `../../apaci` mod_gzip.c
> gcc -c  -I../../os/unix -I../../include   -DLINUX=22 -DUSE_HSREGEX
> -DNO_DL_NEEDED `../../apaci` mod_gzip_compress.c
> gcc -c  -I../../os/unix -I../../include   -DLINUX=22 -DUSE_HSREGEX
> -DNO_DL_NEEDED `../../apaci` mod_gzip_debug.c
> make[4]: *** No rule to make target `mod_gzip.a', needed by
> `libgzip.a'.  Stop.
> make[3]: *** [all] Error 1
> make[2]: *** [subdirs] Error 1
> make[2]: Leaving directory `/home/mark/misc/apache_1.3.28/src'
> make[1]: *** [build-std] Error 2
> make[1]: Leaving directory `/home/mark/misc/apache_1.3.28'
> make: *** [build] Error 2
> 
> Thanks for any help!
> 
> Mark.
> 
> 
> On Thu, 2003-08-07 at 15:52, Mark Maunder wrote:
> > Hi,
> > 
> > I am trying to build mod_gzip into apache 1.3.28 as a static module. I'm
> > doing this on a plain vanilla RedHat 8.0 installation. I follow the
> > installation instructions to the letter. Create gzip/ under src/modules
> > and copy the *.h *.c and *.tmpl files into it. I then run configure like
> > so:
> > 
> > ./configure --prefix=/usr/local/apache
> > --activate-module=src/modules/gzip/mod_gzip.a
> > 
> > I then run make and I consistently get the same error:
> > 
> > make[4]: *** No rule to make target `mod_gzip.a', needed by
> > `libgzip.a'.  Stop.
> > 
> > Has anyone else had this problem? And before you suggest it, I can't
> > build it as a DSO. 
> > 
> > Any help is appreciated!
> > 
> > Mark.
> > 
> > 
> > 
> > _______________________________________________
> > mod_gzip mailing list
> > mod_gzip@lists.over.net
> > http://lists.over.net/mailman/listinfo/mod_gzip
> 
> 
> _______________________________________________
> mod_gzip mailing list
> mod_gzip@lists.over.net
> http://lists.over.net/mailman/listinfo/mod_gzip
-- 
Mark Maunder <mark@ziptree.com>
ZipTree Inc.