git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: Current trunk win build error



> -----Ursprüngliche Nachricht-----
> Von: Apache Lounge <info@xxxxxxxxxxxxxxxx>
> Gesendet: Montag, 23. Juli 2018 13:35
> An: dev@xxxxxxxxxxxxxxxx
> Betreff: Current trunk win build error
> 
> 
> 
> 
> 
> Error C2440 'initializing': cannot convert from 'proxy_worker
> *(__stdcall *)(proxy_balancer *,request_rec
> *,proxy_is_best_callback_fn_t (__cdecl *),void *)' to
> 'apr_OFN_ap_proxy_balancer_get_best_worker_t (__cdecl *)'
> 
> mod_proxy c:\vc15\win32\httpd-trunk\modules\proxy\proxy_util.c 4082
> 

Windows experts to the rescue please :-)
Seems to be an issue between PROXY_DECLARE and the optional function stuff.
Does the following patch fix it (just guessing)?

Index: mod_proxy.h
===================================================================
--- mod_proxy.h (revision 1836460)
+++ mod_proxy.h (working copy)
@@ -883,7 +883,7 @@
 /*
  * Needed by the lb modules.
  */
-APR_DECLARE_OPTIONAL_FN(proxy_worker *, ap_proxy_balancer_get_best_worker,
+APR_DECLARE_OPTIONAL_FN(PROXY_DECLARE(proxy_worker *), ap_proxy_balancer_get_best_worker,
                                         (proxy_balancer *balancer,
                                          request_rec *r,
                                          proxy_is_best_callback_fn_t *is_best,



Regards

Rüdiger



( ! ) Warning: include(msgfooter.php): failed to open stream: No such file or directory in /var/www/git/apache2-developers/msg04367.html on line 112
Call Stack
#TimeMemoryFunctionLocation
10.0008358376{main}( ).../msg04367.html:0

( ! ) Warning: include(): Failed opening 'msgfooter.php' for inclusion (include_path='.:/var/www/git') in /var/www/git/apache2-developers/msg04367.html on line 112
Call Stack
#TimeMemoryFunctionLocation
10.0008358376{main}( ).../msg04367.html:0