1

Topic: iRedMail 1.6.0, FreeBSD 13.1, and mariadb with readonly symbols

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.6.0
- Deployed with iRedMail Easy or the downloadable installer?Downloadable installer
- Linux/BSD distribution name and version: FreeBSD 13.1-RELEASE
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hello,

I'm trying to get iRedMail 1.6.0 going on FreeBSD 13.1-RELEASE. Everything goes fine until the mariadb 105 when the install puts symbols deflate in /usr/lib which complains about being readonly then the install stops. I've trimmed the log because otherwise it's quite extensive, but

Here's the log:
===>   mariadb105-client-10.5.16 depends on shared library: libedit.so.0 - found CMakeFiles/mariadb_obj.dir/mariadb_async.c.o CMakeFiles/mariadb_obj.dir/ma_context.c.o  -
Wl,-rpath,/usr/local/lib: -pthread -lm -lm /usr/local/lib/libssl.so /usr/local/lib/libcrypto.so /usr/lib/lib/libz.a
ld: error: relocation R_X86_64_PC32 cannot be used against symbol __stack_chk_guard; recompile with -fPIC
>>> defined in /lib/libc.so.7
>>> referenced by compress.c:28 (/usr/src/sys/contrib/zlib/compress.c:28)
>>>               compress.o:(compress2) in archive /usr/lib/lib/libz.a

ld: error: can't create dynamic relocation R_X86_64_32 against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /usr/lib/lib/libz.a(compress.o)
>>> referenced by compress.c:41 (/usr/src/sys/contrib/zlib/compress.c:41)
>>>               compress.o:(compress2) in archive /usr/lib/lib/libz.a

ld: error: relocation R_X86_64_PC32 cannot be used against symbol __stack_chk_guard; recompile with -fPIC
>>> defined in /lib/libc.so.7
>>> referenced by compress.c:0 (/usr/src/sys/contrib/zlib/compress.c:0)
>>>               compress.o:(compress2) in archive /usr/lib/lib/libz.a

ld: error: can't create dynamic relocation R_X86_64_32S against symbol: zcalloc in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /usr/lib/lib/libz.a(zutil.o)
>>> referenced by deflate.c:269 (/usr/src/sys/contrib/zlib/deflate.c:269)
>>>               deflate.o:(deflateInit2_) in archive /usr/lib/lib/libz.a

ld: error: can't create dynamic relocation R_X86_64_32 against symbol: zcalloc in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /usr/lib/lib/libz.a(zutil.o)
>>> referenced by deflate.c:269 (/usr/src/sys/contrib/zlib/deflate.c:269)
>>>               deflate.o:(deflateInit2_) in archive /usr/lib/lib/libz.a

ld: error: can't create dynamic relocation R_X86_64_32S against symbol: zcfree in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /usr/lib/lib/libz.a(zutil.o)
>>> referenced by deflate.c:277 (/usr/src/sys/contrib/zlib/deflate.c:277)
>>>               deflate.o:(deflateInit2_) in archive /usr/lib/lib/libz.a

ld: error: relocation R_X86_64_PC32 cannot be used against symbol z_errmsg; recompile with -fPIC
>>> defined in /usr/lib/lib/libz.a(zutil.o)
>>> referenced by deflate.c:372 (/usr/src/sys/contrib/zlib/deflate.c:372)
>>>               deflate.o:(deflateInit2_) in archive /usr/lib/lib/libz.a

ld: error: can't create dynamic relocation R_X86_64_32S against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /usr/lib/lib/libz.a(deflate.o)
>>> referenced by deflate.c:1243 (/usr/src/sys/contrib/zlib/deflate.c:1243)
>>>               deflate.o:(deflateReset) in archive /usr/lib/lib/libz.a

ld: error: can't create dynamic relocation R_X86_64_32S against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /usr/lib/lib/libz.a(deflate.o)
>>> referenced by deflate.c:1244 (/usr/src/sys/contrib/zlib/deflate.c:1244)
>>>               deflate.o:(deflateReset) in archive /usr/lib/lib/libz.a

ld: error: can't create dynamic relocation R_X86_64_32S against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /usr/lib/lib/libz.a(deflate.o)
>>> referenced by deflate.c:1245 (/usr/src/sys/contrib/zlib/deflate.c:1245)
>>>               deflate.o:(deflateReset) in archive /usr/lib/lib/libz.a

ld: error: can't create dynamic relocation R_X86_64_32S against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /usr/lib/lib/libz.a(deflate.o)
>>> referenced by deflate.c:1246 (/usr/src/sys/contrib/zlib/deflate.c:1246)
>>>               deflate.o:(deflateReset) in archive /usr/lib/lib/libz.a

ld: error: can't create dynamic relocation R_X86_64_32S against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /usr/lib/lib/libz.a(deflate.o)
>>> referenced by deflate.c:628 (/usr/src/sys/contrib/zlib/deflate.c:628)
>>>               deflate.o:(deflateParams) in archive /usr/lib/lib/libz.a

ld: error: can't create dynamic relocation R_X86_64_32S against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /usr/lib/lib/libz.a(deflate.o)
>>> referenced by deflate.c:630 (/usr/src/sys/contrib/zlib/deflate.c:630)
>>>               deflate.o:(deflateParams) in archive /usr/lib/lib/libz.a

ld: error: can't create dynamic relocation R_X86_64_32S against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /usr/lib/lib/libz.a(deflate.o)
>>> referenced by deflate.c:648 (/usr/src/sys/contrib/zlib/deflate.c:648)
>>>               deflate.o:(deflateParams) in archive /usr/lib/lib/libz.a

ld: error: can't create dynamic relocation R_X86_64_32S against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /usr/lib/lib/libz.a(deflate.o)
>>> referenced by deflate.c:649 (/usr/src/sys/contrib/zlib/deflate.c:649)
>>>               deflate.o:(deflateParams) in archive /usr/lib/lib/libz.a

ld: error: can't create dynamic relocation R_X86_64_32S against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /usr/lib/lib/libz.a(deflate.o)
>>> referenced by deflate.c:650 (/usr/src/sys/contrib/zlib/deflate.c:650)
>>>               deflate.o:(deflateParams) in archive /usr/lib/lib/libz.a

ld: error: can't create dynamic relocation R_X86_64_32S against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /usr/lib/lib/libz.a(deflate.o)
>>> referenced by deflate.c:651 (/usr/src/sys/contrib/zlib/deflate.c:651)
>>>               deflate.o:(deflateParams) in archive /usr/lib/lib/libz.a

ld: error: relocation R_X86_64_PC32 cannot be used against symbol z_errmsg; recompile with -fPIC
>>> defined in /usr/lib/lib/libz.a(zutil.o)
>>> referenced by deflate.c:819 (/usr/src/sys/contrib/zlib/deflate.c:819)
>>>               deflate.o:(deflate) in archive /usr/lib/lib/libz.a

ld: error: relocation R_X86_64_PC32 cannot be used against symbol z_errmsg; recompile with -fPIC
>>> defined in /usr/lib/lib/libz.a(zutil.o)
>>> referenced by deflate.c:0 (/usr/src/sys/contrib/zlib/deflate.c:0)
>>>               deflate.o:(deflate) in archive /usr/lib/lib/libz.a

ld: error: can't create dynamic relocation R_X86_64_32S against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /usr/lib/lib/libz.a(deflate.o)
>>> referenced by deflate.c:0 (/usr/src/sys/contrib/zlib/deflate.c:0)
>>>               deflate.o:(deflate) in archive /usr/lib/lib/libz.a

ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1

Stop.
make[3]: stopped in /usr/ports/databases/mariadb105-client/work/mariadb-10.5.16
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/databases/mariadb105-client/work/mariadb-10.5.16
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/databases/mariadb105-client/work/mariadb-10.5.16
*** Error code 1

Stop.
make: stopped in /usr/ports/databases/mariadb105-client
<< ERROR >> Port was not successfully installed, please fix it manually and then re-execute this script.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: iRedMail 1.6.0, FreeBSD 13.1, and mariadb with readonly symbols

- It seems a port tree issue, not the iRedMail installer. sad
- Is switching to Linux or OpenBSD an acceptable option?

3

Re: iRedMail 1.6.0, FreeBSD 13.1, and mariadb with readonly symbols

For this particular question yes switching to a Linux system is acceptable. To the next question I'm about to ask in another posting that answer will be no, I'm definitely going to need a fix. Thanks.

ZhangHuangbin wrote:

- It seems a port tree issue, not the iRedMail installer. sad
- Is switching to Linux or OpenBSD an acceptable option?