https://bz.apache.org/bugzilla/show_bug.cgi?id=65954

            Bug ID: 65954
           Summary: mod_lbmethod_heartbeat.c:306:78: error:
                    'proxy_worker_shared' has no member named 'name_ex'
           Product: Apache httpd-2
           Version: 2.4.52
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: mod_proxy_balancer
          Assignee: bugs@httpd.apache.org
          Reporter: postmas...@anacom.pt
  Target Milestone: ---

Hi,

I got this error while compiling 2.4.53
(https://downloads.apache.org/httpd/httpd-2.4.53.tar.gz):


In file included from /usr/include/apache/mod_proxy.h:59,
                 from
/build/httpd-2.4.53/modules/proxy/balancers/mod_lbmethod_heartbeat.c:17:
/build/httpd-2.4.53/modules/proxy/balancers/mod_lbmethod_heartbeat.c: In
function 'find_best_hb':
/build/httpd-2.4.53/modules/proxy/balancers/mod_lbmethod_heartbeat.c:306:78:
error: 'proxy_worker_shared' {aka 'struct <anonymous>'} has no member named
'name_ex'; did you mean 'name'?
  306 |                       "lb_heartbeat: No server for worker %s",
(*worker)->s->name_ex);
      |                                                                        
     ^~~~~~~


I did a diff with 2.4.52 and found only one change:


--- httpd-2.4.52/modules/proxy/balancers/mod_lbmethod_heartbeat.c      
2021-04-18 20:11:48.000000000 +0100
+++ httpd-2.4.53/modules/proxy/balancers/mod_lbmethod_heartbeat.c      
2022-03-04 09:06:07.000000000 +0000
@@ -303,7 +303,7 @@ static proxy_worker *find_best_hb(proxy_

         if (!server) {
             ap_log_rerror(APLOG_MARK, APLOG_DEBUG, rv, r, APLOGNO(01214)
-                      "lb_heartbeat: No server for worker %s",
(*worker)->s->name);
+                      "lb_heartbeat: No server for worker %s",
(*worker)->s->name_ex);
             continue;
         }


I reverted this change and the issue is gone - compile ok.

Thx.
pasan

Note: I set this report to version 2.4.52 since 2.4.53 choice was not
available.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org
For additional commands, e-mail: bugs-h...@httpd.apache.org

Reply via email to