View previous topic :: View next topic |
Author |
Message |
growse Apprentice
Joined: 24 Jan 2003 Posts: 154 Location: Sunny UK
|
Posted: Thu Aug 03, 2006 9:54 pm Post subject: Getting very very very annoyed with perl and socket |
|
|
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 |
|
|
binaural Tux's lil' helper
Joined: 02 Dec 2004 Posts: 138
|
Posted: Fri Aug 04, 2006 12:44 pm Post subject: |
|
|
This is untested, but shouldn't
be
? _________________ Happy vimming! |
|
Back to top |
|
|
growse Apprentice
Joined: 24 Jan 2003 Posts: 154 Location: Sunny UK
|
|
Back to top |
|
|
|
|
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
|
|