[breezy] xemacs networking broken?

Faried Nawaz faried at gmail.com
Mon Oct 31 09:03:08 UTC 2005


Hello,

I recently upgraded a Hoary box to Breezy, and XEmacs 21.4.17 stopped
making network connections.  I can't use, for example, w3 or zenirc,
or even M-x telnet.

For some reason, on Breezy, this won't work

(open-network-stream "blah" nil "192.168.1.1" 25)

but this will:

(open-network-stream "blah" nil "192.168.1.1" "25")

Emacs on Breezy accepts the former, as does XEmacs 21.4.17 on my other
box (a FreeBSD system).

Here's how to reproduce this error:

- create a file with this code:
  (defun foo ()
    (open-network-stream "blah" nil "192.168.1.1" 25))
- run "xemacs -q -l foo.el -f foo"

You'll see

Loading /usr/share/emacs/site-lisp/debian-startup...
Loading 00debian...
Loading site-start...
Loading 00debian-vars...
Loading 20gnus-init...
Loading 50autoconf...
Loading 50bbdb...
Loading 50dictionaries-common...
Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el...
Loading /var/cache/dictionaries-common/emacsen-ispell-default.el...
Loading 50erc...
Loading erc-auto...
Loading 50inform-mode...
Loading 50psvn...
Loading 50python-docutils...
Loading 50vc-svn...
Loading 50zenirc...
192.168.1.1/x& Servname not supported for ai_socktype
xemacs exiting
.

Running ltrace on the above xemacs invocation shows this:

[...]
getaddrinfo("192.168.1.1", "\314\021w\b\377O\026\b\200\231\341\277\r",
0xbfe19958, 0xbfe1998c) = -8
gai_strerror(-8)                                 = "Servname not
supported for ai_so"...
[...]

It should show

getaddrinfo("192.168.1.1", "25", [...]


Faried.




More information about the ubuntu-users mailing list