Em Sun, 22 May 2022 09:57:45 +0900 Akira Yokosawa <akiyks@xxxxxxxxx> escreveu: > On Sat, 21 May 2022 11:46:29 +0200, > Mauro Carvalho Chehab wrote: > [...] > > > > Sphinx 4.0 and above: it is now possible to add a namespace. This allows > > fixing things like read() system calls that have different meanings on > > different subsystems. > > > > On other words, only with Sphinx 4.0 and above, the cross-references > > for C domain symbols should all be OK. > > So, I noticed there is a PR at https://github.com/sphinx-doc/sphinx/pull/8313 > which is still open. Are you sure? I always believed that this (or a variant of it) got merged on 4.0. > > This PR is supposed to resolve "WARNING: Duplicate C declaration" > due to struct and function with the same name, isn't it? > > Are you sure the issue is resolved in Sphinx 4.0 and later? You need to ping Sphinx C domain maintainer to be sure. This was the author of the PR by the time I looked into it, but I'm not tracking Sphinx development, so things might have changed. Thanks, Mauro