bug-gnucobol
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

missing include, with patch


From: Carl Hansen
Subject: missing include, with patch
Date: Sun, 17 Mar 2024 22:26:20 -0400
User-agent: Mutt/1.9.4 (2018-02-28)

the bug:

libtool: compile:  /home/carl/gsrc/bin/gcc-13 -DHAVE_CONFIG_H -I. 
-I../../../work/gnucobol-3.2/libcob -I.. -I../../../work/gnucobol-3.2 -I../lib 
-I../../../work/gnucobol-3.2/lib -I/home/carl/gsrc/include/libxml2 
-I/usr/include/json-c -DLOCALEDIR=\"/home/carl/gsrc/share/locale\" 
-Wimplicit-function-declaration -MT common.lo -MD -MP -MF .deps/common.Tpo -c 
../../../work/gnucobol-3.2/libcob/common.c  -fPIC -DPIC -o .libs/common.o
../../../work/gnucobol-3.2/libcob/common.c: In function 'print_info_detailed':
../../../work/gnucobol-3.2/libcob/common.c:9714:17: error: implicit declaration 
of function 'xmlCleanupParser' [-Wimplicit-function-declaration]
 9714 |                 xmlCleanupParser ();
      |                 ^~~~~~~~~~~~~~~~
make[3]: *** [Makefile:614: common.lo] Error 1


the patch:

diff -x config.log -x config.status -ru tmp/gnucobol-3.2/libcob/common.c 
work/gnucobol-3.2/libcob/common.c
--- tmp/gnucobol-3.2/libcob/common.c    2023-07-28 10:16:38.000000000 -0700
+++ work/gnucobol-3.2/libcob/common.c   2024-03-17 18:50:13.293943495 -0700
@@ -136,6 +136,7 @@
 #if defined (WITH_XML2)
 #include <libxml/xmlversion.h>
 #include <libxml/xmlwriter.h>
+#include <libxml/parser.h>
 #endif
 
 #if defined (WITH_CJSON)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]