Hylafax Mailing List Archives

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

4.0p1 Solaris 2.5.1 socket problem



I've just tried to upgrade from an older version of Hylafax which
was working fine to the latest 4.0pl1 release on a Sparc system
running Solaris 2.5.1. It built & installed fine. The problem I'm
seeing is this:

$ faxstat -v
Trying wampyr.its.uow.edu.au (130.130.68.2) at port 4559...
Connected to wampyr.its.uow.edu.au.
220 wampyr.its.uow.edu.au server (HylaFAX (tm) Version 4.0pl1) ready.
-> USER steve
230 User steve logged in.
-> PORT 130,130,68,10,218,64
200 PORT command successful.
-> LIST status
425 Cannot create data socket (130.130.68.2,4558): No such device or address.

A truss of the hfaxd process shows that the call to socket() is failing in
getDataSocket:

8153:   read(0, " L I S T   s t a t u s\r".., 1024)     = 13
8153:   ioctl(0, I_FIND, "sockmod")                     = 1
8153:   fcntl(0, F_SETFL, 0x00000002)                   = 0
8153:   stat("/etc/shutdown", 0xEFFFF1D0)               Err#2 ENOENT
8153:   stat("status", 0xEFFFF020)                      = 0
8153:   open("status", O_RDONLY|O_NDELAY)               = 8
8153:   fcntl(8, F_SETFD, 0x00000001)                   = 0
8153:   fstat(8, 0xEFFFF030)                            = 0
8153:   open("/dev/tcp", O_RDWR)                        Err#6 ENXIO
8153:   write(2, " S o c k e t\n", 7)                   = 7
8153:   write(2, " :  ", 2)                             = 2
8153:   write(2, " N o   s u c h   d e v i".., 25)      = 25

The actual errno translates to:

     6  ENXIO   No such device or address
            I/O on a special file refers  to  a  subdevice  which
            does  not  exist,  or  exists beyond the limit of the
            device.  It may also occur when, for example, a  tape
            drive  is  not on-line or no disk pack is loaded on a
            drive.

I think I'll narrowed it down to the fact that it's running in a
chrooted environment and found a similar problem was reported to the
mailing list under SCO OS 5 late last year.

I've madly created all the possible entries in the dev directory and
copied all the shared library that in.ftpd needs but to no avail. To
confirm my suspicions about chroot being the cause I rebuilt hfaxd
with it out and sure enough the socket() call then works but of
course hfaxd can't find it's files. 

There must be others out there running this under Solaris 2.5.1 -
have I missed something obvious?

Steve.



Home
Report any problems to webmaster@hylafax.org

HylaFAX is a trademark of Silicon Graphics Corporation.
Internet connectivity for hylafax.org is provided by:
VirtuALL Private Host Services