apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 59068] New: timedlock addition breaks apr_thread_mutex.h dependency
Date Thu, 25 Feb 2016 18:12:15 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=59068

            Bug ID: 59068
           Summary: timedlock addition breaks apr_thread_mutex.h
                    dependency
           Product: APR
           Version: HEAD
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: APR
          Assignee: bugs@apr.apache.org
          Reporter: champion.p@gmail.com

r1667900, which added *_mutex_timedlock() and friends, seems to have broken
"#include <apr_thread_mutex.h>" if it is the first APR header to be included.

The reason is that apr_thread_mutex.h now depends on apr_time.h, which
eventually ends up circularly depending on apr_thread_mutex_t (which has not
been defined yet) through apr_allocator.h. The reproduction program is easy
enough:

  #include <apr_thread_mutex.h>
  int main() { return 0; }

As of r1732328, mod_http2 in httpd no longer compiles against APR-2/trunk
because of this issue.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


Mime
View raw message