Solaris 10 Mail:ClamAV compile trouble

Martin.Hepworth martinh at solidstatelogic.com
Tue Nov 4 15:00:36 GMT 2008


Nik

I'd use clamd rather than the module are there's no wait for Mail::ClamAV to be updated to support the latest version of clamav.



--
Martin Hepworth
Snr Systems Administrator
Solid State Logic
Tel: +44 (0)1865 842300

> -----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/bi
> n:/usr/openwin/bin:/usr/ccs/bin:/usr/ucb
> LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/usr/sfw/lib:/opt/SUNW
> spro/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/l
> ocal/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!
>




**********************************************************************
Confidentiality : This e-mail and any attachments are intended for the 
addressee only and may be confidential. If they come to you in error 
you must take no action based on them, nor must you copy or show them 
to anyone. Please advise the sender by replying to this e-mail 
immediately and then delete the original from your computer.
Opinion : Any opinions expressed in this e-mail are entirely those of 
the author and unless specifically stated to the contrary, are not 
necessarily those of the author's employer.
Security Warning : Internet e-mail is not necessarily a secure 
communications medium and can be subject to data corruption. We advise 
that you consider this fact when e-mailing us. 
Viruses : We have taken steps to ensure that this e-mail and any 
attachments are free from known viruses but in keeping with good 
computing practice, you should ensure that they are virus free.

Red Lion 49 Ltd T/A Solid State Logic
Registered as a limited company in England and Wales 
(Company No:5362730)
Registered Office: 25 Spring Hill Road, Begbroke, Oxford OX5 1RU, 
United Kingdom
**********************************************************************



More information about the MailScanner mailing list