LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-12-2011, 11:52 AM   #1
rinaldij
LQ Newbie
 
Registered: May 2011
Posts: 14

Rep: Reputation: 0
procmail | spamassassin | perl problem Perl_Gthr_key_ptr


Using the following snippet in .procmailrc, all mail over 512kb is sent through spamassassin:

:0fw: spamassassin.lock
* < 512000
| /usr/bin/spamassassin

This worked fine for filtering until recently. I am now consistently getting the following error in my procmail.log:

/usr/bin/perl: symbol lookup error: /usr/lib/perl5/site_perl/5.10.1/i486-linux-thread-multi/auto/NetAddr/IP/Util/Util.so: undefined symbol: Perl_Gthr_key_ptr
procmail: Program failure (127) of "/usr/bin/spamassassin"
procmail: Rescue of unfiltered data succeeded

Google has not been my friend. There are some entries but nothing pertinent to this particular usage problem.

So far I have updated perl via perl -MCPAN -e shell upgrade, and forced perl to rebuild spamassasin in case of version incompatibilities.

Checking the specific perl module listed reports:

cpan[3]> r NetAddr::IP::Util
All modules are up to date for NetAddr::IP::Util

I'm stuck. Any thoughts?
 
Old 07-12-2011, 03:32 PM   #2
Martinus2u
Member
 
Registered: Apr 2010
Distribution: Slackware
Posts: 404

Rep: Reputation: 69
Quote:
Originally Posted by rinaldij View Post
I'm stuck. Any thoughts?
After receiving 10 spam mails today I have only just run spamassassin from a shell and found exactly the same problem. No solution yet. I'm on slackware64-current, btw.
 
Old 07-12-2011, 05:21 PM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,214

Rep: Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682
@OP

Quote:
/usr/bin/perl: symbol lookup error: /usr/lib/perl5/site_perl/5.10.1/i486-linux-thread-multi/auto/NetAddr/IP/Util/Util.so: undefined symbol: Perl_Gthr_key_ptr
<snip>
So far I have updated perl via perl -MCPAN -e shell upgrade, and forced perl to rebuild spamassasin in case of version incompatibilities.
Somehow you've installed a 32bit perl module on Slackware64. It should be under /usr/lib64/perl5/..., or /usr/local/lib64/perl5/... if it was installed for 64bit perl
 
Old 07-13-2011, 12:00 PM   #4
rinaldij
LQ Newbie
 
Registered: May 2011
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bathory View Post
@OP


Somehow you've installed a 32bit perl module on Slackware64. It should be under /usr/lib64/perl5/..., or /usr/local/lib64/perl5/... if it was installed for 64bit perl
Not here. I'm running 32bit on a 64bit machine.

cat /etc/slackware-version
Slackware 13.37.0

uname -a
Linux Senior 2.6.38.7-smp #2 SMP Sat May 21 23:13:29 CDT 2011 i686 Intel(R) Core(TM)2 Quad CPU Q8300 @ 2.50GHz GenuineIntel GNU/Linux
 
Old 07-13-2011, 12:30 PM   #5
jostber
Member
 
Registered: Jul 2001
Location: Skien, Norway
Distribution: Slackware 14.2 64-bit
Posts: 388

Rep: Reputation: 102Reputation: 102
There seems to be a problem with previous version of spamassassin and the recent Perl 5.12. You might try to upgrade spamassassin to the recently released version:

http://spamassassin.apache.org/
 
Old 07-13-2011, 02:14 PM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,214

Rep: Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682
Quote:
Not here. I'm running 32bit on a 64bit machine.
Ah, ok then.
Then it's the NetAddr::IP (not NetAddr::IP::Util) module that has the problem. I guess you should reinstall the module and see if it works.

Regards
 
Old 07-13-2011, 02:57 PM   #7
Martinus2u
Member
 
Registered: Apr 2010
Distribution: Slackware
Posts: 404

Rep: Reputation: 69
Quote:
Originally Posted by jostber View Post
There seems to be a problem with previous version of spamassassin and the recent Perl 5.12. You might try to upgrade spamassassin to the recently released version
I was afraid of an answer like that.

I remember last time I installed or upgraded spamassassin: I downloaded and manually installed a lot of perl modules one by one, totally independent of Slackware package management. It took forever. Only for spamassassin itself I used the slacky.eu slackbuild.

This time round, same disaster. I don't know what happened, whether it was my upgrading perl modules via cpan or what, but spamassassin did not find all or some of his dependencies. So the slackbuild wouldn't run. I tried cpan2tgz, but that was a complete failure. Certainly did not resolve dependencies, and complained about nonsensical missing modules.

In the end I bit the bullet. I was a bit more clever and used the "cpan" executable. That saved some time, but of course the result still is a lot of cruft under /usr which is not under control of Slackware package management.

The good news: it solved the issue reported in this thread.

Code:
#!/bin/bash
#
# install spamassassin 3.3.2 on Slackware 13.37
# on the ruins of a botched spamassassin 3.3.1 installation
#
# your mileage may vary
#
cpan -fi Digest::SHA1 
cpan -fi Digest::HMAC_MD5 
cpan -fi Encode::Detect 
cpan -fi IP::Country 
cpan -fi Net::IP 
cpan -fi Net::DNS 
cpan -fi NetAddr::IP 
cpan -fi Net::Ident 
cpan -fi IO::Socket::INET6 
cpan -fi IO::Socket::SSL 
cpan -fi Mail::SPF 
cpan -fi Mail::DKIM 
cpan -fi Mail::SpamAssassin
 
Old 07-15-2011, 09:24 AM   #8
rinaldij
LQ Newbie
 
Registered: May 2011
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jostber View Post
There seems to be a problem with previous version of spamassassin and the recent Perl 5.12. You might try to upgrade spamassassin to the recently released version:

http://spamassassin.apache.org/
I'm using:

$ spamassassin --version
SpamAssassin version 3.3.2
running on Perl version 5.14.0
 
Old 07-15-2011, 09:28 AM   #9
rinaldij
LQ Newbie
 
Registered: May 2011
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bathory View Post
Ah, ok then.
Then it's the NetAddr::IP (not NetAddr::IP::Util) module that has the problem. I guess you should reinstall the module and see if it works.

Regards
I have done the following:

cpan[1]> r NetAddr::IP
Going to read '/root/.cpan/Metadata'
------------------
All modules are up to date for NetAddr::IP

cpan[2]> force install NetAddr::IP
----------------
Appending installation info to /usr/lib/perl5/perllocal.pod
MIKER/NetAddr-IP-4.044.tar.gz
/usr/bin/make install -- OK
 
Old 07-15-2011, 11:16 AM   #10
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,214

Rep: Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682
If it stills complains, try to remove the NetAddr::IP module (it's a bit tricky, so better use cpanplus), download the module source and compile it yourself
 
Old 07-16-2011, 09:43 AM   #11
rinaldij
LQ Newbie
 
Registered: May 2011
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bathory View Post
If it stills complains, try to remove the NetAddr::IP module (it's a bit tricky, so better use cpanplus), download the module source and compile it yourself
I have removed the module and rebuilt from source. I just sent myself a series of test messages and will report back.
 
Old 07-16-2011, 10:04 AM   #12
rinaldij
LQ Newbie
 
Registered: May 2011
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rinaldij View Post
I have removed the module and rebuilt from source. I just sent myself a series of test messages and will report back.
Great. Now I get this:

/usr/bin/perl: symbol lookup error: /usr/lib/perl5/site_perl/5.10.1/i486-linux-thread-multi/auto/Socket6/Socket6.so: undefined symbol: Perl_Gthr_key_ptr

Should I rebuild Socket6 as well? Note, I do not use IPV6 on this machine.
 
Old 07-16-2011, 10:22 AM   #13
rinaldij
LQ Newbie
 
Registered: May 2011
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rinaldij View Post
Great. Now I get this:

/usr/bin/perl: symbol lookup error: /usr/lib/perl5/site_perl/5.10.1/i486-linux-thread-multi/auto/Socket6/Socket6.so: undefined symbol: Perl_Gthr_key_ptr

Should I rebuild Socket6 as well? Note, I do not use IPV6 on this machine.
Removed Socket6, downloaded source, installed, resending test messages. Great. Now:

/usr/bin/perl: symbol lookup error: /usr/lib/perl5/site_perl/5.10.1/i486-linux-thread-multi/auto/HTML/Parser/Parser.so: undefined symbol: Perl_Istack_sp_ptr

Why am I using 5.10 modules on 5.14? mv'd the 5.10 dir to 5.10-bak. Resending test messages.
 
Old 07-16-2011, 11:03 AM   #14
rinaldij
LQ Newbie
 
Registered: May 2011
Posts: 14

Original Poster
Rep: Reputation: 0
Solved

Quote:
Originally Posted by rinaldij View Post
Removed Socket6, downloaded source, installed, resending test messages. Great. Now:

/usr/bin/perl: symbol lookup error: /usr/lib/perl5/site_perl/5.10.1/i486-linux-thread-multi/auto/HTML/Parser/Parser.so: undefined symbol: Perl_Istack_sp_ptr

Why am I using 5.10 modules on 5.14? mv'd the 5.10 dir to 5.10-bak. Resending test messages.
Ok this seems to have worked, so I'm marking this solved. Note, due to inattentiveness when rebuilding spamassassin, it installed in /usr/local/bin rather than /usr/bin/ This created another problem, but easy to fix.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
spamassassin-procmail-sendmail problem clintb123 Linux - Server 1 02-21-2008 11:41 AM
postfix - fetchmail - procmail - spamassassin problem v1pEr Linux - Software 7 04-15-2007 10:11 AM
postfix - fetchmail - procmail - spamassassin problem v1pEr SUSE / openSUSE 1 04-15-2007 04:43 AM
Perl Script Program (need) : SpamAssassin-ClamAV-Procmail-Howto cyberjames Slackware 8 01-27-2005 11:53 AM
spamassassin w/ procmail vs. spamassassin w/sendmail bleunuit Linux - Networking 1 08-01-2004 07:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration