On ubuntu 22.04 there is a new Flex/Bison that does not correctly generate files for gsoap. which, when compiled, produces an error: "multiple definition of `yylval'; soapcpp2-soapcpp2_yacc.o" This bug has been fixed in gsoap version 2.8.99. We will update the version of gsoap in the next release, and this patch will be removed! For more details see: https://sourceforge.net/p/gsoap2/bugs/1269/ --- gsoap/src/soapcpp2_lex.l 2018-04-08 18:22:45.000000000 +0400 +++ gsoap/src/soapcpp2_lex.l2 2023-08-23 11:26:24.841881181 +0400 @@ -48,7 +48,7 @@ #endif #ifdef WITH_BISON -YYSTYPE yylval; +extern YYSTYPE yylval; #undef YY_NEED_STRLEN #define YY_INPUT(buf, result, max_size) \ { \