Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 945721 - net-p2p/retroshare-0.6.7-r2 fails to compile: packet-parse.c:1514:19: error: two or more data types in declaration specifiers
Summary: net-p2p/retroshare-0.6.7-r2 fails to compile: packet-parse.c:1514:19: error: ...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gioacchino Mazzurco
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c23-porting
  Show dependency tree
 
Reported: 2024-12-02 08:47 UTC by Agostino Sarubbo
Modified: 2024-12-03 15:51 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,128.21 KB, text/plain)
2024-12-02 08:47 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-12-02 08:47:39 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: net-p2p/retroshare-0.6.7-r2 fails to compile.
Discovered on: amd64 (internal ref: tinderbox_musl)
System: MUSL-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#MUSL)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Comment 1 Agostino Sarubbo gentoo-dev 2024-12-02 08:47:41 UTC
Created attachment 913050 [details]
build.log

build log and emerge --info
Comment 2 Filip Kobierski 2024-12-03 11:12:31 UTC
This seems like GCC-14 issue -- with gcc-13 it compiles fine.
I think it should block https://bugs.gentoo.org/914580.

Here's the upstream bug:
https://github.com/Tencent/rapidjson/issues/2277

Should I not be able to edit the bug as the maintainer?
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-03 11:14:27 UTC
No, it's a C23 issue. Please see the tracker.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-03 11:15:26 UTC
(In reply to Filip Kobierski from comment #2)
> Here's the upstream bug:
> https://github.com/Tencent/rapidjson/issues/2277

It doesn't look like that bug at all to me?

> 
> Should I not be able to edit the bug as the maintainer?

We don't have some magic for this right now, although I wish we did (BZ properly recognising this). So only the assignee gets to, or someone with editbugs privileges.
Comment 5 Filip Kobierski 2024-12-03 12:31:54 UTC
After looking into this it unfortunately is what I hoped we could get away with: It's a matter of how the package is distributed (OBS).
Upstream bundles the required libraries, rapidjosn being one of them.
It seems to me like it must ship an old version, since the rapidjson's include/document.h differs from what I can se at github.
The fix for this was merged in 2016...

I have added a fix for this to a PR of mine:
https://github.com/gentoo/gentoo/pull/39471

However I am afraid that this is a sign that we should swap the upstream from
OBS to github which I don't think will be an easy task.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-03 12:51:13 UTC
I still think you're barking up the wrong tree.

rapidjson is C++ and the ebuild depends on the rapidjson package. Is it possible that it's not using that and it's using a bundled ancient copy? Yes.

Where are you seeing rapidjson errors in this log?

But I don't see any error messages wrt rapidjson, or constness of operators in the log.

I _do_ see...
```
openpgpsdk/packet-parse.c:1514:19: error: two or more data types in declaration specifiers
 1514 |     unsigned char bool[1]="";
      |                   ^~~~
```
which is a C23 issue and unrelated to rapidjson.
Comment 7 Filip Kobierski 2024-12-03 15:51:52 UTC
> I still think you're barking up the wrong tree.

That's it. I just found another bug and assumed this is it. Sorry for the fuss.