Solaris 10 Mail:ClamAV compile trouble

Randal, Phil prandal at
Tue Nov 4 15:05:02 GMT 2008

Hve you applied this patch to Mail::ClamAV?

Someone needs to prod Scott Beck to release Mail::ClamAV 0.23



Phil Randal | Networks Engineer
Herefordshire Council | Deputy Chief Executive's Office | I.C.T. Services Division
Thorn Office Centre, Rotherwas, Hereford, HR2 6JT
Tel: 01432 260160
email: prandal at

Any opinion expressed in this e-mail or any attached files are those of the individual and not necessarily those of Herefordshire Council.

This e-mail and any attached files are confidential and intended solely for the use of the addressee. This communication may contain material protected by law from being passed on. If you are not the intended recipient and have received this e-mail in error, you are advised that any use, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited. If you have received this e-mail in error please contact the sender immediately and destroy all copies of it.

-----Original Message-----
From: mailscanner-bounces at [mailto:mailscanner-bounces at] On Behalf Of Nikolaos Pavlidis
Sent: 04 November 2008 14:55
To: mailscanner at
Subject: Solaris 10 Mail:ClamAV compile trouble

Dear All,

I am trying to install the ClamAV + SA package following the directions

I installed clamav successfully and all the perl modules until I reached Mail::ClamAV

I edited /usr/perl5/5.8.4/lib/i86pc-solaris-64int/ to remove temporarily the -KPIC and -xO3 flags (-xdepend was nowhere to be found

I used both paths and got respectively the below errors, any help will be much appreciated. the command procedure I followed was:
perl Makefile.PL
make clean
change $PATH
perl Makefile.PL

Any help will be much appreciated.
Thank you in advance.


The setup:
Solaris 10
Sun Studio installed

PATHs used:



  Starting "make" Stage
make[1]: Entering directory
/usr/perl5/5.8.4/bin/perl /usr/perl5/5.8.4/lib/ExtUtils/xsubpp
-typemap /usr/perl5/5.8.4/lib/ExtUtils/typemap   ClamAV.xs > ClamAV.xsc
&& mv ClamAV.xsc ClamAV.c
cc -c  -I/sysnet/build/cpan/build/Mail-ClamAV-0.22 -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -xspace -xildoff -DVERSION=\"0.22\" -DXS_VERSION=\"0.22\"
"-I/usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE"   ClamAV.c
cc: language ildoff not recognized
cc: ClamAV.c: linker input file unused because linking not done Running Mkbootstrap for Mail::ClamAV () chmod 644 rm -f blib/arch/auto/Mail/ClamAV/
LD_RUN_PATH="/usr/lib:/usr/local/lib" cc  -G ClamAV.o  -o
blib/arch/auto/Mail/ClamAV/   -L/usr/local/lib -lz -lbz2
cc: ClamAV.o: No such file or directory
make[1]: *** [blib/arch/auto/Mail/ClamAV/] Error 1
make[1]: Leaving directory

  Starting "make" Stage
/usr/perl5/5.8.4/bin/perl /usr/perl5/5.8.4/lib/ExtUtils/xsubpp
-typemap /usr/perl5/5.8.4/lib/ExtUtils/typemap  ClamAV.xs > ClamAV.xsc && mv ClamAV.xsc ClamAV.c cc -c  -I/sysnet/build/cpan/build/Mail-ClamAV-0.22 -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -xspace -xildoff -DVERSION=\"0.22\"  -DXS_VERSION=\"0.22\"
"-I/usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE"   ClamAV.c
"ClamAV.xs", line 65: warning: implicit function declaration:
"ClamAV.xs", line 68: warning: implicit function declaration: cl_loaddb "ClamAV.xs", line 308: undefined symbol: CL_EFSYNC "ClamAV.xs", line 321: undefined symbol: CL_ELOCKDB "ClamAV.c", line 450: warning: statement not reached "ClamAV.c", line 633: warning: statement not reached "ClamAV.c", line 663: warning: statement not reached "ClamAV.c", line 693: warning: statement not reached
cc: acomp failed for ClamAV.c
*** Error code 2
make: Fatal error: Command failed for target `ClamAV.o'
Current working

MailScanner mailing list
mailscanner at

Before posting, read

Support MailScanner development - buy the book off the website! 

More information about the MailScanner mailing list