skratchit

Member
Aug 29, 2007
17
0
51
Hello,

I just tried to rebuild Apache so I could enable mod_gzip. The build went fine apart from adding mod_gzip. This is the error:

Code:
Fetching http://httpupdate.cpanel.net/buildapache/1/mod_gzip-1.3.26.1a.tar.gz (0)[email protected]%...5%...8%...11%...14%...17%...20%...23%...26%...29%...32%...35%...38%...41%...44%...47%...50%...53%...56%...59%...62%...65%...68%...71%...74%...77%...80%...83%...86%...89%...92%...95%...98%...100%......Done
Untarring mod_gzip....Done

make [@mod_gzip-1.3.26.1a]...(-j 8).... Done

cc1: error: unrecognized command line option "-Wall,-O3,-fomit-frame-pointer,-pipe"
apxs:Break: Command failed with rc=1
make: *** [build] Error 1

make [@mod_gzip-1.3.26.1a]...(install).... Done

make: *** [install] Error 1
It added this to httpd.conf:

Code:
<IfModule mod_gzip.c>
mod_gzip_on yes

mod_gzip_send_vary yes

mod_gzip_dechunk yes
mod_gzip_keep_workfiles No
mod_gzip_temp_dir /tmp
mod_gzip_minimum_file_size  1002
mod_gzip_maximum_file_size  0
mod_gzip_maximum_inmem_size 1000000

mod_gzip_item_include file "\.htm$"
mod_gzip_item_include file "\.html$"
mod_gzip_item_include mime "text/.*"
mod_gzip_item_include file "\.php$"
mod_gzip_item_include mime "jserv-servlet"
mod_gzip_item_include handler "jserv-servlet"
mod_gzip_item_include mime "application/x-httpd-php.*"
mod_gzip_item_include mime "httpd/unix-directory"

mod_gzip_item_exclude file "\.css$"
mod_gzip_item_exclude file "\.js$"
mod_gzip_item_exclude file "\.wml$"
</IfModule>
Running: WHM 11.2.0 cPanel 11.11.0-R16983
CENTOS Enterprise 5 i686 - WHM X v3.1.0
Apache 1.3.39
PHP 5.2.4

Does anyone know how to fix this?
 

neutro

Well-Known Member
Apr 11, 2004
70
1
158
don't compile mod gzip with apache using easyapache.

install it separately by downloading source file and add as apache module.
 

skratchit

Member
Aug 29, 2007
17
0
51
I have done now. I had the same problem though.

It seems the fix is to change this line in the makefile:

Code:
$(APXS) -Wc,-Wall,-O3,-fomit-frame-pointer,-pipe -c mod_gzip.c mod_gzip_debug.c mod_gzip_compress.c -o mod_gzip.so
To:

Code:
$(APXS) -Wc "-Wall -O3 -fomit-frame-pointer -pipe" -c mod_gzip.c mod_gzip_debug.c mod_gzip_compress.c -o mod_gzip.so
It's working fine after that.