When I tried to compile pkgtools/libnbcompat with GCC 11 and G++ 11 (default compiler Ubuntu 22.04) I had following compilation error:
getopt_long.c: In function ‘getopt_internal’:
getopt_long.c:194:6: error: ‘optreset’ undeclared (first use in this function); did you mean ‘optopt’?
if (optreset)
^~~~~~~~
optopt
getopt_long.c:194:6: note: each undeclared identifier is reported only once for each function it appears in
*** [getopt_long.o] Error code 1
After installing gcc 9/g++ 9 the build is successfull:
Steps to introduce on Ubuntu 22.04:
More info about package: https://packages.ubuntu.com/jammy/gcc-multilib
When I tried to compile
pkgtools/libnbcompat
with GCC 11 and G++ 11 (default compiler Ubuntu 22.04) I had following compilation error:After installing gcc 9/g++ 9 the build is successfull:
More info about package: https://packages.ubuntu.com/jammy-updates/gcc-9-multilib