You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2022/03/14 15:30:21 UTC

[Bug 65954] New: mod_lbmethod_heartbeat.c:306:78: error: 'proxy_worker_shared' has no member named 'name_ex'

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: postmaster@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-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 65954] mod_lbmethod_heartbeat.c:306:78: error: 'proxy_worker_shared' has no member named 'name_ex'

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65954

Stefan Eissing <ic...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #1 from Stefan Eissing <ic...@apache.org> ---
Could it be that you are compiling against the 2.4.52 header files?

If you have headers installed, let's say in /usr/include/apache2, compiling a
new version might pick up previous versions headers and produce such errors.

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


[Bug 65954] mod_lbmethod_heartbeat.c:306:78: error: 'proxy_worker_shared' has no member named 'name_ex'

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65954

--- Comment #2 from pasan <po...@anacom.pt> ---
(In reply to Stefan Eissing from comment #1)
> Could it be that you are compiling against the 2.4.52 header files?
> 
> If you have headers installed, let's say in /usr/include/apache2, compiling
> a new version might pick up previous versions headers and produce such
> errors.

Yes, that was it... Recompiled ok with headers 2.4.53. Shouldn't the build
process use the headers from the new source tree by default?
Thanks a lot :-)

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


[Bug 65954] mod_lbmethod_heartbeat.c:306:78: error: 'proxy_worker_shared' has no member named 'name_ex'

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65954

pasan <po...@anacom.pt> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|trivial                     |minor

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


[Bug 65954] mod_lbmethod_heartbeat.c:306:78: error: 'proxy_worker_shared' has no member named 'name_ex'

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65954

pasan <po...@anacom.pt> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|---                         |CLOSED

--- Comment #3 from pasan <po...@anacom.pt> ---
(In reply to Stefan Eissing from comment #1)
> Could it be that you are compiling against the 2.4.52 header files?
> 
> If you have headers installed, let's say in /usr/include/apache2, compiling
> a new version might pick up previous versions headers and produce such
> errors.

Yes, that was it... Recompiled ok with headers 2.4.53. Shouldn't the build
process use the headers from the new source tree by default?
Thanks a lot :-)

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


[Bug 65954] mod_lbmethod_heartbeat.c:306:78: error: 'proxy_worker_shared' has no member named 'name_ex'

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65954

Ruediger Pluem <rp...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|2.4.52                      |2.4.53

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