ARPA-SIMC / wreport

C++ library and applications to work with weather reports. The library provides featureful BUFR and CREX encoding and decoding.
Other
9 stars 9 forks source link

build errors on Fedora 38 #55

Closed brancomat closed 1 year ago

brancomat commented 1 year ago

full log: https://simc.arpae.it/moncic-ci/wreport/202305171212/master/fedora38/build.log

relevant bit:

[6/86] g++ -Iwreport/libwreport.so.3.0.3.p -Iwreport -I../wreport -I. -I.. -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=c++11 -Wextra -Wno-unused-parameter -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -MD -MQ wreport/libwreport.so.3.0.3.p/utils_string.cc.o -MF wreport/libwreport.so.3.0.3.p/utils_string.cc.o.d -o wreport/libwreport.so.3.0.3.p/utils_string.cc.o -c ../wreport/utils/string.cc
FAILED: wreport/libwreport.so.3.0.3.p/utils_string.cc.o
g++ -Iwreport/libwreport.so.3.0.3.p -Iwreport -I../wreport -I. -I.. -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=c++11 -Wextra -Wno-unused-parameter -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -MD -MQ wreport/libwreport.so.3.0.3.p/utils_string.cc.o -MF wreport/libwreport.so.3.0.3.p/utils_string.cc.o.d -o wreport/libwreport.so.3.0.3.p/utils_string.cc.o -c ../wreport/utils/string.cc
../wreport/utils/string.cc: In function ‘std::string wreport::str::encode_base64(const void*, size_t)’:
../wreport/utils/string.cc:449:11: error: ‘uint8_t’ does not name a type
  449 |     const uint8_t* str = (const uint8_t*)data;
      |           ^~~~~~~
../wreport/utils/string.cc:3:1: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
    2 | #include <vector>
  +++ |+#include <cstdint>
    3 |
../wreport/utils/string.cc:456:23: error: expected primary-expression before ‘[’ token
  456 |             enc = (str[i] << 16) | (str[i + 1] << 8) | str[i + 2];
      |                       ^
../wreport/utils/string.cc:456:40: error: expected primary-expression before ‘[’ token
  456 |             enc = (str[i] << 16) | (str[i + 1] << 8) | str[i + 2];
      |                                        ^
../wreport/utils/string.cc:456:59: error: expected primary-expression before ‘[’ token
  456 |             enc = (str[i] << 16) | (str[i + 1] << 8) | str[i + 2];
      |                                                           ^
../wreport/utils/string.cc:459:23: error: expected primary-expression before ‘[’ token
  459 |             enc = (str[i] << 16);
      |                       ^
../wreport/utils/string.cc:461:27: error: expected primary-expression before ‘[’ token
  461 |                 enc |= str[i + 1] << 8;
      |                           ^
../wreport/utils/string.cc:463:27: error: expected primary-expression before ‘[’ token
  463 |                 enc |= str[i + 2];
      |                           ^
edigiacomo commented 1 year ago

Fixed in e40c50c