Opened 16 months ago

Last modified 5 months ago

#72323 assigned defect

mariadb-10.6: fails to run due to missing dependency on lzo2

Reported by: jasimon9 Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc: BjarneDMat
Port: mariadb-10.6

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

With an assist from ChatGPT, I found this in iMac-tmp.log when attempting to start mariadb-10.6-server after a port migrate:

250410 14:52:34 mysqld_safe Starting mariadbd daemon with databases from /opt/local/var/db/mariadb-10.6
dyld[3693]: Library not loaded: /opt/local/lib/liblzo2.2.dylib
  Referenced from: <55E2626A-BC78-303A-A67F-90AD03518BBD> /opt/local/lib/mariadb-10.6/bin/mariadbd
  Reason: tried: '/opt/local/lib/liblzo2.2.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/local/lib/liblzo2.2.dylib' (no such file), '/opt/local/lib/liblzo2.2.dylib' (no such file)
250410 14:52:34 mysqld_safe mysqld from pid file /opt/local/var/db/mariadb-10.6/Mac.lan.pid ended

ChatGPT suggested installing the lzo2 port. After doing that, mariadb-10.6-server ran correctly.

A few contributing factors:

  1. During the port migrate, I answered "yes" to all cleanup prompts—this may have removed lzo2.
  1. port reclaim might have removed it as well.
  1. lzo2 is listed as requested in port echo installed requested, so its removal was unexpected.

Notably, sudo port load mariadb-10.6-server would succeed, but the daemon would silently fail shortly after startup.

It appears the MariaDB server binary links to liblzo2.2.dylib, but no corresponding depends_lib entry exists in the mariadb-10.6 Portfile. Suggest adding port:lzo2 as a dependency for both mariadb-10.6 and mariadb-10.6-server (and perhaps other versions, if affected).

Change History (10)

comment:1 Changed 16 months ago by jmroot (Joshua Root)

Owner: set to michaelld
Port: mariadb-10.6 added
Status: newassigned

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

Description: modified (diff)
Summary: mariadb-10.6-server fails to run after migrate due to missing dependency on lzo2mariadb-10.6: fails to run due to missing dependency on lzo2

The dependency would belong in mariadb-10.6 not mariadb-10.6-server.

comment:3 Changed 6 months ago by BjarneDMat

lzo ought to be installed by default as a dependency of mariadb.10.6.
from a recent log :

$=> grep -A 10 '2026-02-09T15:01:50.3270110Z' PR28680-macos-26.log 
2026-02-09T15:01:50.3270110Z Installing 10 dependencies of mariadb-10.6:
2026-02-09T15:01:50.3270640Z pkgconfig 
2026-02-09T15:01:50.3270930Z libcxx 
2026-02-09T15:01:50.3271270Z lzo2 
2026-02-09T15:01:50.3271400Z libb2 
2026-02-09T15:01:50.3271500Z libarchive 
2026-02-09T15:01:50.3271610Z cmake 
2026-02-09T15:01:50.3271720Z libtextstyle 
2026-02-09T15:01:50.3271840Z m4 
2026-02-09T15:01:50.3271940Z bison-runtime 
2026-02-09T15:01:50.3272050Z bison 

comment:4 Changed 6 months ago by BjarneDMat

Cc: BjarneDMat added

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

Replying to BjarneDMat:

lzo ought to be installed by default as a dependency of mariadb.10.6.

mariadb-10.6 does not declare a dependency on lzo2:

% port deps mariadb-10.6
Full Name: mariadb-10.6 @10.6.21_1
Build Dependencies:   cmake, bison, pkgconfig
Library Dependencies: curl, judy, libxml2, ncurses, pcre2, tcp_wrappers, zlib, boost178, openssl3
Runtime Dependencies: mysql_select

If mariadb-10.6 links directly with lzo2, as the error message says, then mariadb-10.6 must directly declare that library dependency.

Yes, lzo2 might be somewhere else in the dependency chain already, but evidently only via a build dependency. (mariadb-10.6 has a build dependency on cmake which has a library dependency on libarchive which has a library dependency on lzo2.) If mariadb-10.6 is installed as a binary, then MacPorts will not install those build dependencies.

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

I'll look into updating the various mariadb ports and will add the lzo2 dependency as needed.

comment:7 Changed 5 months ago by BjarneDMat

Try looking here : https://github.com/macports/macports-ports/pull/28680 mariadb-{LTS,dev} : updates ; boost188 ; LTS 11.8, 12.3 ; dev

comment:8 Changed 5 months ago by BjarneDMat

Took a look at build-bot log for macos26 :

grep -A 15 'Installing .. dependencies' mariadb11-macOS26.log

The lzo2 dependency was introduced in mariadb-10.6 & is present in all later LTS releases.
I'll add lzo2 to depends_lib-append in PR28680 and git push --force

comment:9 Changed 5 months ago by BjarneDMat

👍🏻 done 🤓

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

Keywords: haspatch added
Note: See TracTickets for help on using tickets.