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.
Take a look at line 120-128 of the source and 999-1008 as well. It looks like a useflag would make sense here.
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 */
Created attachment 263837 [details, diff] mod_extract_forwarded-2.0.2-r1.ebuild.patch
Fixed in CVS.