Solaris 10 Mail:ClamAV compile trouble

Randal, Phil prandal at herefordshire.gov.uk
Tue Nov 4 15:05:02 GMT 2008


Hve you applied this patch to Mail::ClamAV?

http://rt.cpan.org/Public/Bug/Display.html?id=39301

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

Cheers,

Phil

--
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 herefordshire.gov.uk

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 lists.mailscanner.info [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of Nikolaos Pavlidis
Sent: 04 November 2008 14:55
To: mailscanner at lists.mailscanner.info
Subject: Solaris 10 Mail:ClamAV compile trouble

Dear All,


I am trying to install the ClamAV + SA package following the directions
from: http://wiki.mailscanner.info/doku.php?id=documentation:clamav_sa

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/Config.pm to remove temporarily the -KPIC and -xO3 flags (-xdepend was nowhere to be found
btw)

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
make clean
change $PATH
perl Makefile.PL
make

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

Nik

The setup:
Solaris 10
Sun Studio installed

PATHs used:

1.
PATH=/usr/sbin:/usr/bin:/usr/local/bin:/usr/sfw/bin:/usr/dt/bin:/usr/openwin/bin:/usr/ccs/bin:/usr/ucb
LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/usr/sfw/lib:/opt/SUNWspro/lib:/usr/local/BerkeleyDB/lib

2.
PATH=/opt/SUNWspro/bin:/usr/ccs/bin:/usr/sbin:/usr/bin:/usr/dt/bin:/usr/openwin/bin:/usr/local/bin:/usr/sfw/bin:/usr/ucb
LD_LIBRARY_PATH=/opt/SUNWspro/lib:/usr/ccs/lib:/usr/lib:/usr/local/lib:/usr/sfw/lib:/usr/local/BerkeleyDB/lib


1.
  Starting "make" Stage
make[1]: Entering directory
`/sysnet/build/cpan/build/Mail-ClamAV-0.22/_Inline/build/Mail/ClamAV'
/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 ClamAV.bs rm -f blib/arch/auto/Mail/ClamAV/ClamAV.so
LD_RUN_PATH="/usr/lib:/usr/local/lib" cc  -G ClamAV.o  -o
blib/arch/auto/Mail/ClamAV/ClamAV.so   -L/usr/local/lib -lz -lbz2
-lclamav
cc: ClamAV.o: No such file or directory
make[1]: *** [blib/arch/auto/Mail/ClamAV/ClamAV.so] Error 1
make[1]: Leaving directory
`/sysnet/build/cpan/build/Mail-ClamAV-0.22/_Inline/build/Mail/ClamAV'

2.
  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:
cl_loaddbdir
"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
directory
/sysnet/build/cpan/build/Mail-ClamAV-0.22/_Inline/build/Mail/ClamAV


--
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner

Before posting, read http://wiki.mailscanner.info/posting

Support MailScanner development - buy the book off the website! 


More information about the MailScanner mailing list