Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

mod_gzip build failed

Discussion in 'General Discussion' started by skratchit, Sep 27, 2007.

  1. skratchit

    skratchit Member

    Joined:
    Aug 29, 2007
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    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)....@74.200.65.162......connected......receiving...2%...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?
     
  2. neutro

    neutro Well-Known Member

    Joined:
    Apr 11, 2004
    Messages:
    70
    Likes Received:
    1
    Trophy Points:
    158
    don't compile mod gzip with apache using easyapache.

    install it separately by downloading source file and add as apache module.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. skratchit

    skratchit Member

    Joined:
    Aug 29, 2007
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    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.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice