Solved [Solved] pulledpork complains about SSLeay

Greetings FreeBSD community!

I've been toying around with Snort and midway through configuring it I noticed that you can use security/pulledpork to maintain the rules.

But when I try to execute pulledpork.pl it gives me this error:
Code:
Can't load '/usr/local/lib/perl5/site_perl/5.16/mach/auto/Crypt/SSLeay/SSLeay.so' for module Crypt::SSLeay: /usr/local/lib/perl5/site_perl/5.16/mach/auto/Crypt/SSLeay/SSLeay.so: Undefined symbol "PL_unitcheckav" at /usr/local/lib/perl5/5.16/mach/DynaLoader.pm line 190.
 at /usr/local/bin/pulledpork.pl line 28.
Compilation failed in require at /usr/local/bin/pulledpork.pl line 28.
BEGIN failed--compilation aborted at /usr/local/bin/pulledpork.pl line 28.

If I were to guess from seeing another person having a similar problem, which was not having SSLeay installed, but at the same time it can't be the case since:
Code:
===>  Installing for p5-Crypt-SSLeay-0.64
===>   p5-Crypt-SSLeay-0.64 depends on package: p5-LWP-Protocol-https>=6.02 - found
===>   p5-Crypt-SSLeay-0.64 depends on file: /usr/local/bin/perl5.16.3 - found
===>  Checking if security/p5-Crypt-SSLeay already installed
===>   p5-Crypt-SSLeay-0.64 is already installed

Sorry if this might just be something minor, but this has confused me quite a bit.
 
Re: pulledpork complains about SSLeay

Does /usr/local/lib/perl5/site_perl/5.16/mach/auto/Crypt/SSLeay/SSLeay.so exist?
 
Re: pulledpork complains about SSLeay

/usr/local/lib/perl5/site_perl/5.16/mach/auto/Crypt/SSLeay # ls -lah
Code:
total 48
drwxr-xr-x  2 root  wheel   512B Jan 31 05:37 .
drwxr-xr-x  3 root  wheel   512B Jan 31 05:37 ..
-rw-r--r--  1 root  wheel   659B Jan 31 05:37 .packlist
-r--r--r--  1 root  wheel     0B Jan 31 05:37 SSLeay.bs
-r-xr-xr-x  1 root  wheel    32k Jan 31 05:37 SSLeay.so
Yes, but if the size is correct I don't know.
 
Re: pulledpork complains about SSLeay

You have a problem with security/p5-Crypt-SSLeay:
Code:
/usr/local/lib/perl5/site_perl/5.16/mach/auto/Crypt/SSLeay/SSLeay.so: Undefined symbol "PL_unitcheckav" at /usr/local/lib/perl5/5.16/mach/DynaLoader.pm line 190.
Try to rebuild it.
 
Re: pulledpork complains about SSLeay

I've tried:
make reinstall clean
make deinstall clean + make install clean

Which both succeeded, but did not solve the issue.
 
Re: pulledpork complains about SSLeay

You can also try to rebuild lang/perl5.16. I remember having the same problem some time ago and fixed it by recompiling perl and some p5- packages.
 
Re: pulledpork complains about SSLeay

The rebuild went well.

Unfortunately pulledpork still gives the same error:
Code:
Can't load '/usr/local/lib/perl5/site_perl/5.16/mach/auto/Socket/Socket.so' for module Socket: /usr/local/lib/perl5/site_perl/5.16/mach/auto/Socket/Socket.so: Undefined symbol "PL_unitcheckav" at /usr/local/lib/perl5/5.16/XSLoader.pm line 68.
 at /usr/local/lib/perl5/site_perl/5.16/mach/Socket.pm line 858.
Compilation failed in require at /usr/local/lib/perl5/5.16/mach/Sys/Syslog.pm line 10.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/5.16/mach/Sys/Syslog.pm line 10.
Compilation failed in require at /usr/local/bin/pulledpork.pl line 29.
BEGIN failed--compilation aborted at /usr/local/bin/pulledpork.pl line 29.
 
Re: pulledpork complains about SSLeay

m0nk3y said:
Unfortunately pulledpork still gives the same error
Look more closely. The error references a different object module (Socket.so) and the backtrace shows an entirely different trace that ends at the next line (line 29 instead of line 28) in pulledpork.pl.
 
Re: pulledpork complains about SSLeay

trh411 said:
m0nk3y said:
Unfortunately pulledpork still gives the same error
Look more closely. The error references a different object module (Socket.so) and the backtrace shows an entirely different trace that ends at the next line (line 29 instead of line 28) in pulledpork.pl.

You were right, if I found the right port:
net/p5-Socket

It throws me this when trying to install it (portupgrade doesn't have it show up on upgrade logs) :
Code:
Attempt to reload Socket.pm aborted.
Compilation failed in require at /usr/local/lib/perl5/5.16/IPC/Cmd.pm line 46.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/5.16/IPC/Cmd.pm line 46.
Compilation failed in require at /usr/local/lib/perl5/5.16/ExtUtils/CBuilder/Base.pm line 11.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/5.16/ExtUtils/CBuilder/Base.pm line 11.
Compilation failed in require at /usr/local/lib/perl5/5.16/ExtUtils/CBuilder/Platform/Unix.pm line 4.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/5.16/ExtUtils/CBuilder/Platform/Unix.pm line 4.
Compilation failed in require at (eval 9) line 2.
BEGIN failed--compilation aborted at (eval 9) line 2.
Compilation failed in require at ./Makefile.PL line 19.
 
Re: pulledpork complains about SSLeay

No I did:
make reinstall clean to see if it was installed, it halted/gave me the error, then make install clean, but after I ran make deinstall clean + make install clean there was no more installation error.

Also it gave me more info about all these p5's.
Code:
p5-Socket-2.013 is required by: p5-IO-Socket-IP-0.29 p5-IO-Socket-SSL-1.970, deleting anyway

So after I reinstalled:

security/p5-Crypt-SSLeay
net/p5-Socket
net/p5-Socket-IO-IP
security/p5-Socket-SSL


And it seems to work now!
 
Back
Top