Solved ld-elf.so.1: /usr/local/libexec/mysqld: Undefined symbol "memalign@FBSD_1.6"

In the bug report you referenced, follow what comment #5 did. (Assuming you're using pkg not ports?)
Your system is out of sync and your libraries are not what mysql expects.
 
Wow, I get the same error for bison:
# bison --version
bison (GNU Bison) 3.7.6
ld-elf.so.1: /usr/local/bin/bison: Undefined symbol "fputs_unlocked@FBSD_1.6"
 
Code:
[14:22:02] [host!user]~$ls -l /lib/libc.so.7  && readelf -s /lib/libc.so.7 |grep fputs_u
-r--r--r--  1 root  wheel  1981952 Apr  9  2021 /lib/libc.so.7
  1371: 0000000000116f80   139 FUNC    GLOBAL DEFAULT   13 fputs_unlocked@@FBSD_1.6 (8)
 
Code:
# ls -l /lib/libc.so.7  && readelf -s /lib/libc.so.7 |grep fputs_u
-r--r--r--  1 root  wheel  1974536 Dec 31 07:14 /lib/libc.so.7
/usr/ports/databases/mariadb105-server{141}# /usr/local/libexec/mysqld
ld-elf.so.1: /usr/local/libexec/mysqld: Undefined symbol "memalign@FBSD_1.6"
 
FreeBSD 12.1 is end-of-life and not supported any more. Packages are built for 12.2. You need to upgrade your base OS. I suggest you upgrade to 12.3, which was recently released. 12.2 will be EoL in March 2022.

 
Back
Top