[Bug 287888] databases/libgda6: error: '__xmlDoValidityCheckingDefaultValue' is deprecated

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 28 Jun 2025 22:57:02 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287888

            Bug ID: 287888
           Summary: databases/libgda6: error:
                    '__xmlDoValidityCheckingDefaultValue' is deprecated
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: gnome@FreeBSD.org
          Reporter: milios@ccsys.com
             Flags: maintainer-feedback?(gnome@FreeBSD.org)
          Assignee: gnome@FreeBSD.org
 Attachment #261718 maintainer-approval?
             Flags:

Created attachment 261718
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=261718&action=edit
git -C /usr/ports diff databases/libgda6

perhaps due to libxml2 update 2.11.x -> 2.14.x?

applied attached patch to git'r'done but would appreciate a chime-in from an
O.G.

FAILED: libgda/libgda-6.0.so.6.p/gda-set.c.o 
cc -Ilibgda/libgda-6.0.so.6.p -Ilibgda -I../libgda -I. -I.. -Ilibgda/sqlite
-I../libgda/sqlite -Ilibgda/sql-parser -I../libgda/sql-parser
-I/usr/local/include -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include -I/usr/local/include/libxml2
-I/usr/local/include/libsecret-1 -I/usr/local/include/gio-unix-2.0
-fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra
-Werror -std=gnu11 -Wno-deprecated-non-prototype -fstack-protector-strong
-fno-strict-aliasing -fPIC -pthread -include
/usr/ports/databases/libgda6/work/libgda-c149606b/_build/config.h
-DABI_VERSION=6.0 '-DABI_NAME="libgda-6.0"' -include
/usr/ports/databases/libgda6/work/libgda-c149606b/_build/config.h
'-DPNAME="SQLite"' '-DCLASS_PREFIX="GdaSqlite"' -DHAVE_SQLITE
'-DSEARCH_LIB_PATH="/usr/local/lib"' '-DLIBGDAPREFIX="/usr/local"'
'-DLIBGDADATA="/usr/local/share"' '-DLIBGDALIB="/usr/local/lib"'
'-DLIBGDALIBEXEC="/usr/local/libexec"' '-DLIBGDABIN="/usr/local/bin"'
'-DLIBGDASBIN="/usr/local/sbin"' '-DLIBGDASYSCONF="/usr/local/etc"' -Wall
-Wextra -Wformat-security -Wno-address -Wno-unused-variable
-Wno-unused-parameter -Wno-pointer-sign -Wno-missing-field-initializers
-DGSEAL_ENABLE -DG_LOG_USE_STRUCTURED '-DLIBGDA_ABI_NAME="libgda-6.0"'
-DHAVE_LIBSECRET -MD -MQ libgda/libgda-6.0.so.6.p/gda-set.c.o -MF
libgda/libgda-6.0.so.6.p/gda-set.c.o.d -o libgda/libgda-6.0.so.6.p/gda-set.c.o
-c ../libgda/gda-set.c
../libgda/gda-set.c:1351:16: error: '__xmlDoValidityCheckingDefaultValue' is
deprecated [-Werror,-Wdeprecated-declarations]
 1351 |     xmlcheck = xmlDoValidityCheckingDefaultValue;
      |                ^
/usr/local/include/libxml2/libxml/parser.h:1048:7: note: expanded from macro
'xmlDoValidityCheckingDefaultValue'
 1048 |     (*__xmlDoValidityCheckingDefaultValue())
      |       ^
/usr/local/include/libxml2/libxml/parser.h:1025:1: note:
'__xmlDoValidityCheckingDefaultValue' has been explicitly marked deprecated
here
 1025 | XML_DEPRECATED
      | ^
/usr/local/include/libxml2/libxml/xmlexports.h:61:43: note: expanded from macro
'XML_DEPRECATED'
   61 |     #define XML_DEPRECATED __attribute__((deprecated))
      |                                           ^
../libgda/gda-set.c:1352:5: error: '__xmlDoValidityCheckingDefaultValue' is
deprecated [-Werror,-Wdeprecated-declarations]
 1352 |     xmlDoValidityCheckingDefaultValue = 1;
      |     ^
/usr/local/include/libxml2/libxml/parser.h:1048:7: note: expanded from macro
'xmlDoValidityCheckingDefaultValue'
 1048 |     (*__xmlDoValidityCheckingDefaultValue())
      |       ^
/usr/local/include/libxml2/libxml/parser.h:1025:1: note:
'__xmlDoValidityCheckingDefaultValue' has been explicitly marked deprecated
here
 1025 | XML_DEPRECATED
      | ^
/usr/local/include/libxml2/libxml/xmlexports.h:61:43: note: expanded from macro
'XML_DEPRECATED'
   61 |     #define XML_DEPRECATED __attribute__((deprecated))
      |                                           ^
../libgda/gda-set.c:1402:9: error: '__xmlDoValidityCheckingDefaultValue' is
deprecated [-Werror,-Wdeprecated-declarations]
 1402 |         xmlDoValidityCheckingDefaultValue = xmlcheck;
      |         ^
/usr/local/include/libxml2/libxml/parser.h:1048:7: note: expanded from macro
'xmlDoValidityCheckingDefaultValue'
 1048 |     (*__xmlDoValidityCheckingDefaultValue())
      |       ^
/usr/local/include/libxml2/libxml/parser.h:1025:1: note:
'__xmlDoValidityCheckingDefaultValue' has been explicitly marked deprecated
here
 1025 | XML_DEPRECATED
      | ^
/usr/local/include/libxml2/libxml/xmlexports.h:61:43: note: expanded from macro
'XML_DEPRECATED'
   61 |     #define XML_DEPRECATED __attribute__((deprecated))
      |                                           ^
../libgda/gda-set.c:1411:5: error: '__xmlDoValidityCheckingDefaultValue' is
deprecated [-Werror,-Wdeprecated-declarations]
 1411 |     xmlDoValidityCheckingDefaultValue = xmlcheck;
      |     ^
/usr/local/include/libxml2/libxml/parser.h:1048:7: note: expanded from macro
'xmlDoValidityCheckingDefaultValue'
 1048 |     (*__xmlDoValidityCheckingDefaultValue())
      |       ^
/usr/local/include/libxml2/libxml/parser.h:1025:1: note:
'__xmlDoValidityCheckingDefaultValue' has been explicitly marked deprecated
here
 1025 | XML_DEPRECATED
      | ^
/usr/local/include/libxml2/libxml/xmlexports.h:61:43: note: expanded from macro
'XML_DEPRECATED'
   61 |     #define XML_DEPRECATED __attribute__((deprecated))
      |                                           ^
4 errors generated.
ninja: build stopped: subcommand failed.
*** Error code 1

Stop.
make: stopped in /usr/ports/databases/libgda6

-- 
You are receiving this mail because:
You are the assignee for the bug.