Skip to content

Build failure: retroshare #507584

@saltrocks

Description

@saltrocks

Nixpkgs version

  • Unstable (26.05)

Steps to reproduce

nix-shell -p retroshare

Can Hydra reproduce this build failure?

Yes, Hydra can reproduce this build failure.

Link to Hydra build job

https://hydra.nixos.org/build/324661900

Relevant log output

openpgpsdk/packet-print.c:478:59: error: 'bool' cannot be used here
  478 | static void print_boolean(const char *name, unsigned char bool)
      |                                                           ^~~~
openpgpsdk/packet-print.c:478:59: note: 'bool' is a keyword with '-std=c23' onwards
openpgpsdk/packet-print.c: In function 'print_boolean':
openpgpsdk/packet-print.c:482:12: error: expected identifier or '(' before ')' token
  482 |     if(bool)
      |            ^
openpgpsdk/packet-print.c:482:8: error: declaration in the controlling expression must have an initializer
  482 |     if(bool)
      |        ^~~~
openpgpsdk/packet-parse.c: In function 'parse_one_signature_subpacket':
openpgpsdk/packet-parse.c:1514:19: error: 'bool' cannot be used here
 1514 |     unsigned char bool[1]="";
      |                   ^~~~
openpgpsdk/packet-parse.c:1514:19: note: 'bool' is a keyword with '-std=c23' onwards
openpgpsdk/packet-parse.c:1514:23: error: expected identifier or '(' before '[' token
 1514 |     unsigned char bool[1]="";
      |                       ^
openpgpsdk/packet-parse.c:1571:26: error: expected expression before 'bool'
 1571 |         if(!limited_read(bool,1,&subregion,pinfo))
      |                          ^~~~
openpgpsdk/packet-parse.c:1571:13: error: too few arguments to function 'limited_read'; expected 4, have 1
 1571 |         if(!limited_read(bool,1,&subregion,pinfo))
      |             ^~~~~~~~~~~~
openpgpsdk/packet-parse.c:411:22: note: declared here
  411 | static ops_boolean_t limited_read(unsigned char *dest,unsigned length,
      |                      ^~~~~~~~~~~~
openpgpsdk/packet-parse.c:1573:36: error: expected expression before 'bool'
 1573 |         C.ss_revocable.revocable=!!bool[0];
      |                                    ^~~~
openpgpsdk/packet-parse.c:1600:27: error: expected expression before 'bool'
 1600 |         if(!limited_read (bool,1,&subregion,pinfo))
      |                           ^~~~
openpgpsdk/packet-parse.c:1600:13: error: too few arguments to function 'limited_read'; expected 4, have 1
 1600 |         if(!limited_read (bool,1,&subregion,pinfo))
      |             ^~~~~~~~~~~~
openpgpsdk/packet-parse.c:411:22: note: declared here
  411 | static ops_boolean_t limited_read(unsigned char *dest,unsigned length,
      |                      ^~~~~~~~~~~~
openpgpsdk/packet-parse.c:1602:50: error: expected expression before 'bool'
 1602 |         C.ss_primary_user_id.primary_user_id = !!bool[0];
      |                                                  ^~~~

Additional context

No response

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.18.20, NixOS, 26.05 (Yarara), 26.05.20260405.68d8aa3
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.31.3+1
  • nixpkgs: /nix/store/gay80fqbpm2wakbsyd4in44gx0cwx3h5-source

Notify maintainers

@Stekke


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions