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 743604 - Duplicate anchors from tagfiles
Duplicate anchors from tagfiles
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.8.11
Other Linux
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2015-01-27 21:13 UTC by Karl Wette
Modified: 2016-10-04 12:49 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Self-contained minimal example (3.96 KB, application/gzip)
2015-01-27 21:13 UTC, Karl Wette
Details
Bug showing duplicate anchors with mainpages (4.39 KB, application/x-tar)
2015-02-17 21:33 UTC, Matthew Hoops
Details

Description Karl Wette 2015-01-27 21:13:29 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.
Comment 1 Dimitri van Heesch 2015-02-03 20:43:18 UTC
Confirmed. Should be fixed in the next GIT update.
Comment 2 Matthew Hoops 2015-02-17 21:33:25 UTC
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.
Comment 3 cartland 2015-03-11 06:16:25 UTC
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).
Comment 4 Dimitri van Heesch 2015-06-27 19:02:08 UTC
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).
Comment 5 Matthew Hoops 2016-03-16 14:00:37 UTC
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.
Comment 6 cartland 2016-03-17 05:43:21 UTC
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.
Comment 7 Karl Wette 2016-10-04 12:49:06 UTC
Both issues appear to have been solved in version 1.8.11.