in reply to E-Machines T2862 won't print to a socket.
getprotobyname (missing /etc/protocols?) and socket (most likely permission problems) can fail. What happens when you single step through the debugger?