After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 582213 - INCLUDE_RECURSION
INCLUDE_RECURSION
Status: RESOLVED OBSOLETE
Product: libxml2
Classification: Platform
Component: general
git master
Other All
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
: 582211 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-05-11 17:49 UTC by TC Nguyen
Modified: 2021-07-05 13:22 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description TC Nguyen 2009-05-11 17:49:35 UTC
Please describe the problem:
The PW.INCLUDE_RECURSION warning reports recursive header file problems that can cause the code to not compile, or that cause incorrect run-time behavior. Code might not compile if there is a dependency cycle in two header files that are included. Incorrect run-time behavior can occur because of function overloading, for example. Also, recursive include files can be difficult to maintain and problems difficult to fix.

#include file "libxml2/include/libxml/xmlmemory.h" includes itself: xmlmemory.h -> threads.h -> globals.h -> xmlmemory.h Event primary_file: During compilation of file 'd:/development/projects/avp/xoslib/libxml2/src/sax.c'


Steps to reproduce:
1. File: globals.h
2. Line# 22 => #include <libxml/xmlmemory.h>

3. #include file "libxml2/include/libxml/xmlmemory.h" includes itself: xmlmemory.h -> threads.h -> globals.h -> xmlmemory.h Event primary_file


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Murray Cumming 2010-03-30 16:04:26 UTC
Whatever myserious tool it is that shows this, it seems to be a libxml issue rather than a libxml++ issue.
Comment 2 Murray Cumming 2010-06-14 06:52:02 UTC
*** Bug 582211 has been marked as a duplicate of this bug. ***
Comment 3 Murray Cumming 2010-06-14 06:58:05 UTC
Could you please tell us what this PW.INCLUDE_RECURSION warning is? Is that a Coverity thing?

Anyway, I guess that a patch would be welcome.
Comment 4 GNOME Infrastructure Team 2021-07-05 13:22:58 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/libxml2/-/issues/

Thank you for your understanding and your help.