LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 01-02-2024, 10:31 AM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,612

Rep: Reputation: 180Reputation: 180
SpamAssassin Mail Filter Socket6.c: loadable library and perl binaries are mismatched


I've just upgraded to Slackware 15.0 on my main computer. I use the SpamAssassin Mail Filter daemon run by rc.spamd. This worked fine with 14.2, but with 15.0 I get:
Code:
Starting SpamAssassin Mail Filter Daemon: Socket6.c: loadable library and perl binaries are mismatched (got handshake key 0xdb00080, needed 0xeb00080)
Other links I've found discussing this problem (e.g. https://www.linuxquestions.org/quest...a5-4175678820/) say to uninstall the previous version of Perl and reinstall; reinstall CPAN and other suggestions.

I never deal with perl, so I don't even know how to [re]install any of this. I found instructions in reinstalling CPAN: 'cpan App::cpanminus', and on installing modules: 'cpanm Module::Name'. Should I do that? What module do I need?
 
Old 01-02-2024, 11:58 AM   #2
teoberi
Member
 
Registered: Jan 2018
Location: Romania
Distribution: Slackware64-current (servers)/Windows 11/Ubuntu (workstations)
Posts: 620

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
https://www.linuxquestions.org/quest...0/#post6146003
It worked for me every time.
1. Stop Amavis (if you use it) and Spamassassin
2. Uninstall the previous version of Perl with removepkg
3. Move all related modules that were compiled with the previous version of Perl with the script in the link
4. Install the new version of Perl with installpkg
5. Install CPAN
6. Rebuild all desired Perl packages with the current version of Perl means Amavis, Spamassassin, etc
7. The folders moved by that script will be deleted

Reinstall CPAN (at Linux console):
Code:
perl -MCPAN -e shell
or
Code:
cpan
Code:
 install Bundle::CPAN
Code:
reload cpan
Code:
quit

Last edited by teoberi; 01-02-2024 at 12:12 PM.
 
1 members found this post helpful.
Old 01-02-2024, 10:09 PM   #3
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,612

Original Poster
Rep: Reputation: 180Reputation: 180
teoberi: Thanks, those instructions mostly worked with a couple of mods. First I checked for move "scripts" in your referenced links and came up with:
Code:
export VERSION="-versionX"
mv /usr/local/lib64/perl5  /usr/local/lib64/perl5$VERSION
mv /usr/local/shared/perl5  /usr/local/shared/perl5$VERSION
mv /root/.cpan /root/.cpan$VERSION
mv /usr/lib64/perl5/vendor_perl /usr/lib64/perl5/vendor_perl$VERSION
mv /usr/share/perl5/vendor_perl /usr/share/perl5/vendor_perl$VERSION
mv /usr/lib64/perl5 /usr/lib64/perl5$VERSION
mv /usr/share/perl5 /usr/share/perl5$VERSION
I have no idea what the previous version was so I just called it "versionX". Some of these were not found. I hope this is the script to which you were referring.

To install Perl, 'installpkg perl' didn't work, I had to do 'slackpkg install perl'.

I didn't notice your "or" on 'perl -MCPAN -e shell' or 'cpan' so I did both. I don't suppose that hurt. The 'perl -MCPAN -e shell' asked me to install 'install Term::ReadLine::Perl' so at the 'cpan[2]>' prompt I entered that. It installed and left me at the 'cpan>' prompt, so I typed "exit".

Being Perl-challenged, I didn't realize at first that your following commands were to be from within 'cpan', but I figured that out and did:
Code:
# cpan
cpan[1]> install Bundle::CPAN
cpan[2]> reload cpan
cpan[3]> quit
I then:
Code:
# removepkg spamassassin
# sqg -p spamassassin
# sbopkg -i spamassassin
Unfortunately, that failed:
Code:
Test Summary Report
-------------------
t/svg.t                                  (Wstat: 3328 (exited 13) Tests: 13 Failed: 13)
  Failed tests:  1-13
  Non-zero exit status: 13
Files=21, Tests=209,  2 wallclock secs ( 0.12 usr  0.02 sys +  1.71 cusr  0.23 csys =  2.08 CPU)
Result: FAIL
Failed 1/21 test programs. 13/209 subtests failed.
make: *** [Makefile:939: test_dynamic] Error 255
Cleaning up...

perl-Image-Info:
Would you like to continue processing the rest of the
queue or would you like to abort?  If this failed
package is a dependency of another package in the queue
then it may not make sense to continue.
This isn't a mismatch error, but still seems Perl related.

Any ideas?
 
Old 01-03-2024, 02:03 AM   #4
teoberi
Member
 
Registered: Jan 2018
Location: Romania
Distribution: Slackware64-current (servers)/Windows 11/Ubuntu (workstations)
Posts: 620

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Quote:
Originally Posted by mfoley View Post
teoberi: Thanks, those instructions mostly worked with a couple of mods. First I checked for move "scripts" in your referenced links and came up with:
Code:
export VERSION="-versionX"
mv /usr/local/lib64/perl5  /usr/local/lib64/perl5$VERSION
mv /usr/local/shared/perl5  /usr/local/shared/perl5$VERSION
mv /root/.cpan /root/.cpan$VERSION
mv /usr/lib64/perl5/vendor_perl /usr/lib64/perl5/vendor_perl$VERSION
mv /usr/share/perl5/vendor_perl /usr/share/perl5/vendor_perl$VERSION
mv /usr/lib64/perl5 /usr/lib64/perl5$VERSION
mv /usr/share/perl5 /usr/share/perl5$VERSION
I have no idea what the previous version was so I just called it "versionX". Some of these were not found. I hope this is the script to which you were referring.

To install Perl, 'installpkg perl' didn't work, I had to do 'slackpkg install perl'.

I didn't notice your "or" on 'perl -MCPAN -e shell' or 'cpan' so I did both. I don't suppose that hurt. The 'perl -MCPAN -e shell' asked me to install 'install Term::ReadLine::Perl' so at the 'cpan[2]>' prompt I entered that. It installed and left me at the 'cpan>' prompt, so I typed "exit".

Being Perl-challenged, I didn't realize at first that your following commands were to be from within 'cpan', but I figured that out and did:
Code:
# cpan
cpan[1]> install Bundle::CPAN
cpan[2]> reload cpan
cpan[3]> quit
I then:
Code:
# removepkg spamassassin
# sqg -p spamassassin
# sbopkg -i spamassassin
Unfortunately, that failed:
Code:
Test Summary Report
-------------------
t/svg.t                                  (Wstat: 3328 (exited 13) Tests: 13 Failed: 13)
  Failed tests:  1-13
  Non-zero exit status: 13
Files=21, Tests=209,  2 wallclock secs ( 0.12 usr  0.02 sys +  1.71 cusr  0.23 csys =  2.08 CPU)
Result: FAIL
Failed 1/21 test programs. 13/209 subtests failed.
make: *** [Makefile:939: test_dynamic] Error 255
Cleaning up...

perl-Image-Info:
Would you like to continue processing the rest of the
queue or would you like to abort?  If this failed
package is a dependency of another package in the queue
then it may not make sense to continue.
This isn't a mismatch error, but still seems Perl related.

Any ideas?
Quote:
I have no idea what the previous version was so I just called it "versionX". Some of these were not found. I hope this is the script to which you were referring
It refers to the previous version of Perl installed.
Before the Perl update you can find it with the command:
Code:
ls /var/log/packages | grep perl
Quote:
To install Perl, 'installpkg perl' didn't work, I had to do 'slackpkg install perl'.
You use package management automation tools (slackpkg) but you could also take a look at the classic Slackware tools.
I don't use sbopkg to install packages (old man, old habits, that is, I install by compiling from sources the packages that are not official in Slackware) so I don't know if you install Spamassassin from here, but if you do, it is already a new version 4.0.0 and it will come in soon 4.0.1
You can find out the version of Spamassassin with the command:
Code:
slackpkg Info <packagename>
The error message needs to be debugged.
Maybe you don't have the librsvg/svgalib Slackware packages installed (check with above command "slackpkg Info"), or maybe a problem with the Perl modules that Spamassassin depends on (check here).
Is that the only error message that appears?
 
Old 01-03-2024, 03:40 AM   #5
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,612

Original Poster
Rep: Reputation: 180Reputation: 180
Quote:
Originally Posted by teoberi View Post
It refers to the previous version of Perl installed.
Before the Perl update you can find it with the command:
Code:
ls /var/log/packages | grep perl
I looked in /var/log/removed_packages and found perl-5.34.0-x86_64-2_slack15.0. So that is the same package I reinstalled.
Quote:
You use package management automation tools (slackpkg) but you could also take a look at the classic Slackware tools.
I don't use sbopkg to install packages (old man, old habits, that is, I install by compiling from sources the packages that are not official in Slackware) so I don't know if you install Spamassassin from here, but if you do, it is already a new version 4.0.0 and it will come in soon 4.0.1
Yes, sbopkg does use the repository in https://slackbuilds.org/repository/15.0
Quote:
You can find out the version of Spamassassin with the command:
Code:
slackpkg Info <packagename>
'slackpkg info' (or slackpkg search) doesn't work on installs from SlackBuilds, but 'spmassassin --version' gives 3.4.6, which is the current one in SlackBuilds.
Quote:
The error message needs to be debugged.
Maybe you don't have the librsvg/svgalib Slackware packages installed (check with above command "slackpkg Info"), or maybe a problem with the Perl modules that Spamassassin depends on (check here).
Is that the only error message that appears?
In fact, I aborted the build after I got that first "Would you like to continue processing ..." message. In order to answer your question I re-ran and answered 'Yes' to this question, and several more after that! In the end, spamassassin and spamd got built and installed. Perhaps those errors were for Perl modules SpamAssassin doesn't use?

I fired up spamd and spamass-milter and they ran and are running. It looks like the re-install and cpan stuff must have worked. I'll give this a day or so and see if it traps spam -- which I've been getting quite a bit of without my spamass-milter running. Stay tooned!

Last edited by mfoley; 01-03-2024 at 03:42 AM.
 
Old 01-03-2024, 03:57 AM   #6
teoberi
Member
 
Registered: Jan 2018
Location: Romania
Distribution: Slackware64-current (servers)/Windows 11/Ubuntu (workstations)
Posts: 620

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
If it is OK, you can mark it as "Solved".
Using these automation tools, you don't really know what's going on under the hood.
Cheers.

Last edited by teoberi; 01-03-2024 at 03:58 AM.
 
Old 01-03-2024, 12:36 PM   #7
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,612

Original Poster
Rep: Reputation: 180Reputation: 180
It seems to be running fine. It's been trapping email today. You're right about "under the hood".
 
1 members found this post helpful.
  


Reply

Tags
mismatch, perl, spamassassin



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
[SOLVED] Clone.c: loadable library and perl binaries are mismatched unInstance Slackware 9 07-09-2023 06:36 PM
[SOLVED] current: perl pod2html library and binaries are mismatched walecha Slackware 3 11-07-2021 08:50 AM
[SOLVED] -current perl ListUtil.c: loadable library and perl binaries are mismatched (got handshake key 0xdb80080, needed 0xeb00080) enine Slackware 7 08-16-2021 06:08 PM
Socket6.c: loadable library and perl binaries are mismatched (got handshake key 0x77c0000, needed 0x7800000) Martin Zahn Linux - Software 2 11-06-2019 05:52 AM
error : Public key for perl-Socket6-0.20-1.fc8.rf.i386.rpm is not installed ankushkool Fedora 1 02-20-2009 02:53 AM

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

All times are GMT -5. The time now is 06:51 PM.

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
Open Source Consulting | Domain Registration