Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Aug 2023 21:41:54 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 273370] irc/anope: MySQL database support not working with databases/mariadb106-client
Message-ID:  <bug-273370-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273370

            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
[...]
=3D=3D=3D>  Applying FreeBSD patches for anope-2.0.14 from /usr/ports/irc/a=
nope/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/
[...]
=3D=3D=3D>   anope-2.0.14 depends on shared library: libpcre.so - found
(/usr/local/lib/libpcre.so)
=3D=3D=3D>   anope-2.0.14 depends on shared library: libmariadb.so.3 - found
(/usr/local/lib/mysql/libmariadb.so.3)
=3D=3D=3D>   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=
=20
-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=
=20
-DNDEBUG  -Wl,-rpath,/usr/local/lib -fstack-protector-strong -L/usr/local/l=
ib=20
-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 =3D> /usr/lib/libc++.so.1 (0x8006a7000)
        libcxxrt.so.1 =3D> /lib/libcxxrt.so.1 (0x80077e000)
        libm.so.5 =3D> /lib/libm.so.5 (0x8007a0000)
        libgcc_s.so.1 =3D> /lib/libgcc_s.so.1 (0x8007d7000)
        libthr.so.3 =3D> /lib/libthr.so.3 (0x800e00000)
        libc.so.7 =3D> /lib/libc.so.7 (0x80024e000)

Any idea where this fails in the build process?

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-273370-7788>