I cannot build mod_gunzip as describe: http://nixdoc.net/Linux-Howtos/Apache-Compile-HOWTO/compress.html#AEN623 Error is: $ sudo /usr/sbin/apxs -i -a -c -lz mod_gunzip.c gcc -O2 -march=k8 -pipe -fprefetch-loop-arrays -fforce-addr -msse2 -msse -mmmx -m3dnow -mfpmath=sse,387 -ffast-math -DHARD_SERVER_LIMIT=512 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DLINUX=22 -DTARGET="apache" -DHAVE_SET_DUMPABLE -I/usr/include/db4.2 -DDEV_RANDOM=/dev/random -DUSE_HSREGEX -DEAPI -DEAPI_MM -fpic -DSHARED_MODULE -I/usr/include/apache -c mod_gunzip.c gcc -shared -o mod_gunzip.so mod_gunzip.o -lz -L/usr/lib -lm -lcrypt -ldb-4.2 -lmm -lexpat -lgdbm -lgdbm_compat -lpthread apxs:Error: Config file /etc/apache/apache.conf not found One need to edit /usr/sbin/apxs and change: my $CFG_TARGET = q(apache); # substituted via Makefile.tmpl into my $CFG_TARGET = q(httpd); # substituted via Makefile.tmpl Since in apache 1.x the file is called: /etc/apache/httpd.conf This is somehow similar to a bug in debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=102376 Reproducible: Always Steps to Reproduce: 1. 2. 3.
Proposed patch create a side effect: apxs:Warning: /usr/sbin/httpd not found or not executable apxs:Warning: Continuing anyway... apxs:Warning: No shared object support for Apache apxs:Warning: available under your platform. Make sure apxs:Warning: the Apache module mod_so is compiled into apxs:Warning: your server binary `/usr/sbin/httpd'. apxs:Warning: Continuing anyway... Since variable is used both for the executable and the config file (but on gentoo they are different).
Becase of our custom layout, you need to tweak how you compile external modules, if doing so by hand. Simply omit the -a option and add the module to httpd.conf manually. Resolving as WONTFIX as the workaround is easy and we don't really support compiling by hand - an ebuild using the apache-module eclass should be used instead.
I don't really understand, the analysis. The patch to apxs is fairly easy: have two variables, one for the exe 'apache' and one for the conf file 'httpd', just like debian is doing. Or at least completely remove the -a option from apxs if you know this won't work, right ?