Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 347703 - www-apache/mod_extract_forwarded: make mod_proxy requirement optional
Summary: www-apache/mod_extract_forwarded: make mod_proxy requirement optional
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-04 10:01 UTC by Christian Ruppert (idl0r)
Modified: 2011-02-25 19:58 UTC (History)
0 users

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


Attachments
mod_extract_forwarded-2.0.2-r1.ebuild.patch (mod_extract_forwarded-2.0.2-r1.ebuild.patch,1.13 KB, patch)
2011-02-25 19:32 UTC, Christian Ruppert (idl0r)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Ruppert (idl0r) gentoo-dev 2010-12-04 10:01:00 UTC
www-apache/mod_extract_forwarded needs APACHE2_MODULES="proxy" otherwise you're not able to load/use it.

apache2: Syntax error on line 142 of /etc/apache2/httpd.conf: Syntax error on line 2 of /etc/apache2/modules.d/98_mod_extract_forwarded.conf: Cannot load /usr/lib64/apache2/modules/mod_extract_forwarded.so into server: /usr/lib64/apache2/modules/mod_extract_forwarded.so: undefined symbol: proxy_hook_scheme_handler

So proxy support must be enabled and mod_proxy must be loaded.
Comment 1 Christian Ruppert (idl0r) gentoo-dev 2010-12-04 10:52:13 UTC
Take a look at line 120-128 of the source and 999-1008 as well.
It looks like a useflag would make sense here.
Comment 2 Christian Ruppert (idl0r) gentoo-dev 2010-12-04 10:54:53 UTC
120-128:
/*
 * #define USING_proxy_http_module if proxy_http.c module is either
 * compiled into Apache 2 or it is being loaded as a DSO. If proxy_http.c
 * module is not loaded then this module will generate an error when and
 * if it is loaded as a DSO. In that case comment out the #define, recompile
 * and reinstall this module. BUT do not forget to change things back if
 * proxy_http.c module is reinstated
 */
#define USING_proxy_http_module 1

999-1008:
#ifdef USING_proxy_http_module
    /*
     * Only need to register the following handlers if proxy_http_module
     * is going to be loaded
	*/
    static const char *const mef_proxy_b4[] = { "proxy_http.c", NULL };
    proxy_hook_scheme_handler(mef_before_proxy_http, NULL, mef_proxy_b4,
                              APR_HOOK_FIRST);
    ap_hook_log_transaction(mef_logging, NULL, NULL, APR_HOOK_FIRST);
#endif /* USING_proxy_http_module */
Comment 3 Christian Ruppert (idl0r) gentoo-dev 2011-02-25 19:32:43 UTC
Created attachment 263837 [details, diff]
mod_extract_forwarded-2.0.2-r1.ebuild.patch
Comment 4 Christian Ruppert (idl0r) gentoo-dev 2011-02-25 19:58:36 UTC
Fixed in CVS.