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.

----

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

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.

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.

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?

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.

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.

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

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.

17

Re: Installation stopped dead at clamAV. Help needed.

ZhangHuangbin wrote:

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

Hi Zhang, I just to inform that beta version didn't disable tests for clamav.

--
libtool: link: rm -f ".libs/clamsubmit.nmI"
libtool: link: (cd .libs && cc -O2 -pipe -DLIBICONV_PLUG -fstack-protector-stron                                                                                        g -fno-strict-aliasing -c -fno-builtin "clamsubmitS.c")
libtool: link: rm -f ".libs/clamsubmitS.c" ".libs/clamsubmit.nm" ".libs/clamsubm                                                                                        it.nmS" ".libs/clamsubmit.nmT" ".libs/clamsubmit.nmI"
libtool: link: cc -g -O2 -Wl,-rpath -Wl,/usr/local/lib -fstack-protector-strong                                                                                         -o .libs/clamsubmit output.o optparser.o getopt.o misc.o cert_util.o clamsubmit.                                                                                        o cert_util_linux.o -Wl,-rpath -Wl,/usr/local/lib -fstack-protector-strong  -L/u                                                                                        sr/local/lib ../libclamav/.libs/libclamav.so -L/usr/lib /usr/local/lib/libltdl.s                                                                                        o /usr/ports/security/clamav/work/clamav-0.102.0/libclamav/.libs/libclammspack.s                                                                                        o -lm -lcurl -lbz2 -lutil -lxml2 -llzma -lssl -lcrypto -lz -ljson-c -lpcre2-8 -l                                                                                        thr -lcharset -Wl,-rpath -Wl,/usr/local/lib
gmake[3]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.102.0/clam                                                                                        submit'
gmake[3]: Entering directory '/usr/ports/security/clamav/work/clamav-0.102.0'
gmake[3]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.102.0'
gmake[2]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.102.0'
gmake[1]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.102.0'
gmake[1]: Entering directory '/usr/ports/security/clamav/work/clamav-0.102.0'
Making check in libltdl
gmake[2]: Entering directory '/usr/ports/security/clamav/work/clamav-0.102.0/lib                                                                                        ltdl'
gmake  check-am
gmake[3]: Entering directory '/usr/ports/security/clamav/work/clamav-0.102.0/lib                                                                                        ltdl'
gmake[3]: Nothing to be done for 'check-am'.
gmake[3]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.102.0/libl                                                                                        tdl'
gmake[2]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.102.0/libl                                                                                        tdl'
Making check in libclamav
gmake[2]: Entering directory '/usr/ports/security/clamav/work/clamav-0.102.0/lib                                                                                        clamav'
gmake  check-recursive
gmake[3]: Entering directory '/usr/ports/security/clamav/work/clamav-0.102.0/lib                                                                                        clamav'
gmake[4]: Entering directory '/usr/ports/security/clamav/work/clamav-0.102.0/lib                                                                                        clamav'
test -f version.h || touch version.h;\
rm -f version.h.tmp;\
REVISION="$(LANG=C git --git-dir ".."/.git describe --always 2>/dev/null || echo                                                                                         "exported")";\
if test "$REVISION" = "exported"; then\
    REVISION="";\
fi;\
if test -n "$REVISION"; then\
        echo "#define REPO_VERSION \"devel-$REVISION\"" >> version.h.tmp;\
else\
        touch version.h.tmp;\
fi
if test -f version.h.static; then\
        cp version.h.static version.h;\
elif ! diff version.h version.h.tmp >/dev/null 2>/dev/null; then\
        cp version.h.tmp version.h;\
fi
gmake[4]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.102.0/libc                                                                                        lamav'
gmake[3]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.102.0/libc                                                                                        lamav'
gmake[2]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.102.0/libc                                                                                        lamav'
Making check in libfreshclam
gmake[2]: Entering directory '/usr/ports/security/clamav/work/clamav-0.102.0/lib                                                                                        freshclam'
gmake[2]: Nothing to be done for 'check'.
gmake[2]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.102.0/libf                                                                                        reshclam'
Making check in clamscan
gmake[2]: Entering directory '/usr/ports/security/clamav/work/clamav-0.102.0/cla                                                                                        mscan'
gmake[2]: Nothing to be done for 'check'.
gmake[2]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.102.0/clam                                                                                        scan'
Making check in clamd
gmake[2]: Entering directory '/usr/ports/security/clamav/work/clamav-0.102.0/cla                                                                                        md'
gmake[2]: Nothing to be done for 'check'.
gmake[2]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.102.0/clam                                                                                        d'
Making check in clamdscan
gmake[2]: Entering directory '/usr/ports/security/clamav/work/clamav-0.102.0/cla                                                                                        mdscan'
gmake[2]: Nothing to be done for 'check'.
gmake[2]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.102.0/clam                                                                                        dscan'
Making check in freshclam
gmake[2]: Entering directory '/usr/ports/security/clamav/work/clamav-0.102.0/fre                                                                                        shclam'
gmake[2]: Nothing to be done for 'check'.
gmake[2]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.102.0/fres                                                                                        hclam'
Making check in sigtool
gmake[2]: Entering directory '/usr/ports/security/clamav/work/clamav-0.102.0/sig                                                                                        tool'
gmake[2]: Nothing to be done for 'check'.
gmake[2]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.102.0/sigt                                                                                        ool'
Making check in clamconf
gmake[2]: Entering directory '/usr/ports/security/clamav/work/clamav-0.102.0/cla                                                                                        mconf'
gmake[2]: Nothing to be done for 'check'.
gmake[2]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.102.0/clam                                                                                        conf'
Making check in database
gmake[2]: Entering directory '/usr/ports/security/clamav/work/clamav-0.102.0/dat                                                                                        abase'
gmake[2]: Nothing to be done for 'check'.
gmake[2]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.102.0/data                                                                                        base'
Making check in docs
gmake[2]: Entering directory '/usr/ports/security/clamav/work/clamav-0.102.0/doc                                                                                        s'
gmake[2]: Nothing to be done for 'check'.
gmake[2]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.102.0/docs                                                                                        '
Making check in etc
gmake[2]: Entering directory '/usr/ports/security/clamav/work/clamav-0.102.0/etc                                                                                        '
gmake[2]: Nothing to be done for 'check'.
gmake[2]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.102.0/etc'
Making check in clamav-milter
gmake[2]: Entering directory '/usr/ports/security/clamav/work/clamav-0.102.0/cla                                                                                        mav-milter'
gmake[2]: Nothing to be done for 'check'.
gmake[2]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.102.0/clam                                                                                        av-milter'
Making check in test
gmake[2]: Entering directory '/usr/ports/security/clamav/work/clamav-0.102.0/tes                                                                                        t'
gmake[2]: Nothing to be done for 'check'.
gmake[2]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.102.0/test                                                                                        '
Making check in clamdtop
gmake[2]: Entering directory '/usr/ports/security/clamav/work/clamav-0.102.0/cla                                                                                        mdtop'
gmake[2]: Nothing to be done for 'check'.
gmake[2]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.102.0/clam                                                                                        dtop'
Making check in clambc
gmake[2]: Entering directory '/usr/ports/security/clamav/work/clamav-0.102.0/cla                                                                                        mbc'
gmake[2]: Nothing to be done for 'check'.
gmake[2]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.102.0/clam                                                                                        bc'
Making check in unit_tests
gmake[2]: Entering directory '/usr/ports/security/clamav/work/clamav-0.102.0/uni                                                                                        t_tests'
gmake  check_clamav check_clamd check_fpu_endian check_freshclam.sh check_sigtoo                                                                                        l.sh check_unit_vg.sh check1_clamscan.sh check2_clamd.sh check3_clamd.sh check4_                                                                                        clamd.sh check5_clamd_vg.sh check6_clamd_vg.sh check7_clamd_hg.sh check8_clamd_h                                                                                        g.sh check9_clamscan_vg.sh
gmake[3]: Entering directory '/usr/ports/security/clamav/work/clamav-0.102.0/uni                                                                                        t_tests'
cp input/clamav.hdb clamav.hdb
cc -DHAVE_CONFIG_H -I. -I.. -I../libclammspack  -I.. -I/usr/local/include -D_THR                                                                                        EAD_SAFE -pthread  -I/usr/local/include -I/usr/local/include/json-c -I/usr/local                                                                                        /include -DSRCDIR=\"/usr/ports/security/clamav/work/clamav-0.102.0/unit_tests\"                                                                                         -DOBJDIR=\"/usr/ports/security/clamav/work/clamav-0.102.0/unit_tests\" -I/usr/lo                                                                                        cal/include -DLIBICONV_PLUG  -I/usr/local/include/libxml2 -I/usr/include -O2 -pi                                                                                        pe  -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing   -c -o check_                                                                                        clamav-check_clamav.o `test -f 'check_clamav.c' || echo './'`check_clamav.c
check_clamav.c:35:25: error: expected ';' after top level declarator
START_TEST(test_cl_free)
                        ^
                        ;
check_clamav.c:43:24: error: expected ';' after top level declarator
START_TEST(test_cl_dup)
                       ^
                       ;
check_clamav.c:51:26: error: expected ';' after top level declarator
START_TEST(test_cl_build)
                         ^
                         ;
check_clamav.c:79:13: error: expected parameter declarator
fail_unless(!strcmp(DATADIR, cl_retdbdir()), "cl_retdbdir");
            ^
/usr/local/include/check.h:453:21: note: expanded from macro 'fail_unless'
#define fail_unless ck_assert_msg
                    ^
check_clamav.c:79:13: error: expected ')'
/usr/local/include/check.h:453:21: note: expanded from macro 'fail_unless'
#define fail_unless ck_assert_msg
                    ^
check_clamav.c:79:1: note: to match this '('
fail_unless(!strcmp(DATADIR, cl_retdbdir()), "cl_retdbdir");
^
/usr/local/include/check.h:453:21: note: expanded from macro 'fail_unless'
#define fail_unless ck_assert_msg
                    ^
/usr/local/include/check.h:519:3: note: expanded from macro 'ck_assert_msg'
  (expr) ? \
  ^
check_clamav.c:79:1: error: expected function body after function declarator
fail_unless(!strcmp(DATADIR, cl_retdbdir()), "cl_retdbdir");
^
/usr/local/include/check.h:453:21: note: expanded from macro 'fail_unless'
#define fail_unless ck_assert_msg
                    ^
/usr/local/include/check.h:519:10: note: expanded from macro 'ck_assert_msg'
  (expr) ? \
         ^
check_clamav.c:97:28: error: expected ';' after top level declarator
START_TEST(test_cl_cvdfree)
                           ^
                           ;
check_clamav.c:121:29: error: expected ';' after top level declarator
START_TEST(test_cl_statfree)
                            ^
                            ;
check_clamav.c:144:30: error: expected ';' after top level declarator
START_TEST(test_cl_retflevel)
                             ^
                             ;
check_clamav.c:148:28: error: expected ';' after top level declarator
START_TEST(test_cl_cvdhead)
                           ^
                           ;
check_clamav.c:157:29: error: expected ';' after top level declarator
START_TEST(test_cl_cvdparse)
                            ^
                            ;
check_clamav.c:384:25: error: expected ';' after top level declarator
START_TEST(test_cl_load)
                        ^
                        ;
check_clamav.c:388:30: error: expected ';' after top level declarator
START_TEST(test_cl_cvdverify)
                             ^
                             ;
check_clamav.c:392:31: error: expected ';' after top level declarator
START_TEST(test_cl_statinidir)
                              ^
                              ;
check_clamav.c:396:31: error: expected ';' after top level declarator
START_TEST(test_cl_statchkdir)
                              ^
                              ;
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:920: check_clamav-check_clamav.o] Error 1
gmake[3]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.102.0/unit                                                                                        _tests'
gmake[2]: *** [Makefile:1422: check-am] Error 2
gmake[2]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.102.0/unit                                                                                        _tests'
gmake[1]: *** [Makefile:854: check-recursive] Error 1
gmake[1]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.102.0'
*** 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.

==

can you check the source pls

thks

18

Re: Installation stopped dead at clamAV. Help needed.

trifelo wrote:

can you check the source pls

Re-packed iRedMail-1.0-beta2, and disabled the tests option for clamav. Could you please try again? smile

19

Re: Installation stopped dead at clamAV. Help needed.

.
.
Time: 60.0s, ETA; 37.7s [========================>               ] 69.08MiB/112.                               
Time: 60.0s, ETA; 37.7s [========================>               ] 69.08MiB/112.                                                                                     
Time: 60.0s, ETA; 37.7s [========================>               ] 69.08MiB/112.                           
Time: 60.0s, ETA; 37.7s [========================>               ] 69.08MiB/112.                                                                                 
Time: 60.0s, ETA; 37.7s [========================>               ] 69.08MiB/112.                         
Time: 60.0s, ETA; 37.7s [========================>               ] 69.08MiB/112.                                                       
Time: 60.0s, ETA; 37.6s [========================>               ] 69.09MiB/112.                                                                                       
Time: 60.0s, ETA; 37.6s [========================>               ] 69.09MiB/112.                                     
Time: 60.0s, ETA; 37.6s [========================>               ] 69.09MiB/112.                                                                                       

Giving up on https://database.clamav.net...
********************************************************************
* URLs of installed web applications:
*
* - Roundcube webmail: https://xxxxxx.####/mail/
* - SOGo groupware: https://xxxxxx.####/SOGo/
* - netdata (monitor): https://xxxxxx.####/netdata/
*
* - Web admin panel (iRedAdmin): https://xxxxxx.####/iredadmin/
*
* You can login to above links with below credential:
*
* - Username: postmaster@#$#^%*&!%*%^.###
* - Password: xxxxxx
*
*
********************************************************************
* Congratulations, mail server setup completed successfully. Please
* read below file for more information:
*
*   - /usr/home/######/@@@@@@@@/iRedMail-1.0-beta2/iRedMail.tips
*
* And it's sent to your mail account postmaster@sidanaonline.com.
*
********************* WARNING **************************************
*
* Please reboot your system to enable all mail services.
*
********************************************************************



Hi Zhang,
finally completed successfully

Thank you so much Zhang.


# tag topic closed