Fix: add soapcpp2_lex.l.patch

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/
master
KoynovStas 2 years ago
parent e0d44a27bd
commit 532587a54f

@ -229,6 +229,12 @@ define build_gsoap
unzip ./SDK/gsoap.zip; \
fi
#add patch
if [ ! -f $(GSOAP_INSTALL_DIR)/gsoap/src/soapcpp2_lex.l.patched ]; then \
patch $(GSOAP_INSTALL_DIR)/gsoap/src/soapcpp2_lex.l -i ./patch/soapcpp2_lex.l.patch -f; \
touch $(GSOAP_INSTALL_DIR)/gsoap/src/soapcpp2_lex.l.patched; \
fi
# build
if [ ! -f $(SOAPCPP2) ] || [ ! -f $(WSDL2H) ]; then \
cd $(GSOAP_INSTALL_DIR); \

@ -0,0 +1,17 @@
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/
--- soapcpp2_lex.l 2018-04-08 18:22:45.000000000 +0400
+++ 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) \
{ \
Loading…
Cancel
Save