GNOME Bugzilla – Bug 743604
Duplicate anchors from tagfiles
Last modified: 2016-10-04 12:49:06 UTC
Created attachment 295592 [details] Self-contained minimal example Prior to v1.8.8, tagfiles included only documentation anchors from the code being documented, whereas v1.8.8 also includes anchors from any tagfiles included via TAGFILES. This causes problems with complicated library dependencies: if libraries B and C depend on library A, and library D depends on B and C, the documentation of D will get two copies of the anchors in library A (via the tagfiles of B and C) and Doxygen will generate unnecessary warnings. To reproduce, untar the attached tarball and run ./runme.sh from the created directory.
Confirmed. Should be fixed in the next GIT update.
Created attachment 297064 [details] Bug showing duplicate anchors with mainpages This isn't completely fixed; it's broken when using mainpages. I've attached a sample that has all anchors from a mainpage included into the tagfile for the second mainpage. (You can run "make doc" to just run doxygen over the subdirectories.) I tested this using revision 5bfda3d4c1158e5429349a2698339650dcfbbe88. You can see in the Subproject2/test2.tag file that is generated that it has now included the anchors from the test1.tag file.
I have just come across this. For me 1.8.8 works. 1.8.9 and 1.8.9.1 adds both sections and anchors from an included Project A tagfile into the tag file for project B. When project C includes the tagfiles from A and B it causes "warning: Duplicate anchor ... found". I believe this is the same issue Matthew is describing. I get this on Windows and OS X (yet to test Ubuntu).
This bug was previously marked ASSIGNED, which means it should be fixed in doxygen version 1.8.10. Please verify if this is indeed the case. Reopen the bug if you think it is not fixed and please include any additional information that you think can be relevant (preferably in the form of a self-contained example).
I'm not able to reopen this as I'm not the bug reported, but it definitely is still not fixed in the master (73afbe1a660b92b4b70cd7a1fd4b085664078098 at the time of writing). I used my self-contained example in comment 2 to test that it is still not working properly.
Just did a quick test. It works in my particular situation. On Windows: 1.8.8 works 1.8.9.1 fails with Duplicate anchor ... 1.8.11 works Haven't tried other platforms yet. Previously 1.8.9x failed on Windows, Ubuntu 14.04, OS X 9 and 10, Free BSD 9 and 10.
Both issues appear to have been solved in version 1.8.11.