
Comment 1 by Grégory Soutadé, Apr 29, 2023
Hi, It's just stdint.h that is missing. I created a branch "turco" (in both libgourou and uPDFParser repo) to fix this error and maybe other... Can you try it ? Thanks
Status:
Started

Comment 2 by Francesco Turco, Apr 29, 2023
I switched both git repositories to the "turco" branch, then issued "make clean" and finally "make": Building libgourou 0.8.1 mkdir obj x86_64-pc-linux-gnu-g++ -Wall -fPIC -I./include -I./usr/include/pugixml -I./lib/updfparser/include -O2 -c src/libgourou.cpp -o obj/libgourou.o x86_64-pc-linux-gnu-g++ -Wall -fPIC -I./include -I./usr/include/pugixml -I./lib/updfparser/include -O2 -c src/user.cpp -o obj/user.o x86_64-pc-linux-gnu-g++ -Wall -fPIC -I./include -I./usr/include/pugixml -I./lib/updfparser/include -O2 -c src/device.cpp -o obj/device.o x86_64-pc-linux-gnu-g++ -Wall -fPIC -I./include -I./usr/include/pugixml -I./lib/updfparser/include -O2 -c src/fulfillment_item.cpp -o obj/fulfillment_item.o x86_64-pc-linux-gnu-g++ -Wall -fPIC -I./include -I./usr/include/pugixml -I./lib/updfparser/include -O2 -c src/loan_token.cpp -o obj/loan_token.o x86_64-pc-linux-gnu-g++ -Wall -fPIC -I./include -I./usr/include/pugixml -I./lib/updfparser/include -O2 -c src/bytearray.cpp -o obj/bytearray.o In file included from src/bytearray.cpp:22: ./include/Base64.h: In static member function 'static std::string macaron::Base64::Decode(const std::string&, std::string&)': ./include/Base64.h:113:7: error: 'uint32_t' was not declared in this scope 113 | uint32_t a = input[i] == '=' ? 0 & i++ : kDecodingTable[static_cast<int>(input[i++])]; | ^~~~~~~~ ./include/Base64.h:1:1: note: 'uint32_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'? +++ |+#include <cstdint> 1 | #ifndef _MACARON_BASE64_H_ ./include/Base64.h:114:16: error: expected ';' before 'b' 114 | uint32_t b = input[i] == '=' ? 0 & i++ : kDecodingTable[static_cast<int>(input[i++])]; | ^ ./include/Base64.h:115:16: error: expected ';' before 'c' 115 | uint32_t c = input[i] == '=' ? 0 & i++ : kDecodingTable[static_cast<int>(input[i++])]; | ^ ./include/Base64.h:116:16: error: expected ';' before 'd' 116 | uint32_t d = input[i] == '=' ? 0 & i++ : kDecodingTable[static_cast<int>(input[i++])]; | ^ ./include/Base64.h:118:16: error: expected ';' before 'triple' 118 | uint32_t triple = (a << 3 * 6) + (b << 2 * 6) + (c << 1 * 6) + (d << 0 * 6); | ^~~~~~ ./include/Base64.h:120:36: error: 'trip

Comment 4 by Francesco Turco, Apr 30, 2023
OK, libgourou now builds correctly. Thank you! I'll update my Gentoo ebuild for libgourou as soon as you merge these commits into the master branch.
Sign in to reply to this comment.
Reported by Francesco Turco, Apr 29, 2023