Ok, with pleasure.
Let's start from scratch:
My distro is Slack 12.1. Mail service perfectly working with Postfix(postfix-2.5.1-i486-1kjz.tgz), SqlGrey(sqlgrey-1.6.8.tar.bz2), Dovecot(dovecot-1.0.13-i486-1kjz.tgz). Also installed Perl, Php, Mysql and everything else in libs and devel, but without X and all other graphic applications.
Tryeing to make working Amavis with at least ClamAV for the mailserver.
Installing ClamAV(clamav-0.94.tar.gz)
- Create user & group clamav
- Begin ClamAv instalation from source with ./configure --prefix=/usr --sysconfdir=/etc --enable-check
- after <make check> I get:
.........
/usr/lib/gcc/i486-slackware-linux/4.2.3/../../../../i486-slackware-linux/bin/ld: cannot find -lcheck
collect2: ld returned 1 exit status
make[2]: *** [check_clamav] Error 1
make[2]: Leaving directory `/usr/src/clamav-0.94/unit_tests'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/usr/src/clamav-0.94/unit_tests'
make: *** [check-recursive] Error 1
- after <make install> and mkdir, chown, etc.., freshclam and clamd are working properly, tested.
Installing Amavis(amavisd-new-2.6.1.tar.gz)
- all prerequisites Perl modules and external programs installed ok
A. When installing Mail::ClamAV through CPAN I get the following error:
.......
Starting Build Compile Stage
Starting "perl Makefile.PL" Stage
Writing Makefile for Mail::ClamAV
Finished "perl Makefile.PL" Stage
Starting "make" Stage
make[1]: Entering directory `/root/.cpan/build/Mail-ClamAV-0.22/_Inline/build/Mail/ClamAV'
/usr/bin/perl5.8.8 /usr/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.8/ExtUtils/typemap ClamAV.xs >
ClamAV.xsc && mv ClamAV.xsc ClamAV.c
cc -c -I/root/.cpan/build/Mail-ClamAV-0.22 -I/usr/include -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-O2 -march=i486 -mtune=i686 -DVERSION=\"0.22\" -DXS_VERSION=\"0.22\" -fPIC
"-I/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE" ClamAV.c
ClamAV.xs: In function 'clamav_perl_constant':
ClamAV.xs:308: error: 'CL_EFSYNC' undeclared (first use in this function)
ClamAV.xs:308: error: (Each undeclared identifier is reported only once
ClamAV.xs:308: error: for each function it appears in.)
ClamAV.xs:321: error: 'CL_ELOCKDB' undeclared (first use in this function)
make[1]: *** [ClamAV.o] Error 1
make[1]: Leaving directory `/root/.cpan/build/Mail-ClamAV-0.22/_Inline/build/Mail/ClamAV'
A problem was encountered while attempting to compile and install your Inline
C code. The command that failed was:
make
The build directory was:
/root/.cpan/build/Mail-ClamAV-0.22/_Inline/build/Mail/ClamAV
To debug the problem, cd to the build directory, and inspect the output files.
at /root/.cpan/build/Mail-ClamAV-0.22/blib/lib/Mail/ClamAV.pm line 177
BEGIN failed--compilation aborted at /root/.cpan/build/Mail-ClamAV-0.22/blib/lib/Mail/ClamAV.pm line 538.
Compilation failed in require.
BEGIN failed--compilation aborted.
make: *** [ClamAV.inl] Error 25
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible
- when manually installing
http://www.cpan.org/modules/by-modul...AV-0.22.tar.gz, the error is:
........
Starting "make" Stage
make[1]: Entering directory `/usr/src/Mail-ClamAV-0.22/_Inline/build/Mail/ClamAV'
/usr/bin/perl5.8.8 /usr/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.8/ExtUtils/typemap ClamAV.xs > ClamAV.xsc && mv ClamAV.xsc ClamAV.c
cc -c -I/usr/src/Mail-ClamAV-0.22 -I/usr/include -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -march=i486 -mtune=i686 -DVERSION=\"0.22\" -DXS_VERSION=\"0.22\" -fPIC "-I/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE" ClamAV.c
ClamAV.xs: In function 'clamav_perl_constant':
ClamAV.xs:308: error: 'CL_EFSYNC' undeclared (first use in this function)
ClamAV.xs:308: error: (Each undeclared identifier is reported only once
ClamAV.xs:308: error: for each function it appears in.)
ClamAV.xs:321: error: 'CL_ELOCKDB' undeclared (first use in this function)
make[1]: *** [ClamAV.o] Error 1
make[1]: Leaving directory `/usr/src/Mail-ClamAV-0.22/_Inline/build/Mail/ClamAV'
A problem was encountered while attempting to compile and install your Inline
C code. The command that failed was:
make
The build directory was:
/usr/src/Mail-ClamAV-0.22/_Inline/build/Mail/ClamAV
To debug the problem, cd to the build directory, and inspect the output files.
at /usr/src/Mail-ClamAV-0.22/blib/lib/Mail/ClamAV.pm line 177
BEGIN failed--compilation aborted at /usr/src/Mail-ClamAV-0.22/blib/lib/Mail/ClamAV.pm line 538.
Compilation failed in require.
BEGIN failed--compilation aborted.
make: *** [ClamAV.inl] Error 25
Now this is where i stopped after searcing G without finding relevant solutions.
Help will be very appreciate.