Bug 44974 - mod_request build
Summary: mod_request build
Status: RESOLVED FIXED
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Build (show other bugs)
Version: 2.5-HEAD
Hardware: PC Windows 2000
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords: PatchAvailable
Depends on:
Blocks:
 
Reported: 2008-05-12 08:09 UTC by Tom Donovan
Modified: 2008-06-06 23:50 UTC (History)
0 users



Attachments
Patch for mod_filter.c, mod_request.c, mod_request.h (5.78 KB, patch)
2008-05-12 08:09 UTC, Tom Donovan
Details | Diff
Windows project file for mod_request (trunk) (4.80 KB, text/plain)
2008-05-12 08:10 UTC, Tom Donovan
Details
Windows Makefile.win patch (trunk) (1.48 KB, patch)
2008-05-12 08:11 UTC, Tom Donovan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Donovan 2008-05-12 08:09:01 UTC
Created attachment 21949 [details]
Patch for mod_filter.c, mod_request.c, mod_request.h

Several additional changes are needed to make mod_request build correctly on all platforms:

1. Only the module symbol "request_module" should be exported, all other symbols should be private.

2. Other modules may include mod_request.h to access the optional functions, so it must not contain a module declaration.  The declaration should only be in mod_request.c

3. mod_filter.c:149 requires a cast for ap_expr_string on platforms where AP_DECLARE specifies a non-default linkage (this cast is benign on Unix).

The attached trunk patch addresses these issues.
Comment 1 Tom Donovan 2008-05-12 08:10:55 UTC
Created attachment 21950 [details]
Windows project file for mod_request (trunk)

For Windows build, these changes are also needed:

1. a mod_request.dsp project file is attached
   it requires these manual steps:
     mod_request.dsp should be added to the Apache.dsw workspace
     buildbin should depend on mod_request
     mod_request depends on libapr, libaprutil, libhttpd
     add mod_request.h to "headers" in libhttpd with a custom-build step:
       type .\modules\filters\mod_request.h > .\include\mod_request.h
   

2. a Makefile.win patch is attached in the next comment.
Comment 2 Tom Donovan 2008-05-12 08:11:37 UTC
Created attachment 21951 [details]
Windows Makefile.win patch (trunk)
Comment 3 Ruediger Pluem 2008-05-12 13:26:24 UTC
Tom, please also raise this on the dev list and feel free to commit your windows specific patches.
Comment 4 Tom Donovan 2008-05-12 16:05:59 UTC
(In reply to comment #3)
> Tom, please also raise this on the dev list and feel free to commit your
> windows specific patches.
> 

Thanks Ruediger, but I don't have commit access yet.  I expect it takes a little while to get processed.

re: "raise this on the dev list" - sure, if you think it's worthwhile.  I presumed this was just routine "tidying up" after r647263 ... r654952 which were pretty well discussed.
Comment 5 William A. Rowe Jr. 2008-06-06 23:50:54 UTC
Fixed along with a host of modules, thanks for the report.

Please do review your build success on trunk and report back to dev@ if there
are any remaining issues beyond mod_serf, which I didn't get to as a matter
of it's really crufty looking comments.