1

Topic: Installation stopped dead at clamAV. Help needed.

==== Required information ====
- iRedMail version (check /etc/iredmail-release): iRedMail-0.9.7
- Linux/BSD distribution name and version: FreeBSD 11.1
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Web server (Apache or Nginx): nginx
- Manage mail accounts with iRedAdmin-Pro? no, but will definitely consider if it works
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

I'm trying to install iRedMail on FreeBSD. I followed the steps as outlined in [http://www.iredmail.org/docs/install.ir … eebsd.html]. It ran for about 3 hours. Then, it stopped dead at this:

=================================

libtool: link: rm -f ".libs/check_fpu_endian.nmI"
libtool: link: (cd .libs && cc -O2 -pipe -DLIBICONV_PLUG -fstack-protector -fno-strict-aliasing -c -fno-builtin -fno-rtti -fno-exceptions "check_fpu_endianS.c")
libtool: link: rm -f ".libs/check_fpu_endianS.c" ".libs/check_fpu_endian.nm" ".libs/check_fpu_endian.nmS" ".libs/check_fpu_endian.nmT" ".libs/check_fpu_endian.nmI"
libtool: link: cc -O2 -pipe -DLIBICONV_PLUG -fstack-protector -fno-strict-aliasing -fstack-protector -o .libs/check_fpu_endian check_fpu_endian-check_fpu_endian.o  -L/usr/local/lib ../libclamav/.libs/libclamav.so -L/usr/lib /usr/local/lib/libltdl.so -lxml2 -llzma -lbz2 -liconv -lutil -lssl -lcrypto -lz -ljson-c -lpcre -lthr -lm -Wl,-rpath -Wl,/usr/local/lib
gmake[3]: Nothing to be done for 'check_freshclam.sh'.
gmake[3]: Nothing to be done for 'check_sigtool.sh'.
cat ../unit_tests/.split/split.clam-phish-exeaa ../unit_tests/.split/split.clam-phish-exeab > clam-phish-exe
gmake[3]: Nothing to be done for 'check1_clamscan.sh'.
gmake[3]: Nothing to be done for 'check2_clamd.sh'.
gmake[3]: Nothing to be done for 'check3_clamd.sh'.
gmake[3]: Nothing to be done for 'check4_clamd.sh'.
gmake[3]: Nothing to be done for 'check5_clamd_vg.sh'.
gmake[3]: Nothing to be done for 'check6_clamd_vg.sh'.
gmake[3]: Nothing to be done for 'check7_clamd_hg.sh'.
gmake[3]: Nothing to be done for 'check8_clamd_hg.sh'.
gmake[3]: Nothing to be done for 'check9_clamscan_vg.sh'.
gmake[3]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.99.2/unit_tests'
gmake  check-TESTS
gmake[3]: Entering directory '/usr/ports/security/clamav/work/clamav-0.99.2/unit_tests'
gmake[4]: Entering directory '/usr/ports/security/clamav/work/clamav-0.99.2/unit_tests'
FAIL: check_clamav
PASS: check_freshclam.sh
PASS: check_sigtool.sh
SKIP: check_unit_vg.sh
PASS: check1_clamscan.sh
PASS: check2_clamd.sh
PASS: check3_clamd.sh
PASS: check4_clamd.sh
SKIP: check5_clamd_vg.sh
SKIP: check6_clamd_vg.sh
SKIP: check7_clamd_hg.sh
SKIP: check8_clamd_hg.sh
SKIP: check9_clamscan_vg.sh
gmake[5]: Entering directory '/usr/ports/security/clamav/work/clamav-0.99.2/unit_tests'
gmake[5]: Nothing to be done for 'all'.
gmake[5]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.99.2/unit_tests'
============================================================================
Testsuite summary for ClamAV 0.99.2
============================================================================
# TOTAL: 13
# PASS:  6
# SKIP:  6
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See unit_tests/test-suite.log
Please report to http://bugs.clamav.net/
============================================================================
gmake[4]: *** [Makefile:1070: test-suite.log] Error 1
gmake[4]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.99.2/unit_tests'
gmake[3]: *** [Makefile:1178: check-TESTS] Error 2
gmake[3]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.99.2/unit_tests'
gmake[2]: *** [Makefile:1333: check-am] Error 2
gmake[2]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.99.2/unit_tests'
gmake[1]: *** [Makefile:738: check-recursive] Error 1
gmake[1]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.99.2'
*** Error code 2

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

===================================

It seems that there is an error in clamAV directory. Why?

What can I do to resolve this problem and try again?

Thanks!

Kevin.

2

Re: Installation stopped dead at clamAV. Help needed.

It's a ports tree issue, not iRedMail.
Bug report in FreeBSD bugzilla: https://bugs.freebsd.org/bugzilla/show_ … ?id=221513

I'm afraid that you have to wait for the maintainer to fix it.

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

3

Re: Installation stopped dead at clamAV. Help needed.

ZhangHuangbin wrote:

It's a ports tree issue, not iRedMail.
Bug report in FreeBSD bugzilla: https://bugs.freebsd.org/bugzilla/show_ … ?id=221513

I'm afraid that you have to wait for the maintainer to fix it.

Thanks for your reply! Well, since I'm only trying iRedMail for now I'll wait. However, in a real deployment situation this would be a headacle if we need to hurriedly re-deploy to a new server. Do you guys have any solution for this? Can we install it from pkg, instead of compiling it from the ports as what we are doing now?

(Specifically, we must run it on FreeBSD.)

Thanks!

Kevin.

4

Re: Installation stopped dead at clamAV. Help needed.

I believe you know the ports tree changes everyday. As a solution vendor, we cannot guarantee you the ports tree is stable while deploying iRedMail on FreeBSD.

Not all FreeBSD binary packages are built with required compile options (e.g. MySQL/PostgreSQL/LDAP support), that's why we have to use ports tree and not binary packages.

This is weakness of FreeBSD ports tree, and why i love OpenBSD ports tree so much - the purpose of ports tree is generating usable binary packages, and everyone just use binary packages.

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

5 (edited by ikevin 2017-09-07 22:39:57)

Re: Installation stopped dead at clamAV. Help needed.

So, is it possible to build without clamAV (for FreeBSD)?

6

Re: Installation stopped dead at clamAV. Help needed.

*) iRedMail installer is hard-coded to install clamav.
*) FreeBSD port maintainer still didn't fix it?

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

7

Re: Installation stopped dead at clamAV. Help needed.

I built a new iRedMail server on FreeBSD with the latest ports tree, port 'security/clamav' has been installed successfully.

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

8

Re: Installation stopped dead at clamAV. Help needed.

ZhangHuangbin wrote:

I built a new iRedMail server on FreeBSD with the latest ports tree, port 'security/clamav' has been installed successfully.

I tried again, and it failed with the same error as previously.

the clamav port has not been updated:
https://bugs.freebsd.org/bugzilla/show_ … ?id=221513
https://svnweb.freebsd.org/ports/head/security/clamav/

How did you get it installed?

9

Re: Installation stopped dead at clamAV. Help needed.

Strange. I just upgrade ports tree with 'portsnap fetch update', then install iRedMail. No error at all.

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

10

Re: Installation stopped dead at clamAV. Help needed.

ZhangHuangbin wrote:

Strange. I just upgrade ports tree with 'portsnap fetch update', then install iRedMail. No error at all.

I did "portsnap fetch extract update" as well. Did you do anything else? Or your system isn't a fresh install and it contained an older version of clamav?

11 (edited by ikevin 2017-09-11 22:58:00)

Re: Installation stopped dead at clamAV. Help needed.

ikevin wrote:
ZhangHuangbin wrote:

Strange. I just upgrade ports tree with 'portsnap fetch update', then install iRedMail. No error at all.

I did "portsnap fetch extract update" as well. Did you do anything else? Or your system isn't a fresh install and it contained an older version of clamav?

I'm installing it inside a jail. And I did "portsnap fetch extract update" inside the jail. And the jail had been freshedly created.

Did you look at the 2 links I posted:
https://bugs.freebsd.org/bugzilla/show_ … ?id=221513
https://svnweb.freebsd.org/ports/head/security/clamav/

There is no indication the bug is fixed. The last update was 3 weeks ago.

So, I don't understand how you succeeded.

Are you using FreeBSD current (12). I'm using stable (11.1).

12

Re: Installation stopped dead at clamAV. Help needed.

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.9
- Linux/BSD distribution name and version:  FreeBSD 11.3 & FreeBSD 12.0
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi Zhang, i have the same problem with ikevin.
with this error.

===

.
.
check_clamav.c:400:31: error: expected ';' after top level declarator
START_TEST(test_cl_settempdir)
                              ^
                              ;
check_clamav.c:404:29: error: expected ';' after top level declarator
START_TEST(test_cl_strerror)
                            ^
                            ;
17 errors generated.
gmake[3]: *** [Makefile:872: check_clamav-check_clamav.o] Error 1
gmake[3]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.101.4/unit_tests'
gmake[2]: *** [Makefile:1371: check-am] Error 2
gmake[2]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.101.4/unit_tests'
gmake[1]: *** [Makefile:817: check-recursive] Error 1
gmake[1]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.101.4'
*** Error code 2

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

===

Need help How to fix this problem.

thanks


trifelo

13

Re: Installation stopped dead at clamAV. Help needed.

hi @trifelo,

Please try the latest iRedMail-1.0-beta2, it disables tests for clamav package and it works.
https://www.iredmail.org/download.html

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

14

Re: Installation stopped dead at clamAV. Help needed.

Hi Zhang,
Thanks for reply,
after rerun with iRedMail-1.0-beta2, i have this error

.
.
[ INFO ] Fetching all distfiles for port: lang/php73
===> Fetching all distfiles for php73-7.3.11 and dependencies

===>  php73-7.3.11 conflicts with installed package(s):
      php71-7.1.33
      php71-bz2-7.1.33
      php71-ctype-7.1.33
      php71-dom-7.1.33
      php71-gettext-7.1.33
      php71-hash-7.1.33
      php71-iconv-7.1.33
      php71-imap-7.1.33
      php71-mbstring-7.1.33
      php71-mcrypt-7.1.33
      php71-openssl-7.1.33
      php71-pgsql-7.1.33
      php71-pspell-7.1.33
      php71-session-7.1.33
      php71-zip-7.1.33
      php71-zlib-7.1.33

      They install files into the same place.
      You may want to stop build with Ctrl + C.
===>   php73-7.3.11 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by php73-7.3.11 for building
===> Fetching all distfiles required by pkg-1.12.0 for building
===>   autoconf-2.69_3 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by autoconf-2.69_3 for building
===>   m4-1.4.18_1,1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by m4-1.4.18_1,1 for building
===>   texinfo-6.7_1,1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by texinfo-6.7_1,1 for building
===>   help2man-1.47.11 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by help2man-1.47.11 for building
===>   p5-Locale-gettext-1.07 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by p5-Locale-gettext-1.07 for building
===>   gettext-tools-0.20.1_1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by gettext-tools-0.20.1_1 for building
===>   libtextstyle-0.20.1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by libtextstyle-0.20.1 for building
===>   libiconv-1.14_11 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by libiconv-1.14_11 for building
===>   indexinfo-0.3.1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by indexinfo-0.3.1 for building
===>   gettext-runtime-0.20.1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by gettext-runtime-0.20.1 for building
===>   perl5-5.30.0 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by perl5-5.30.0 for building
===>   gmake-4.2.1_3 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by gmake-4.2.1_3 for building
===>   p5-Locale-libintl-1.31 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by p5-Locale-libintl-1.31 for building
===>   p5-Text-Unidecode-1.30 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by p5-Text-Unidecode-1.30 for building
===>   p5-Unicode-EastAsianWidth-12.0 depends on file: /usr/local/sbin/pkg - fou                                                         nd
===> Fetching all distfiles required by p5-Unicode-EastAsianWidth-12.0 for build                                                         ing
===>   autoconf-wrapper-20131203 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by autoconf-wrapper-20131203 for building
===>   automake-1.16.1_2 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by automake-1.16.1_2 for building
===>   pcre2-10.33 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by pcre2-10.33 for building
===>   pkgconf-1.6.3,1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by pkgconf-1.6.3,1 for building
===>   kyua-0.13_4,3 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by kyua-0.13_4,3 for building
===>   atf-0.21 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by atf-0.21 for building
===>   lutok-0.4_7 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by lutok-0.4_7 for building
===>   lua52-5.2.4 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by lua52-5.2.4 for building
===>   libedit-3.1.20190324,1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by libedit-3.1.20190324,1 for building
===>   sqlite3-3.30.1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by sqlite3-3.30.1 for building
===>   readline-8.0.0 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by readline-8.0.0 for building
===>   libtool-2.4.6_1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by libtool-2.4.6_1 for building
===>   libargon2-20190702 depends on file: /usr/local/sbin/pkg - found
=> P-H-C-phc-winner-argon2-20190702_GH0.tar.gz doesn't seem to exist in /usr/por                                                         ts/distfiles/.
=> Attempting to fetch https://codeload.github.com/P-H-C/phc-w … gon2/tar.g                                                         z/20190702?dummy=/P-H-C-phc-winner-argon2-20190702_GH0.tar.gz
fetch: https://codeload.github.com/P-H-C/phc-w … 0702?dummy                                                         =/P-H-C-phc-winner-argon2-20190702_GH0.tar.gz: size unknown
fetch: https://codeload.github.com/P-H-C/phc-w … 0702?dummy                                                         =/P-H-C-phc-winner-argon2-20190702_GH0.tar.gz: size of remote file is not known
P-H-C-phc-winner-argon2-20190702_GH0.tar.gz           1470 kB  473 kBps    03s
===> Fetching all distfiles required by libargon2-20190702 for building
===>   libxml2-2.9.9 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by libxml2-2.9.9 for building
[ INFO ] Fetching all distfiles for port: mail/php73-imap
===> Fetching all distfiles for php73-imap-7.3.11 and dependencies
===>  php73-imap-7.3.11 cannot be installed: doesn't work with lang/php71
port (doesn't support PHP 7.1 7.2).
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/mail/php73-imap
*** Error code 1

Stop.
make: stopped in /usr/ports/mail/php73-imap
<< ERROR >> Tarballs were not downloaded correctly, please fix it manually and t                                                         hen re-execute iRedMail.sh.

===

How to remove older version that have been installed before execute with a new one?

thks Zhang

15

Re: Installation stopped dead at clamAV. Help needed.

I've done installed from the beginning, reinstall freeBSD 12.0 and then use the iRedMail-1.0-beta2 source.
at the end have an error..
.
.
=> Attempting to fetch http://superb-dca2.dl.sourceforge.net/p … ibwbxml/li                                                                                        bwbxml/0.11.6/libwbxml-0.11.6.tar.bz2
fetch: http://superb-dca2.dl.sourceforge.net/p … /0.11.6/li                                                                                        bwbxml-0.11.6.tar.bz2: No address record
=> Attempting to fetch http://superb-sea2.dl.sourceforge.net/p … ibwbxml/li                                                                                        bwbxml/0.11.6/libwbxml-0.11.6.tar.bz2
fetch: http://superb-sea2.dl.sourceforge.net/p … /0.11.6/li                                                                                        bwbxml-0.11.6.tar.bz2: No address record
=> Attempting to fetch http://ufpr.dl.sourceforge.net/project/ … /libwbxml/                                                                                        0.11.6/libwbxml-0.11.6.tar.bz2
fetch: http://ufpr.dl.sourceforge.net/project/ … /libwbxml-                                                                                        0.11.6.tar.bz2: No address record
=> Attempting to fetch http://vorboss.dl.sourceforge.net/proje … xml/libwbx                                                                                        ml/0.11.6/libwbxml-0.11.6.tar.bz2
fetch: http://vorboss.dl.sourceforge.net/proje … 1.6/libwbx                                                                                        ml-0.11.6.tar.bz2: No address record
=> Attempting to fetch http://distcache.FreeBSD.org/ports-dist … bwbxml-0.1                                                                                        1.6.tar.bz2
fetch: http://distcache.FreeBSD.org/ports-dist … 6.tar.bz2: No                                                                                         address record
=> Couldn't fetch it - please try to retrieve this
=> port manually into /usr/ports/distfiles/ and try again.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/textproc/wbxml2
*** Error code 1

Stop.
make: stopped in /usr/ports/www/sogo4
<< ERROR >> Tarballs were not downloaded correctly, please fix it manually and t                                                                                        hen re-execute iRedMail.sh.

==

i'll try with uncheck sogo and will inform the result soon.

regards
trifelo

16

Re: Installation stopped dead at clamAV. Help needed.

It's a mirror/download issue. You can try to download "libwbxml-0.11.6.tar.bz2" from internet (get some help from Google to find a working download mirror), then copy to /usr/ports/distfiles/ and re-run iRedMail installer.

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee