Mail::ClamAV on Intel Mac … Tiger & Leopard

2台のLeopardマシンには、Mail::ClamAVをCPAN経由でも、手動でも導入できなかった。
ふと、思うことが有って、見ている9台のサーバたちを覗いて見ると、PowerPCマシンでは問題なく0.21版が導入されていた。
問題は、Intel Mac(Tiger)とLoepardマシン(1台はIntel Mac、もう1台はPowerPC)だ。
同じエラーが出ていた。

しかぁ〜し。
自宅のIntel Mac Leopard Serverでは、問題なく導入した記憶があるのだ。
ファイルの更新日付を見ると、導入した日付は、2008.3.22だった。

試しに、その時のソースファイルを使って、
make clean
perl Makefile.PL
make

してみると、なんと、エラーが出るではないか。
3月末といえば、ClamAVを0.92から0.93に上げた時期だ。
多分、0.93になって、何らかの不整合がでたのだろう、と、思いたい。

Googleで、Mail::ClamAV maxmailrecをキーワードに検索してみると、それなりにパッチもあるようなのだが、面倒なので、我慢するのだ。
Mail::SpamAssassin、が動いてくれているので、多分、なんとかなる、ばす…

perl Makefile.PL
->
Writing Makefile for Mail::ClamAV

make
->
/usr/local/bin/perl -Mblib -MInline=NOISY,_INSTALL_ -MMail::ClamAV -e1 0.21 blib/arch
Starting Build Prepocess Stage
Finished Build Prepocess Stage

Starting Build Parse Stage
Finished Build Parse Stage

Starting Build Glue 1 Stage
Finished Build Glue 1 Stage

Starting Build Glue 2 Stage
Finished Build Glue 2 Stage

Starting Build Glue 3 Stage
Finished Build Glue 3 Stage

Starting Build Compile Stage
Starting “perl Makefile.PL” Stage
Writing Makefile for Mail::ClamAV
Finished “perl Makefile.PL” Stage

Starting “make” Stage
/usr/local/bin/perl /usr/local/lib/perl5/5.10.0/ExtUtils/xsubpp  -typemap /usr/local/lib/perl5/5.10.0/ExtUtils/typemap   ClamAV.xs > ClamAV.xsc && mv ClamAV.xsc ClamAV.c
cc -c  -I/private/var/root/.cpan/build/Mail-ClamAV-0.21-msCpQC -I/usr/local/clamXav/include -fno-common -DPERL_DARWIN -no-cpp-precomp -arch i686 -arch ppc -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include -O3   -DVERSION=\”0.21\” -DXS_VERSION=\”0.21\”  “-I/usr/local/lib/perl5/5.10.0/darwin-2level/CORE”   ClamAV.c
ClamAV.xs: In function ‘clamav_perl_new’:
ClamAV.xs: In function ‘clamav_perl_new’:
ClamAV.xs:53: error: ‘struct cl_limits’ has no member named ‘maxmailrec’
ClamAV.xs:58: error: ‘struct cl_limits’ has no member named ‘maxratio’
ClamAV.xs:53: error: ‘struct cl_limits’ has no member named ‘maxmailrec’
ClamAV.xs:58: error: ‘struct cl_limits’ has no member named ‘maxratio’
ClamAV.xs: In function ‘clamav_perl_maxmailrec’:
ClamAV.xs:141: error: ‘struct cl_limits’ has no member named ‘maxmailrec’
ClamAV.xs: In function ‘clamav_perl_maxmailrec’:
ClamAV.xs:141: error: ‘struct cl_limits’ has no member named ‘maxmailrec’
ClamAV.xs:143: error: ‘struct cl_limits’ has no member named ‘maxmailrec’
ClamAV.xs:143: error: ‘struct cl_limits’ has no member named ‘maxmailrec’
ClamAV.xs: In function ‘clamav_perl_maxratio’:
ClamAV.xs: In function ‘clamav_perl_maxratio’:
ClamAV.xs:180: error: ‘struct cl_limits’ has no member named ‘maxratio’
ClamAV.xs:180: error: ‘struct cl_limits’ has no member named ‘maxratio’
ClamAV.xs:182: error: ‘struct cl_limits’ has no member named ‘maxratio’
ClamAV.xs:182: error: ‘struct cl_limits’ has no member named ‘maxratio’
ClamAV.xs: In function ‘clamav_perl_constant’:
ClamAV.xs:365: error: ‘CL_SCAN_PHISHING_DOMAINLIST’ undeclared (first use in this function)
ClamAV.xs:365: error: (Each undeclared identifier is reported only once
ClamAV.xs:365: error: for each function it appears in.)
ClamAV.xs: In function ‘clamav_perl_constant’:
ClamAV.xs:365: error: ‘CL_SCAN_PHISHING_DOMAINLIST’ undeclared (first use in this function)
ClamAV.xs:365: error: (Each undeclared identifier is reported only once
ClamAV.xs:365: error: for each function it appears in.)
lipo: can’t open input file: /var/tmp//ccWj2fKm.out (No such file or directory)
make[1]: *** [ClamAV.o] Error 1

A problem was encountered while attempting to compile and install your Inline
C code. The command that failed was:
make

The build directory was:
/var/root/.cpan/build/Mail-ClamAV-0.21-msCpQC/_Inline/build/Mail/ClamAV

To debug the problem, cd to the build directory, and inspect the output files.

at /private/var/root/.cpan/build/Mail-ClamAV-0.21-msCpQC/blib/lib/Mail/ClamAV.pm line 178
BEGIN failed–compilation aborted at /private/var/root/.cpan/build/Mail-ClamAV-0.21-msCpQC/blib/lib/Mail/ClamAV.pm line 556.
Compilation failed in require.
BEGIN failed–compilation aborted.
make: *** [ClamAV.inl] Error 25

Author: Kumecchi

コメントを残す