Bug 30837 - apxs2 doesn't parse included configuration files
Summary: apxs2 doesn't parse included configuration files
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Build (show other bugs)
Version: 2.0.49
Hardware: All All
: P3 minor (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
Depends on:
Reported: 2004-08-25 00:42 UTC by Adam Trachtenberg
Modified: 2004-11-16 19:05 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Adam Trachtenberg 2004-08-25 00:42:14 UTC
My httpd.conf file is setup to Include a series of other configuration files, 
including one with all my LoadModule lines.

When determining how to generate an AddModule/LoadModule directive, apxs2 does 
not bother to resolve these files, all it does it slurp in the master  
configuration. (See line 538.)

This results in a "At least one LoadModule Directive..." error which 
terminates the install. 

The work around is to include a commented out LoadModule line, but this is 
kludgy and non-intuitive.
Comment 1 André Malo 2004-08-25 08:23:39 UTC
I don't think, that we should reimplement the whole config parser in apxs. It's
just a small helper tool. You can add the line yourself and turn off the
automatic config editing.

Comment 2 Adam Trachtenberg 2004-08-25 15:42:35 UTC
Understood completely. FWIW, I stumbled across this while installing PHP 5 and 
this bug causes PHP to bail out in the middle of "make install".

I wouldn't had said much if I wasn't using the default Apache 2 configuration 
on Suse 9.1, so I figured others would also encounter this problem.
Comment 3 André Malo 2004-09-15 20:19:01 UTC
I think, the best would be to issue a report as SuSE's tracker. The apxs
behaviour is correct, IMO. 

-> closing.