[Bug 273370] irc/anope: MySQL database support not working with databases/mariadb106-client

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 26 Aug 2023 21:41:54 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273370

            Bug ID: 273370
           Summary: irc/anope: MySQL database support not working with
                    databases/mariadb106-client
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: fabian@wenks.ch
                CC: brnrd@freebsd.org, devnull@apt322.org
                CC: brnrd@freebsd.org, devnull@apt322.org

I have configured the port with:
[x] MYSQL    MySQL database support

I am running on FreeBSD 12.4 and with mariadb106-client-10.6.14 installed.

On startup anope reports this in the current
/usr/local/anope/logs/services.log.*:
[Aug 26 21:20:59 2023] lib/modules/m_mysql.so: Undefined symbol "mysql_init"

Relevant steps and output of a test build:

# cd /usr/ports/irc/anope/
# make
[...]
===>  Applying FreeBSD patches for anope-2.0.14 from /usr/ports/irc/anope/files
/bin/ln -s /usr/ports/irc/anope/work/anope-2.0.14/modules/extra/m_mysql.cpp
/usr/ports/irc/anope/work/anope-2.0.14/modules/
[...]
===>   anope-2.0.14 depends on shared library: libpcre.so - found
(/usr/local/lib/libpcre.so)
===>   anope-2.0.14 depends on shared library: libmariadb.so.3 - found
(/usr/local/lib/mysql/libmariadb.so.3)
===>   anope-2.0.14 depends on shared library: libintl.so - found
(/usr/local/lib/libintl.so)
(/usr/local/lib/mysql/libmariadb.so.3)
[...]
[ 76% 311/402] /usr/bin/c++ -Dm_mysql_so_EXPORTS
-I/usr/ports/irc/anope/work/.build/include
-I/usr/ports/irc/anope/work/anope-2.0.14/include
-I/usr/ports/irc/anope/work/.build/language
-I/usr/ports/irc/anope/work/anope-2.0.14/modules/pseudoclients
-I/usr/ports/irc/anope/work/anope-2.0.14/modules -O2 -pipe
-fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -fPIC
 -isystem /usr/local/include -O2 -pipe -fstack-protector-strong -isystem
/usr/local/include -fno-strict-aliasing -fPIC  -isystem /usr/local/include 
-DNDEBUG -fPIC -Wall -Wshadow -ansi -pedantic -O2 -pipe
-fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -fPIC
 -isystem /usr/local/include -pipe -MD -MT
modules/CMakeFiles/m_mysql.so.dir/m_mysql.o -MF
modules/CMakeFiles/m_mysql.so.dir/m_mysql.o.d -o
modules/CMakeFiles/m_mysql.so.dir/m_mysql.o -c
/usr/ports/irc/anope/work/anope-2.0.14/modules/m_mysql.cpp
[ 76% 312/402] : && /usr/bin/c++ -fPIC -O2 -pipe -fstack-protector-strong
-isystem /usr/local/include -fno-strict-aliasing -fPIC  -isystem
/usr/local/include -O2 -pipe -fstack-protector-strong -isystem
/usr/local/include -fno-strict-aliasing -fPIC  -isystem /usr/local/include 
-DNDEBUG  -Wl,-rpath,/usr/local/lib -fstack-protector-strong -L/usr/local/lib 
-pthread -shared  -o modules/m_mysql.so
modules/CMakeFiles/m_mysql.so.dir/m_mysql.o   && :
[...]
-- Installing:
/usr/ports/irc/anope/work/stage/usr/local/anope/lib/modules/m_mysql.so
[...]
# ldd /usr/ports/irc/anope/work/stage/usr/local/anope/lib/modules/m_mysql.so
/usr/ports/irc/anope/work/stage/usr/local/anope/lib/modules/m_mysql.so:
        libc++.so.1 => /usr/lib/libc++.so.1 (0x8006a7000)
        libcxxrt.so.1 => /lib/libcxxrt.so.1 (0x80077e000)
        libm.so.5 => /lib/libm.so.5 (0x8007a0000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x8007d7000)
        libthr.so.3 => /lib/libthr.so.3 (0x800e00000)
        libc.so.7 => /lib/libc.so.7 (0x80024e000)

Any idea where this fails in the build process?

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