1 (edited by Kiki307 2017-06-28 20:05:16)

Topic: Freebsd can not install some ports of iredmail

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7 beta (4b71df6)
- Linux/BSD distribution name and version: fresh  Freebsd 11  x64 with latest ports and updates
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mariadb
- Web server (Apache or Nginx): apache
- Manage mail accounts with iRedAdmin-Pro? no
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
yes, it is not iredmail bug,  but iredmail not install on fresh updated freebsd

i found some information about this
http://www.mail-archive.com/freebsd-por … 74725.html
http://www.mail-archive.com/freebsd-por … 74736.html
http://www.mail-archive.com/freebsd-por … 74741.html
http://www.mail-archive.com/freebsd-por … 74760.html


https://forums.freebsd.org/threads/61393/

my log

/usr/local/share/apr/build-1/libtool --silent --mode=link cc    -O2 -pipe -I/usr/local/include -DLIBICONV_PLUG -fstack-protector -fno-strict-aliasing    -L/usr/local/lib/db5 -L/usr/lib  -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector -o htdbm  htdbm.lo passwd_common.lo      -L/usr/local/lib -R/usr/local/lib -laprutil-1 -ldb-5.3 -lexpat -L/usr/local/lib -R/usr/local/lib -lapr-1 -lcrypt -lpthread -lcrypt
/usr/local/share/apr/build-1/libtool --silent --mode=compile cc -I/usr/local/include    -O2 -pipe -I/usr/local/include -DLIBICONV_PLUG -fstack-protector -fno-strict-aliasing      -DLIBICONV_PLUG    -I. -I/usr/ports/www/apache24/work/httpd-2.4.26/os/unix -I/usr/ports/www/apache24/work/httpd-2.4.26/include -I/usr/local/include/apr-1 -I/usr/local/include -I/usr/local/include/db5 -I/usr/include -I/usr/ports/www/apache24/work/httpd-2.4.26/modules/aaa -I/usr/ports/www/apache24/work/httpd-2.4.26/modules/cache -I/usr/ports/www/apache24/work/httpd-2.4.26/modules/core -I/usr/ports/www/apache24/work/httpd-2.4.26/modules/database -I/usr/ports/www/apache24/work/httpd-2.4.26/modules/filters -I/usr/ports/www/apache24/work/httpd-2.4.26/modules/ldap -I/usr/ports/www/apache24/work/httpd-2.4.26/server -I/usr/ports/www/apache24/work/httpd-2.4.26/modules/loggers -I/usr/ports/www/apache24/work/httpd-2.4.26/modules/lua -I/usr/ports/www/apache24/work/httpd-2.4.26/modules/proxy -I/usr/ports/www/apache24/work/httpd-2.4.26/modules/session -I/usr/ports/www/apache24/work/httpd-2.4.26/modules/ssl -I/usr/ports/www/apache24/work/httpd-2.4.26/modules/test -I/usr/ports/www/apache24/work/httpd-2.4.26/server -I/usr/ports/www/apache24/work/httpd-2.4.26/modules/arch/unix -I/usr/ports/www/apache24/work/httpd-2.4.26/modules/dav/main -I/usr/ports/www/apache24/work/httpd-2.4.26/modules/generators -I/usr/ports/www/apache24/work/httpd-2.4.26/modules/mappers  -prefer-non-pic -static -c ab.c && touch ab.lo
ab.c:2518:5: warning: implicit declaration of function
      'SSL_CTX_set_max_proto_version' is invalid in C99
      [-Wimplicit-function-declaration]
    SSL_CTX_set_max_proto_version(ssl_ctx, max_prot);
    ^
ab.c:2519:5: warning: implicit declaration of function
      'SSL_CTX_set_min_proto_version' is invalid in C99
      [-Wimplicit-function-declaration]
    SSL_CTX_set_min_proto_version(ssl_ctx, min_prot);
    ^
2 warnings generated.
/usr/local/share/apr/build-1/libtool --silent --mode=link cc    -O2 -pipe -I/usr/local/include -DLIBICONV_PLUG -fstack-protector -fno-strict-aliasing -L/usr/local/lib -lssl -lcrypto -lcrypt -lpthread     -L/usr/local/lib/db5 -L/usr/lib  -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector -o ab  ab.lo      -L/usr/local/lib -R/usr/local/lib -laprutil-1 -ldb-5.3 -lexpat -L/usr/local/lib -R/usr/local/lib -lapr-1 -lcrypt -lpthread -lm
ab.o: In function `main':
ab.c:(.text+0xbd9): undefined reference to `SSL_CTX_set_max_proto_version'
ab.c:(.text+0xbea): undefined reference to `SSL_CTX_set_min_proto_version'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1

Stop.
make[3]: stopped in /usr/ports/www/apache24/work/httpd-2.4.26/support
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/www/apache24/work/httpd-2.4.26/support
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/www/apache24/work/httpd-2.4.26
*** Error code 1

Stop.
make: stopped in /usr/ports/www/apache24
<< 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: Freebsd can not install some ports of iredmail

and second problem   can not install amavisd-new on freebsd 11 x64 updated   without   change /usr/ports/security/amavisd-mew/makeconf file:

default not work:

.if ${PORT_OPTIONS:MRAR}
.if ${ARCH} == "i386"
RUN_DEPENDS+=    ${LOCALBASE}/bin/rar:archivers/rar
.else
IGNORE=    archviers/rar is a 32-bit binary port and is not compatible with ${ARCH}
.endif
.endif

work:

#.if ${PORT_OPTIONS:MRAR}
#.if ${ARCH} == "i386"
#RUN_DEPENDS+=    ${LOCALBASE}/bin/rar:archivers/rar
#.else
#IGNORE=    archviers/rar is a 32-bit binary port and is not compatible with ${ARCH}
#.endif
#.endif

3

Re: Freebsd can not install some ports of iredmail

Only for those who have the same error as me (first post) and do not want to wait for the new version of ports apach24 or libressl can install this patch

https://bugs.freebsd.org/bugzilla/attac … ?id=183888

the latest version you can Find it on

https://bugs.freebsd.org/bugzilla/show_ … ?id=220160

after installing the patch, restart bash iredmail.sh

With this patch, I have no error

4

Re: Freebsd can not install some ports of iredmail

Thanks for sharing.

Since it's not an iRedMail issue, and we have to wait for upstream / port maintainer to fix it, our forum topic is closed.