Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Getting very very very annoyed with perl and socket
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
growse
Apprentice
Apprentice


Joined: 24 Jan 2003
Posts: 154
Location: Sunny UK

PostPosted: Thu Aug 03, 2006 9:54 pm    Post subject: Getting very very very annoyed with perl and socket Reply with quote

I've had this problem for a while, where perl refuses to connect to anything on a network. I can't find what the problem is, and can't find a solution. I've reinstalled different versions of perl, different versions of the net libraries, deleted all references to perl before reinstalling. Same problem.

Symptoms:

Simple network perl scripts don't work.
Code:

#!/usr/bin/perl
use Net::POP3;
$pop = Net::POP3->new('1.2.3.4', Debug => 1);
$pop->quit;


Execute, and I get
Code:

Can't call method "quit" on an undefined value at pop3.pl line 5.


So it's dying trying to create the Net::POP3 object, and I have no idea why. Similar things happen when trying to create Sockets, etc.

Next:

Spamassassin, on startup says this:
Code:

[23758] warn: Use of uninitialized value in getprotobynumber at /usr/lib/perl5/5.8.8/IO/Socket/INET.pm line 134.
[23758] warn: /line/at /usr/lib/perl5/5.8.8/i686-linux/IO/Socket.pm line 80.

It starts up fine though.

I could go on.

Does anyone know what the problem is, or do I seriously have to format and rebuild the entire box just because of this?

make.conf
Code:

CFLAGS="-O2 -march=athlon64 -pipe -msse3"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"

MAKEOPTS="-j2"
USE="-qt -kde -gtk -gtk2 -gnome -X -alsa -truetype -jpeg png -tiff cdr -dvd mysql apache exim bash-completion -mbox maildir ldap ipv6 ssl apache2 php openssl gd gif jpg session innodb oav acl pam libclamav readline tcpd samba crypt pam kerberos acl dba exiscan-acl -exiscan xml xml2 simplexml xmlrpc -sdl pop imap"

_________________
Getting there....
Back to top
View user's profile Send private message
binaural
Tux's lil' helper
Tux's lil' helper


Joined: 02 Dec 2004
Posts: 138

PostPosted: Fri Aug 04, 2006 12:44 pm    Post subject: Reply with quote

This is untested, but shouldn't
Code:
$pop->quit;


be
Code:
$pop->quit();


?
_________________
Happy vimming!
Back to top
View user's profile Send private message
growse
Apprentice
Apprentice


Joined: 24 Jan 2003
Posts: 154
Location: Sunny UK

PostPosted: Fri Aug 04, 2006 2:01 pm    Post subject: Reply with quote

Not according to http://search.cpan.org/~gbarr/libnet-1.19/Net/POP3.pm. quit() doesn't work anyway, same result.
_________________
Getting there....
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum