Solaris 10 Mail:ClamAV compile trouble
Nikolaos Pavlidis
Nikolaos.Pavlidis at beds.ac.uk
Tue Nov 4 14:54:30 GMT 2008
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
More information about the MailScanner
mailing list