[debian-mysql] Bug#981347: mariadb-10.5 FTBFS on kfreebsd

Laurent Bigonville bigon at debian.org
Fri Jan 29 16:58:21 GMT 2021


Source: mariadb-10.5
Version: 1:10.5.8-3
Severity: important
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)

Hello,

ATM, mariadb-10.5 FTBFS on kfreebsd with the following error:

cd /<<PKGBUILDDIR>>/builddir/sql && /usr/bin/c++ -DDBUG_TRACE -DHAVE_CONFIG_H -DHAVE_EVENT_SCHEDULER -DHAVE_OPENSSL -DHAVE_POOL_OF_THREADS -DMYSQL_SERVER -I/<<PKGBUILDDIR>>/wsrep-lib/include -I/<<PKGBUILDDIR>>/wsrep-lib/wsrep-API/v26 -I/<<PKGBUILDDIR>>/builddir/include -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/sql -I/<<PKGBUILDDIR>>/builddir/sql -I/<<PKGBUILDDIR>>/tpool -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -pie -fPIC -fstack-protector --param=ssp-buffer-size=4 -O2 -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -Wno-uninitialized -fno-omit-frame-pointer -D_FORTIFY_SOURCE=2 -DDBUG_OFF -Wall -Wextra -Wformat-security -Wno-format-truncation -Wno-init-self -Wno-nonnull-compare -Wno-unused-parameter -Woverloaded-virtual -Wnon-virtual-dtor -Wvla -Wwrite-strings   -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++11 -o CMakeFiles/sql.dir/rpl_tblmap.cc.o -c /<<PKGBUILDDIR>>/sql/rpl_tblmap.cc
/<<PKGBUILDDIR>>/storage/maria/libmarias3/src/marias3.c: In function ‘curl_needs_openssl_locking’:
/<<PKGBUILDDIR>>/storage/maria/libmarias3/src/marias3.c:71:37: error: ‘RTLD_DEFAULT’ undeclared (first use in this function)
   71 |     openssl_set_id_callback = dlsym(RTLD_DEFAULT, "CRYPTO_set_id_callback");
      |                                     ^~~~~~~~~~~~
/<<PKGBUILDDIR>>/storage/maria/libmarias3/src/marias3.c:71:37: note: each undeclared identifier is reported only once for each function it appears in

This is happening because #define _GNU_SOURCE is not defined for that
platforme (see dlopen() manpage)

the CMake scripts are only defining it in case of Linux or GNU.

Could you please try to define this in the kfreebsd (glibc)?

Kind regards,
Laurent Bigonville


-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-2-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_WARN
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8), LANGUAGE=fr_BE:fr
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: SELinux: enabled - Mode: Permissive - Policy name: refpolicy


More information about the pkg-mysql-maint mailing list