IO::Socket on Solaris9

  • Thread starter Micha³ Kurowski
  • Start date
M

Micha³ Kurowski

[Copy and paste from compl.lang.perl.moderated. Apologies for cross-posting]

I've got a serious trouble with my Solaris 9 (sparc) install. It is
related to ldap config but I will leave out details ;-)

What could be a reason for errors like:

lwp-download: 500 Can't connect to xxx (Bad hostname 'xxx').

generated by LWP software but really coming from IO::Socket::INET ?

I'm sure some strange Solaris wisdom is involved. System resolves
hostnames properly most of the time but some software has got problems
with "getprotobyname" functions. For example:

perl -MIO::Socket::INET -e '$sock = IO::Socket::INET->new(PeerAddr =>
"localhost:smtp(25)"); print 1 . "\n" if($sock->connected);'

works OK but lwp-download returns just these "Bad hostname" errors ...

Your thoughts highly appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,167
Latest member
SusanaSwan
Top