Opened 3 months ago

Last modified 5 weeks ago

#73622 assigned defect

mariadb-10.6 @10.6.21: build failure due to redefinition of libxml2 enumerators

Reported by: kwolcott Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc: jonasjonas (Frank Hellenkamp), ballapete (Peter "Pete" Dyballa)
Port: mariadb-10.6

Description (last modified by ryandesign (Ryan Carsten Schmidt))

:info:build   272 |     XML_XINCLUDE_START=         19,
:info:build       |     ^
:info:build fatal error: too many errors emitted, stopping now [-ferror-limit=]
:info:build 20 errors generated.
:info:build make[2]: *** [storage/connect/CMakeFiles/connect.dir/libdoc.cpp.o] Error 1

Prior steps:

sudo port clean mariadb-10.6
sudo port selfupdate

port outdated
The following installed ports are outdated:
emacs                          30.2_2 < 30.2_3
mariadb-10.6                   10.6.21_0 < 10.6.21_1

sudo port -v -s -d -f upgrade mariadb-10.6 # since it shows up also in the broken links output after a successful port install, thought I'd force it :-(

The last successful port install resulted in the following broken links report:

The following ports will be rebuilt:
 py27-pygtk @2.24.0+x11
 emacs @30.2+nativecomp+treesitter
 gstreamer1-gst-plugins-bad @1.24.9+x11
 mariadb-10.6 @10.6.21
 p5.34-net-z3950-zoom @1.320.0
 lldb-21 @21.1.8

Attachments (1)

mariadb-10.6_port_build_from_source_failed.log.bz2 (124.7 KB) - added by kwolcott 3 months ago.

Download all attachments as: .zip

Change History (12)

comment:1 Changed 3 months ago by kwolcott

Description: modified (diff)

comment:2 Changed 3 months ago by jmroot (Joshua Root)

Owner: set to michaelld
Status: newassigned

comment:3 Changed 3 months ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Summary: mariadb-10.6 fails to upgrade (MacOS 26.3.1, arm64)mariadb-10.6 @10.6.21: build failure due to redefinition of libxml2 enumerators

Remember to use WikiFormatting when writing in Trac. For example, put {{{ on a line by itself before terminal output and }}} on a line by itself afterward.

The errors in the log are redefinitions of libxml2 enumerators, like:

In file included from /opt/local/var/macports/build/mariadb-10.6-adb33b1e/work/mariadb-10.6.21/storage/connect/libdoc.cpp:35:
/opt/local/var/macports/build/mariadb-10.6-adb33b1e/work/mariadb-10.6.21/storage/connect/plgxml.h:10:6: error: redefinition of enumerator 'XML_ELEMENT_NODE'
   10 |      XML_ELEMENT_NODE       =  1,
      |      ^
/opt/local/include/libxml2/libxml/tree.h:168:5: note: previous definition is here
  168 |     XML_ELEMENT_NODE=           1,
      |     ^
In file included from /opt/local/var/macports/build/mariadb-10.6-adb33b1e/work/mariadb-10.6.21/storage/connect/libdoc.cpp:35:
/opt/local/var/macports/build/mariadb-10.6-adb33b1e/work/mariadb-10.6.21/storage/connect/plgxml.h:11:6: error: redefinition of enumerator 'XML_ATTRIBUTE_NODE'
   11 |      XML_ATTRIBUTE_NODE     =  2,
      |      ^
/opt/local/include/libxml2/libxml/tree.h:174:5: note: previous definition is here
  174 |     XML_ATTRIBUTE_NODE=         2,
      |     ^

Here's the upstream bug report:

https://jira.mariadb.org/browse/MDEV-36427

It says it was fixed in mariadb 10.6.22. We have 10.6.21, so we just need to update the port.

As an aside, I recommend getting out of the habit of using the MacPorts -f (force) flag. You should almost never need to force anything.

comment:4 Changed 3 months ago by jonasjonas (Frank Hellenkamp)

Cc: jonasjonas added

comment:5 Changed 3 months ago by ryandesign (Ryan Carsten Schmidt)

Has duplicate #73646.

comment:6 Changed 3 months ago by ryandesign (Ryan Carsten Schmidt)

Keywords: haspatch added

comment:7 Changed 3 months ago by ryandesign (Ryan Carsten Schmidt)

#73746 points out that this affects mariadb-10.5 as well. https://jira.mariadb.org/browse/MDEV-36427 says it was fixed in 10.5.29.

PR 28680 was a PR updating all mariadb versions. It has been split into separate PRs per version.

Here is the PR updating mariadb-10.5 to 10.5.29: https://github.com/macports/macports-ports/pull/31625

Here is the PR updating mariadb-10.6 to 10.6.25: https://github.com/macports/macports-ports/pull/31626

comment:8 Changed 2 months ago by kwolcott

I have successfully installed mariadb-11.4.

comment:9 Changed 5 weeks ago by ballapete (Peter "Pete" Dyballa)

Cc: ballapete added

comment:10 Changed 5 weeks ago by ballapete (Peter "Pete" Dyballa)

mariadb-10.11 also builds. macOS Sonoma 14.8.5. mariadb-10.6 is the default for p5-dbd-mysql.

comment:11 Changed 5 weeks ago by ballapete (Peter "Pete" Dyballa)

It's also the default for p5-dbd-mariadb.

Note: See TracTickets for help on using tickets.