Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 108396 - apxs contains wrong path
Summary: apxs contains wrong path
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-07 08:54 UTC by Mathieu Malaterre
Modified: 2005-10-08 11:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu Malaterre 2005-10-07 08:54:40 UTC
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.
Comment 1 Mathieu Malaterre 2005-10-07 09:36:18 UTC
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).
Comment 2 Michael Stewart (vericgar) (RETIRED) gentoo-dev 2005-10-07 18:45:37 UTC
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.
Comment 3 Mathieu Malaterre 2005-10-08 11:15:22 UTC
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 ?