https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122451

            Bug ID: 122451
           Summary: [16 regression] libgcobol fails to build
                    (libgcobol/xmlparse.cc:737:48: error: ‘ctxt’ was not
                    declared in this scope)
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: cobol
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sjames at gcc dot gnu.org
  Target Milestone: ---

libtool: compile: 
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/build/./gcc/xg++
-B/var/tmp/portage/sys-devel/gcc-16.0.9999/work/build/./gcc/ -nostdinc++
-nostdinc++ -I/var/tmp/portage/
sys-devel/gcc-16.0.9999/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu
-I/var/tmp/portage/sys-devel/gcc-16.0.9999/work/build/x86_64-pc-linux-gnu/libstdc++-v3/inc
lude
-I/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libstdc++-v3/libsupc++
-I/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libstdc++-v3/include/backward
-I/v
ar/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libstdc++-v3/testsuite/util
-L/var/tmp/portage/sys-devel/gcc-16.0.9999/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src
-L/var/tm
p/portage/sys-devel/gcc-16.0.9999/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-L/var/tmp/portage/sys-devel/gcc-16.0.9999/work/build/x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.
libs
-B/var/tmp/portage/sys-devel/gcc-16.0.9999/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-B/var/tmp/portage/sys-devel/gcc-16.0.9999/work/build/x86_64-pc-linux-gnu/libstdc++-
v3/libsupc++/.libs -B/usr/x86_64-pc-linux-gnu/bin/
-B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include
-isystem /usr/x86_64-pc-linux-gnu/sys-include -fchecking=1 -D
HAVE_CONFIG_H -I.
-I/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libgcobol -I.
-I/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libgcobol
-I/var/tmp/portage/s
ys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libgcobol/posix -I
/usr/include/libxml2 -W -Wall -Wwrite-strings -DIN_TARGET_LIBS
-fno-strict-aliasing -g -O2 -O3 -march=native -fno-semantic-in
terposition -g1 -pipe -fcf-protection=none -fdiagnostics-color=always
-fdiagnostics-urls=never -Wa,-O2 -Wa,-mtune=znver2 --param=ggc-min-expand=120
-Wstrict-aliasing -Wfree-nonheap-objec
t -Wuninitialized -Wmaybe-uninitialized -Wreturn-type -Werror=lto-type-mismatch
-Werror=strict-aliasing -Werror=odr -Wstringop-overread -Wstringop-overflow
-Wstringop-truncation -Wformat
-overflow -Wformat-truncation -Wrestrict -ggdb3 -Wno-error=lto-type-mismatch
-Wno-error=odr -D_GNU_SOURCE -c
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libgcobol/xmlpars
e.cc  -fPIC -DPIC -o .libs/xmlparse.o
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libgcobol/xmlparse.cc:
In function ‘int xml_push_parse(cblc_field_t*, size_t, size_t, cblc_field_t*,
cblc_field_t*, int, void
(*)())’:
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libgcobol/xmlparse.cc:737:48:
error: ‘ctxt’ was not declared in this scope
  737 |   const xmlChar * version = xmlCtxtGetVersion( ctxt );
      |                                                ^~~~
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libgcobol/xmlparse.cc:
In function ‘int __gg__xml_parse(const cblc_field_t*, size_t, size_t,
cblc_field_t*, cblc_field_t*, int, void (*)())’:
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libgcobol/xmlparse.cc:769:34:
warning: ‘int xmlSAXUserParseMemory(xmlSAXHandler*, void*, const char*, int)’
is deprecated: See
https://gnome.pages.gitlab.gnome.org/libxml2/html/deprecated.html
[-Wdeprecated-declarations]
  769 |   int erc = xmlSAXUserParseMemory(&handlers, nullptr, input, len);
      |             ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/libxml2/libxml/SAX2.h:19,
                 from
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libgcobol/xmlparse.cc:46:
/usr/include/libxml2/libxml/parser.h:1481:17: note: declared here
 1481 |                 xmlSAXUserParseMemory   (xmlSAXHandler *sax,
      |                 ^~~~~~~~~~~~~~~~~~~~~
make[3]: *** [Makefile:584: xmlparse.lo] Error 1
make[3]: Leaving directory
'/var/tmp/portage/sys-devel/gcc-16.0.9999/work/build/x86_64-pc-linux-gnu/libgcobol'

Reply via email to