View Issue Details

IDProjectCategoryView StatusLast Update
0008897GNUnetbuild processpublic2024-06-08 16:34
Reporterch3 Assigned Toschanzen  
PrioritylowSeverityblockReproducibilityalways
Status closedResolutionopen 
Product VersionGit master 
Fixed in Version0.21.2 
Summary0008897: gcc 14.x.x seems to treat former warnings as errors
DescriptionCompiling gnunet with gcc 14.1.1 and `--enable-experimental` results in a compiler error in gnunet-abd.

Neither gnunet-abd nor the called gnunet-namestore have been touched in ~half a year and compilations with gcc 10 and 11 seem to only produce warnings about the same issue. (Didn't check with lower gcc versions myself, only vaguely compared the output during a phone call.)

Possible paths I see would be to disable gnunet-abd or to fix the error.

There might be more compilation errors of the same kind ahead.
Steps To ReproduceCompile gnunet with gcc 14.1.1 and `--enable-experimental`.
Additional Informationgnunet-abd.c: In function ‘get_existing_record’:
gnunet-abd.c:533:44: error: passing argument 3 of ‘GNUNET_NAMESTORE_records_store’ makes integer from pointer without a cast [-Wint-conversion]
  533 | rec_name,
      | ^~~~~~~~
      | |
      | const char *
In file included from ../../../../src/include/gnunet_gns_service.h:43,
                 from ../../../../src/include/gnunet_abd_service.h:40,
                 from gnunet-abd.c:27:
../../../../src/include/gnunet_namestore_service.h:195:16: note: expected ‘unsigned int’ but argument is of type ‘const char *’
  195 | unsigned int rd_set_count,
      | ~~~~~~~~~~~~~^~~~~~~~~~~~
gnunet-abd.c:534:53: error: passing argument 4 of ‘GNUNET_NAMESTORE_records_store’ makes pointer from integer without a cast [-Wint-conversion]
  534 | rd_count + 1,
      | ~~~~~~~~~^~~
      | |
      | unsigned int
../../../../src/include/gnunet_namestore_service.h:196:45: note: expected ‘const struct GNUNET_NAMESTORE_RecordInfo *’ but argument is of type ‘unsigned int’
  196 | const struct GNUNET_NAMESTORE_RecordInfo *record_info,
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
gnunet-abd.c:535:44: error: passing argument 5 of ‘GNUNET_NAMESTORE_records_store’ from incompatible pointer type [-Wincompatible-pointer-types]
  535 | rde,
      | ^~~
      | |
      | struct GNUNET_GNSRECORD_Data *
../../../../src/include/gnunet_namestore_service.h:197:17: note: expected ‘unsigned int *’ but argument is of type ‘struct GNUNET_GNSRECORD_Data *’
  197 | unsigned int *rds_sent,
      | ~~~~~~~~~~~~~~^~~~~~~~
gnunet-abd.c:536:44: error: passing argument 6 of ‘GNUNET_NAMESTORE_records_store’ from incompatible pointer type [-Wincompatible-pointer-types]
  536 | &add_continuation,
      | ^~~~~~~~~~~~~~~~~
      | |
      | void (*)(void *, int32_t, const char *) {aka void (*)(void *, int, const char *)}
../../../../src/include/gnunet_namestore_service.h:198:43: note: expected ‘GNUNET_NAMESTORE_ContinuationWithStatus’ {aka ‘void (*)(void *, enum GNUNET_ErrorCode)’} but argument is of type ‘void (*)(void *, int32_t, const char *)’ {aka ‘void (*)(void *, int, const char *)’}
  198 | GNUNET_NAMESTORE_ContinuationWithStatus cont,
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
make[5]: *** [Makefile:979: gnunet-abd.o] Error 1
TagsNo tags attached.

Activities

schanzen

2024-06-07 18:25

administrator   ~0022526

Should be fixed in cb0db3ca85f459596f553555a9bdcada5336f636

Issue History

Date Modified Username Field Change
2024-06-05 11:28 ch3 New Issue
2024-06-06 13:26 schanzen Assigned To => schanzen
2024-06-06 13:26 schanzen Status new => assigned
2024-06-07 18:25 schanzen Note Added: 0022526
2024-06-08 16:34 schanzen Status assigned => closed
2024-06-08 16:34 schanzen Fixed in Version => 0.21.2