Mod_gzip not compiling

This Comment will be submitted for moderation and will not be accessible to other users until it has been approved.


18 points

Hi

I am compiling mod_gzip. I made the required change in Makefile accompanying mod_gzip and I am getting following error:

cc1: error: unrecognized command line option "-Wall,-O3,-fomit-frame-pointer,-pipe"

Can anyone help?



7 points

I have done now. I had the same problem though.

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

$(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:

$(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.

Anonymous's picture
Created by Anonymous

Post Comment

  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.