приветствую, многоликий all
столкнулся тут с такой непонятной ситуацией - непонятно, работает ли спамасасин с компилироваными правилами или нет.
делаю так:
tst-srv-01# sa-compile
[21268] info: generic: base extraction starting. this can take a while...
[21268] info: generic: extracting from rules of type body_0
100% [=============================================================================] 3075.50 rules/sec 00m00s DONE
100% [=============================================================================] 114.60 bases/sec 00m20s DONE
[21268] info: body_0: 1231 base strings extracted in 22 seconds
[21268] info: rules: meta test COMBO_IMAGEONLY1 has dependency 'MIME_HTML_ONLY_MULTI' with a zero score
cd /tmp/.spamassassin21268GGS301tmp
cd Mail-SpamAssassin-CompiledRegexps-body_0
Wide character in print at /usr/local/bin/sa-compile line 382, <$fh> line 612.
Wide character in print at /usr/local/bin/sa-compile line 382, <$fh> line 630.
Wide character in print at /usr/local/bin/sa-compile line 382, <$fh> line 631.
Wide character in print at /usr/local/bin/sa-compile line 382, <$fh> line 632.
Wide character in print at /usr/local/bin/sa-compile line 382, <$fh> line 633.
Wide character in print at /usr/local/bin/sa-compile line 382, <$fh> line 634.
re2c -i -b -o scanner1.c scanner1.re
re2c -i -b -o scanner2.c scanner2.re
re2c -i -b -o scanner3.c scanner3.re
re2c -i -b -o scanner4.c scanner4.re
re2c -i -b -o scanner5.c scanner5.re
re2c -i -b -o scanner6.c scanner6.re
re2c -i -b -o scanner7.c scanner7.re
/usr/local/bin/perl5.8.9 Makefile.PL PREFIX=/tmp/.spamassassin21268GGS301tmp/ignored INSTALLSITEARCH=/var/db/spamassassin/compiled/5.008/3.002005
Writing Makefile for Mail::SpamAssassin::CompiledRegexps::body_0
make
cp body_0.pm blib/lib/Mail/SpamAssassin/CompiledRegexps/body_0.pm
/usr/local/bin/perl5.8.9 /usr/local/lib/perl5/site_perl/5.8.9/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.8.9/ExtUtils/typemap body_0.xs > body_0.xsc && mv body_0.xsc body_0.c
cc -c -DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.9/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include -O -pipe -march=pentiumpro -DVERSION=\"1.0\" -DXS_VERSION=\"1.0\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.8.9/mach/CORE" body_0.c
cc -c -DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.9/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include -O -pipe -march=pentiumpro -DVERSION=\"1.0\" -DXS_VERSION=\"1.0\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.8.9/mach/CORE" scanner1.c
cc -c -DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.9/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include -O -pipe -march=pentiumpro -DVERSION=\"1.0\" -DXS_VERSION=\"1.0\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.8.9/mach/CORE" scanner2.c
cc -c -DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.9/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include -O -pipe -march=pentiumpro -DVERSION=\"1.0\" -DXS_VERSION=\"1.0\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.8.9/mach/CORE" scanner3.c
cc -c -DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.9/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include -O -pipe -march=pentiumpro -DVERSION=\"1.0\" -DXS_VERSION=\"1.0\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.8.9/mach/CORE" scanner4.c
cc -c -DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.9/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include -O -pipe -march=pentiumpro -DVERSION=\"1.0\" -DXS_VERSION=\"1.0\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.8.9/mach/CORE" scanner5.c
cc -c -DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.9/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include -O -pipe -march=pentiumpro -DVERSION=\"1.0\" -DXS_VERSION=\"1.0\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.8.9/mach/CORE" scanner6.c
cc -c -DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.9/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include -O -pipe -march=pentiumpro -DVERSION=\"1.0\" -DXS_VERSION=\"1.0\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.8.9/mach/CORE" scanner7.c
Running Mkbootstrap for Mail::SpamAssassin::CompiledRegexps::body_0 ()
chmod 644 body_0.bs
rm -f blib/arch/auto/Mail/SpamAssassin/CompiledRegexps/body_0/body_0.so
cc -shared -L/usr/local/lib body_0.o scanner1.o scanner2.o scanner3.o scanner4.o scanner5.o scanner6.o scanner7.o -o blib/arch/auto/Mail/SpamAssassin/CompiledRegexps/body_0/body_0.so
chmod 755 blib/arch/auto/Mail/SpamAssassin/CompiledRegexps/body_0/body_0.so
cp body_0.bs blib/arch/auto/Mail/SpamAssassin/CompiledRegexps/body_0/body_0.bs
chmod 644 blib/arch/auto/Mail/SpamAssassin/CompiledRegexps/body_0/body_0.bs
Manifying blib/man3/Mail::SpamAssassin::CompiledRegexps::body_0.3
make install
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Installing /var/db/spamassassin/compiled/5.008/3.002005/auto/Mail/SpamAssassin/CompiledReg exps/body_0/body_0.so
Installing /var/db/spamassassin/compiled/5.008/3.002005/Mail/SpamAssassin/CompiledRegexps/ body_0.pm
Installing /tmp/.spamassassin21268GGS301tmp/ignored/lib/perl5/5.8.9/man/man3/Mail::SpamAss assin::CompiledRegexps::body_0.3
Writing /var/db/spamassassin/compiled/5.008/3.002005/auto/Mail/SpamAssassin/CompiledReg exps/body_0/.packlist
FreeBSD: Registering installation in the package database
Cannot create directory /var/db/pkg/bsdpan-Mail-SpamAssassin-CompiledRegexps-body_0-1.0: File exists
Appending installation info to /tmp/.spamassassin21268GGS301tmp/ignored/lib/perl5/5.8.9/mach/perllocal.pod
cp /tmp/.spamassassin21268GGS301tmp/bases_body_0.pl /var/db/spamassassin/compiled/5.008/3.002005/bases_body_0.pl
cd /
rm -rf /tmp/.spamassassin21268GGS301tmp
В /var/db/spamassassin/compile данные обновляются (система freebsd), но это никоим образом не сказывается на нагрузке cpu - как она была выше крыши, так она и осталась.
проверял, загружается ли модуль Rule2XSBody - в файле v320.pre не закомменчена строка
loadplugin Mail::SpamAssassin::Plugin::Rule2XSBody
в дебаг-логе всё чинно-ладно: модуль грузится без ошибок, так же нет ошибок и без этого модуля (не могу привести оба - слишком объёмный выхлоп)
когда просто тупо удаляешь не компилированые правила, нагрузка в норме, но спам не определяется никоим образом... такое ощущение, что или я как-то не правильно использую sa-compile или он не работает в принципе...
кто сталкивался с подобной ерундой?