Skip to content

cjdns FTB on debian sid #220

@grinapo

Description

@grinapo
  /tmp/1/0/cjdns/node_build/builder.js:1057
                      throw err;
                      ^

  Error: gcc -c -x cpp-output -o /tmp/1/0/cjdns/target/release/build/cjdns_sys-3d0a229dea6a9625/out/util_platform_Sockaddr_c.o -std=c99 -Wall -Wextra -Wno-pointer-sign -Wmissing-prototypes -pedantic -D linux=1 -Wno-unused-parameter -fomit-frame-pointer -ffunction-sections -fdata-sections -D Log_DEBUG -g -D NumberCompress_TYPE=v3x5x8 -D Identity_CHECK=1 -D Allocator_USE_CANARIES=1 -D PARANOIA=1 -march=native -DHAS_ETH_INTERFACE=1 -fPIE -fdiagnostics-color=always -O2 -D_FORTIFY_SOURCE=2 -fno-stack-protector -fstack-protector-all -Wstack-protector -D CJD_PACKAGE_VERSION="cjdns-v22-8-g3e61aa36" /tmp/1/0/cjdns/target/release/build/cjdns_sys-3d0a229dea6a9625/out/util_platform_Sockaddr_c.i

  util/platform/Sockaddr.c: In function ‘Sockaddr_parse’:
  util/platform/Sockaddr.c:142:77: error: passing argument 3 of ‘Rffi_inet_pton’ from incompatible pointer type [-Wincompatible-pointer-types]
    142 |         if (Rffi_inet_pton(1, (char*) ((buff[0] == '[') ? &buff[1] : buff), &in6->sin6_addr)) {
        |                                                                             ^~~~~~~~~~~~~~~
        |                                                                             |
        |                                                                             struct in6_addr *
  In file included from util/platform/Sockaddr.c:15:
  ./rust/cjdns_sys/Rffi.h:98:62: note: expected ‘uint8_t *’ {aka ‘unsigned char *’} but argument is of type ‘struct in6_addr *’
     98 | int32_t Rffi_inet_pton(bool is_ip6, const char *src, uint8_t *addr);
        |                                                     ~~~~~~~~~^~~~
  util/platform/Sockaddr.c:150:45: error: passing argument 3 of ‘Rffi_inet_pton’ from incompatible pointer type [-Wincompatible-pointer-types]
    150 |         if (Rffi_inet_pton(0, (char*) buff, &in->sin_addr)) {
        |                                             ^~~~~~~~~~~~~
        |                                             |
        |                                             struct in_addr *
  ./rust/cjdns_sys/Rffi.h:98:62: note: expected ‘uint8_t *’ {aka ‘unsigned char *’} but argument is of type ‘struct in_addr *’
     98 | int32_t Rffi_inet_pton(bool is_ip6, const char *src, uint8_t *addr);
        |                                                     ~~~~~~~~~^~~~

      at error (/tmp/1/0/cjdns/node_build/builder.js:115:15)
      at /tmp/1/0/cjdns/node_build/builder.js:196:29
      at /tmp/1/0/cjdns/node_build/builder.js:161:17
      at ChildProcess.<anonymous> (/tmp/1/0/cjdns/node_modules/saferphore/index.js:22:34)
      at ChildProcess.emit (node:events:513:28)
      at maybeClose (node:internal/child_process:1091:16)
      at Socket.<anonymous> (node:internal/child_process:449:11)
      at Socket.emit (node:events:513:28)
      at Pipe.<anonymous> (node:net:321:12)

  Node.js v18.13.0
  Error: Failed to build cjdns

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions