LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 09-17-2008, 09:49 AM   #1
keopp
LQ Newbie
 
Registered: Feb 2007
Posts: 9

Rep: Reputation: 0
amavis on slack 12.1


Hello all,

There are 3 days since I'm trying hard to make runnig amavisd-new-2.6.1 onto a slack 12.1 machine.
Is here someone please who did succeed this?
Thanks.
 
Old 09-19-2008, 12:31 AM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 57
How about let's start with you explaining as much as you can about what you've accomplished, and specifically what isn't working.
 
Old 09-19-2008, 07:19 AM   #3
keopp
LQ Newbie
 
Registered: Feb 2007
Posts: 9

Original Poster
Rep: Reputation: 0
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.
 
Old 09-19-2008, 12:39 PM   #4
keopp
LQ Newbie
 
Registered: Feb 2007
Posts: 9

Original Poster
Rep: Reputation: 0
Thumbs up Problem solved

Very simple. It's a version problem.

Mail-ClamAv-0.2x or Mail::ClamAV can't be compiled/installed over versions greater than clamav-0.91.2...(found on a post in Gmane)

Piece of kake.....
 
Old 09-19-2008, 03:01 PM   #5
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 57
I don't use Mail::ClamA*. Instead, I configure amavis to call the clamd daemon. You don't need Mail::ClamA*

Get yourself the latest version of clamav - .91 is pretty ancient.
 
Old 09-19-2008, 03:27 PM   #6
keopp
LQ Newbie
 
Registered: Feb 2007
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Mr. C. View Post
I don't use Mail::ClamA*. Instead, I configure amavis to call the clamd daemon. You don't need Mail::ClamA*

Get yourself the latest version of clamav - .91 is pretty ancient.
Actually clamav is 0.94. Please can you give me a hint how to call clamd from amavis?

I also find out today about clamassassin and I'd like to try it....

Thanks

Last edited by keopp; 09-19-2008 at 03:30 PM.
 
Old 09-19-2008, 03:35 PM   #7
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 57
From my amavisd-conf file:
Code:
@av_scanners = (
# ### http://www.clamav.net/
  ['ClamAV-clamd',
    \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd.socket"],
    qr/\bOK$/, qr/\bFOUND$/,
    qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
# # NOTE: run clamd under the same user as amavisd, or run it under its own
# #   uid such as clamav, add user clamav to the amavis group, and then add
# #   AllowSupplementaryGroups to clamd.conf;
# # NOTE: match socket name (LocalSocket) in clamav.conf to the socket name in
# #   this entry; when running chrooted one may prefer socket "$MYHOME/clamd".
See also:
http://www200.pair.com/mecham/spam/c...avisd-new.html
 
Old 09-19-2008, 03:46 PM   #8
keopp
LQ Newbie
 
Registered: Feb 2007
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
question about amavis combilli Linux - Software 2 10-27-2006 06:49 AM
amavis not using new SA rules paintcheck200 Linux - Networking 0 08-15-2005 02:17 PM
amavis problem egyptian Linux - Networking 0 12-29-2004 04:10 AM
amavis with postfix egyptian Linux - Security 1 10-14-2004 10:08 AM
fetchmail -> procmail -> amavis can it be done? ChaosX2 Linux - Networking 2 01-11-2004 03:56 AM


All times are GMT -5. The time now is 09:22 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration