================================================================
Dear Bug Team!
Summary: I am unable to use open-network-stream to connect to
localhost on this Linux box. I keep getting errors that look like
this:
"localhost/`~^H& Servname not supported for ai_socktype"
I originally encountered this trying to use the Allegro Common Lisp
emacs interface. I discussed the matter with them, and we narrowed it
down to an xemacs problem, and a new one to me, since I have been
using their interface for several years on Xemacs.
I was able to replicate the error in a minimal way using netcat.
First, I set up a listening port:
nc -l 12000
then I do
(setq foo (open-network-stream "fooproc" nil "localhost" 12000))
and I get the error.
I have checked, and I am able to connect to the listening port, and
send data, using netcat. this suggests to me that this is not just
some dumb firewall problem.
I was able to replicate this error both with the xemacs distributed by
Mandrake with my distro, and with an xemacs that I built myself there,
so I don't believe that it's just Mandrake (Mandriva) not packaging it
correctly, either. But it could be a problem with some library
installed with this distro.
I did what I could to track this down myself, but I'm afraid I got
lost in the C...
Thanks,
R
================================================================
System Info to help track down your bug:
---------------------------------------
uname -a: Linux
n2.mandriva.com 2.6.12-8mdksmp #1 SMP Tue Jul 26 15:09:51 CEST 2005 i686
Intel(R) Xeon(TM) CPU 2.80GHz unknown GNU/Linux
../../configure 'i386-mandrake-linux' '--prefix=/usr'
'--exec-prefix=/usr' '--package-path=//usr/share/xemacs/'
'--datadir=//usr/share' '--mandir=//usr/share/man/man0'
'--infodir=//usr/share/info' '--libdir=//usr/lib'
'--bindir=//usr/bin' '--infopath=//usr/share/info' '--with-pop'
'--mail-locking=flock' '--with-clash-detection'
'--with-scrollbars=lucid' '--with-menubars=lucid' '--with-xpm'
'--with-xface' '--with-png' '--with-jpeg' '--with-tiff'
'--dynamic=yes' '--with-ncurses' '--without-ldap'
'--without-postgresql' '--with-clash-detection' '--debug=no'
'--error-checking=none' '--prefix=/usr' '--exec-prefix=/usr'
'--with-x11' '--with-tty=yes' '--with-dialogs=athena'
'--with-widgets=athena' '--with-athena=3d' '--with-file-coding'
'--with-mule=no'
XEmacs 21.4.17 "Jumbo Shrimp" configured for `i386-mandrake-linux'.
Compilation / Installation:
Source code location: /home/warly/rpm/BUILD/xemacs-21.4.17
Installation prefix: /usr
Operating system description file: `s/linux.h'
Machine description file: `m/intel386.h'
Compiler: gcc -O2 -fomit-frame-pointer -pipe -march=i586
-mtune=pentiumpro
Compiler version: gcc (GCC) 4.0.1 (4.0.1-2mdk for Mandriva Linux
release 2006.0)
Compiler specs file: specs.
Relocating allocator for buffers: no
GNU version of malloc: yes
- Using Doug Lea's new malloc from the GNU C Library.
libc: glibc-2.3.5-4mdk
Window System:
Compiling in support for the X window system:
- X Windows headers location: /usr/X11R6/include
- X Windows libraries location: /usr/X11R6/lib
- Handling WM_COMMAND properly.
Compiling in support for the Athena widget set:
- Athena headers location: X11/Xaw3d
- Athena library to link: Xaw3d
Using Lucid menubars.
Using Lucid scrollbars.
Using Athena dialog boxes.
Using Athena native widgets.
TTY:
Compiling in support for ncurses.
Compiling in support for GPM (General Purpose Mouse).
Images:
Compiling in support for GIF images (builtin).
Compiling in support for XPM images.
Compiling in support for PNG images.
Compiling in support for JPEG images.
Compiling in support for TIFF images.
Compiling in support for X-Face message headers.
Sound:
Compiling in support for sound (native).
Compiling in support for NAS (network audio system).
Databases:
Compiling in support for Berkeley database.
Internationalization:
Compiling in support for file coding.
Mail:
Compiling in support for POP mail retrieval.
Compiling in support for "flock" mail spool file locking method.
Other Features:
Inhibiting IPv6 canonicalization at startup.
Compiling in support for dynamic shared object modules.
Using the new portable dumper.
Load-Path Lisp Shadows:
----------------------
(/usr/share/emacs/site-lisp/bbdb/bbdb
//usr/share/xemacs/xemacs-packages/lisp/bbdb/bbdb
/usr/share/emacs/site-lisp/bbdb/bbdb-xemacs
//usr/share/xemacs/xemacs-packages/lisp/bbdb/bbdb-xemacs
/usr/share/emacs/site-lisp/bbdb/bbdb-whois
//usr/share/xemacs/xemacs-packages/lisp/bbdb/bbdb-whois
/usr/share/emacs/site-lisp/bbdb/bbdb-w3
//usr/share/xemacs/xemacs-packages/lisp/bbdb/bbdb-w3
/usr/share/emacs/site-lisp/bbdb/bbdb-vm
//usr/share/xemacs/xemacs-packages/lisp/bbdb/bbdb-vm
/usr/share/emacs/site-lisp/bbdb/bbdb-srv
//usr/share/xemacs/xemacs-packages/lisp/bbdb/bbdb-srv
/usr/share/emacs/site-lisp/bbdb/bbdb-snarf
//usr/share/xemacs/xemacs-packages/lisp/bbdb/bbdb-snarf
/usr/share/emacs/site-lisp/bbdb/bbdb-sc
//usr/share/xemacs/xemacs-packages/lisp/bbdb/bbdb-sc
/usr/share/emacs/site-lisp/bbdb/bbdb-rmail
//usr/share/xemacs/xemacs-packages/lisp/bbdb/bbdb-rmail
/usr/share/emacs/site-lisp/bbdb/bbdb-reportmail
//usr/share/xemacs/xemacs-packages/lisp/bbdb/bbdb-reportmail
/usr/share/emacs/site-lisp/bbdb/bbdb-print
//usr/share/xemacs/xemacs-packages/lisp/bbdb/bbdb-print
/usr/share/emacs/site-lisp/bbdb/bbdb-migrate
//usr/share/xemacs/xemacs-packages/lisp/bbdb/bbdb-migrate
/usr/share/emacs/site-lisp/bbdb/bbdb-mhe
//usr/share/xemacs/xemacs-packages/lisp/bbdb/bbdb-mhe
/usr/share/emacs/site-lisp/bbdb/bbdb-merge
//usr/share/xemacs/xemacs-packages/lisp/bbdb/bbdb-merge
/usr/share/emacs/site-lisp/bbdb/bbdb-hooks
//usr/share/xemacs/xemacs-packages/lisp/bbdb/bbdb-hooks
/usr/share/emacs/site-lisp/bbdb/bbdb-gui
//usr/share/xemacs/xemacs-packages/lisp/bbdb/bbdb-gui
/usr/share/emacs/site-lisp/bbdb/bbdb-gnus
//usr/share/xemacs/xemacs-packages/lisp/bbdb/bbdb-gnus
/usr/share/emacs/site-lisp/bbdb/bbdb-ftp
//usr/share/xemacs/xemacs-packages/lisp/bbdb/bbdb-ftp
/usr/share/emacs/site-lisp/bbdb/bbdb-com
//usr/share/xemacs/xemacs-packages/lisp/bbdb/bbdb-com
//usr/share/xemacs/site-packages/lisp/tramp/password
//usr/share/xemacs/xemacs-packages/lisp/ecrypto/password
//usr/share/xemacs/site-packages/lisp/tramp/format-spec
//usr/share/xemacs/xemacs-packages/lisp/gnus/format-spec
//usr/share/xemacs/site-packages/lisp/tramp/trampver
//usr/share/xemacs/xemacs-packages/lisp/tramp/trampver
//usr/share/xemacs/site-packages/lisp/tramp/trampcache
//usr/share/xemacs/xemacs-packages/lisp/tramp/trampcache
//usr/share/xemacs/site-packages/lisp/tramp/tramp
//usr/share/xemacs/xemacs-packages/lisp/tramp/tramp
//usr/share/xemacs/site-packages/lisp/tramp/tramp-vc
//usr/share/xemacs/xemacs-packages/lisp/tramp/tramp-vc
//usr/share/xemacs/site-packages/lisp/tramp/tramp-uu
//usr/share/xemacs/xemacs-packages/lisp/tramp/tramp-uu
//usr/share/xemacs/site-packages/lisp/tramp/tramp-util
//usr/share/xemacs/xemacs-packages/lisp/tramp/tramp-util
//usr/share/xemacs/site-packages/lisp/tramp/tramp-smb
//usr/share/xemacs/xemacs-packages/lisp/tramp/tramp-smb
//usr/share/xemacs/site-packages/lisp/tramp/tramp-efs
//usr/share/xemacs/xemacs-packages/lisp/tramp/tramp-efs
//usr/share/xemacs/xemacs-packages/lisp/build/build-report
//usr/share/xemacs-21.4.17/lisp/build-report
/usr/share/xemacs/site-lisp/xemacs-browse-kill-ring
/usr/share/xemacs/site-lisp/xemacs-browse-kill-ring
//usr/share/xemacs/xemacs-packages/lisp/xslide/xslide
/usr/share/emacs/site-lisp/xslide/xslide
//usr/share/xemacs/xemacs-packages/lisp/xslide/xslide-process
/usr/share/emacs/site-lisp/xslide/xslide-process
//usr/share/xemacs/xemacs-packages/lisp/xslide/xslide-font
/usr/share/emacs/site-lisp/xslide/xslide-font
//usr/share/xemacs/xemacs-packages/lisp/xslide/xslide-data
/usr/share/emacs/site-lisp/xslide/xslide-data
//usr/share/xemacs/xemacs-packages/lisp/xslide/xslide-abbrev
/usr/share/emacs/site-lisp/xslide/xslide-abbrev)
Installed XEmacs Packages:
-------------------------
(zenirc ver: 1.16 upstream: 2.112)
(xwem ver: 1.21 upstream: lg(a)xwem.org--2005/xwem--main--2.1--versionfix-1)
(xslt-process ver: 1.11 upstream: 1.2.1)
(xslide ver: 1.09 upstream: 0.2.2)
(xlib ver: 1.14 upstream: lg(a)xwem.org--2005/xlib--main--2.1--version-0)
(xetla ver: 1.0 upstream: steve(a)eicq.org--2005/xetla--main--1.0--version-0)
(xemacs-devel ver: 1.7 upstream: No-Upstream-Ver)
(xemacs-base ver: 1.97 upstream: No-Upstream-Ver)
(x-symbol ver: 1.1 upstream: 4.5.1)
(w3 ver: 1.31 upstream: 4.0pre47)
(vm ver: 7.22 upstream: 7.17)
(viper ver: 1.4 upstream: 3.09)
(view-process ver: 1.13 upstream: 2.4)
(vhdl ver: 1.2 upstream: 3.33.2)
(vc-cc ver: 1.22 upstream: No-Upstream-Ver)
(vc ver: 1.41 upstream: No-Upstream-Ver)
(tramp ver: 1.25 upstream: 2.0.49)
(tpu ver: 1.14 upstream: 4.2X)
(tooltalk ver: 1.15 upstream: No-Upstream-Ver)
(tm ver: 1.38 upstream: No-Upstream-Ver)
(time ver: 1.14 upstream: 1.17)
(textools ver: 1.15 upstream: No-Upstream-Ver)
(text-modes ver: 1.88 upstream: No-Upstream-Ver)
(texinfo ver: 1.29 upstream: No-Upstream-Ver)
(supercite ver: 1.2 upstream: 3.55x3)
(strokes ver: 1.1 upstream: No-Upstream-Ver)
(speedbar ver: 1.27 upstream: 0.14beta4)
(sounds-wav ver: 1.12 upstream: No-Upstream-Ver)
(sounds-au ver: 1.12 upstream: No-Upstream-Ver)
(sml-mode ver: 0.11 upstream: 3.9.5)
(slider ver: 1.15 upstream: 0.3x1)
(sieve ver: 1.17 upstream: No-Upstream-Ver)
(sh-script ver: 1.18 upstream: 2.0e)
(sgml ver: 1.11 upstream: No-Upstream-Ver)
(semantic ver: 1.19 upstream: 1.4.2)
(scheme ver: 1.14 upstream: No-Upstream-Ver)
(sasl ver: 1.15 upstream: 1.14.4)
(ruby-modes ver: 1.02 upstream: 1.6.8)
(rmail ver: 1.14 upstream: No-Upstream-Ver)
(riece ver: 1.19 upstream: 1.0.8)
(reftex ver: 1.34 upstream: 4.21)
(re-builder ver: 1.02 upstream: 1.20)
(python-modes ver: 1.06 upstream: No-Upstream-Ver)
(psgml-dtds ver: 1.03 upstream: No-Upstream-Ver)
(psgml ver: 1.44 upstream: 1.3.1)
(ps-print ver: 1.11 upstream: 6.5.6)
(prog-modes ver: 2.05 upstream: No-Upstream-Ver)
(pgg ver: 1.05 upstream: 0.1)
(perl-modes ver: 1.08 upstream: No-Upstream-Ver)
(pcomplete ver: 1.04 upstream: 1.1.6)
(pcl-cvs ver: 1.66 upstream: R-2_9_9)
(pc ver: 1.28 upstream: No-Upstream-Ver)
(os-utils ver: 1.36 upstream: No-Upstream-Ver)
(oo-browser ver: 1.04 upstream: 4.08)
(ocaml ver: 0.05 upstream: 3.06)
(net-utils ver: 1.46 upstream: N/A)
(mmm-mode ver: 1.02 upstream: 0.4.7)
(misc-games ver: 1.18 upstream: No-Upstream-Ver)
(mine ver: 1.16 upstream: 1.9)
(mh-e ver: 1.29 upstream: 7.4.2)
(mew ver: 1.19 upstream: 1.94.2)
(mailcrypt ver: 2.14 upstream: 3.5.8)
(mail-lib ver: 1.73 upstream: No-Upstream-Ver)
(liece ver: 1.14 upstream: 1.4.9)
(jde ver: 1.48 upstream: 2.3.2)
(ispell ver: 1.31 upstream: 3.6)
(ilisp ver: 1.33 upstream: 5.12.0)
(igrep ver: 1.13 upstream: 2.111)
(idlwave ver: 1.32 upstream: 5.1)
(ibuffer ver: 1.09 upstream: No-Upstream-Ver)
(hyperbole ver: 1.16 upstream: 4.18)
(hm--html-menus ver: 1.23 upstream: 5.9)
(haskell-mode ver: 1.07 upstream: 1.45)
(gnus ver: 1.85 upstream: 5.10.7)
(gnats ver: 1.17 upstream: 3.101)
(general-docs ver: 1.04 upstream: No-Upstream-Ver)
(games ver: 1.15 upstream: 1.04)
(fsf-compat ver: 1.15 upstream: No-Upstream-Ver)
(frame-icon ver: 1.11 upstream: No-Upstream-Ver)
(fortran-modes ver: 1.04 upstream: No-Upstream-Ver)
(forms ver: 1.15 upstream: 2.37)
(footnote ver: 1.16 upstream: 0.18x)
(eudc ver: 1.39 upstream: 1.32)
(eterm ver: 1.17 upstream: No-Upstream-Ver)
(ess ver: 1.16 upstream: 5.2.7)
(eshell ver: 1.1 upstream: 2.4.1)
(escreen ver: 1.01 upstream: 1.16)
(erc ver: 0.17 upstream: Version 5.0 Revision: 1.757)
(emerge ver: 1.11 upstream: No-Upstream-Ver)
(elib ver: 1.11 upstream: 1.0)
(eieio ver: 1.05 upstream: 0.17)
(efs ver: 1.33 upstream: 1.23)
(edt ver: 1.13 upstream: No-Upstream-Ver)
(edit-utils ver: 2.24 upstream: No-Upstream-Ver)
(ediff ver: 1.53 upstream: 2.75)
(edebug ver: 1.21 upstream: No-Upstream-Ver)
(ecrypto ver: 0.19 upstream: 2.0)
(ecb ver: 1.22 upstream: 2.31)
(docbookide ver: 0.07000000000000001 upstream: 0.1)
(dired ver: 1.17 upstream: 7.13)
(dictionary ver: 1.16 upstream: 1.8)
(debug ver: 1.17 upstream: No-Upstream-Ver)
(crisp ver: 1.15 upstream: 1.34)
(cookie ver: 1.15 upstream: No-Upstream-Ver)
(clearcase ver: 1.1 upstream: /main/laptop/165)
(cc-mode ver: 1.45 upstream: 5.30.10)
(calendar ver: 1.23 upstream: No-Upstream-Ver)
(calc ver: 1.26 upstream: 2.02fX3)
(c-support ver: 1.21 upstream: No-Upstream-Ver)
(build ver: 1.14 upstream: 2.02)
(bbdb ver: 1.26 upstream: 2.34)
(auctex ver: 1.46 upstream: 11.55)
(apel ver: 1.29 upstream: 10.2)
(ada ver: 1.14 upstream: 2.27)
(Sun ver: 1.16 upstream: No-Upstream-Ver)
Installed Modules:
-----------------
Features:
--------
(mail-abbrevs xemacsbug shadow sendmail rfc822 view-less view
hyper-apropos tramp-smb tramp-efs tramp regexp-opt executable advice
advice-preload shell comint ring password run-at-time format-spec
timer trampver font-lock cus-face zenirc-autoloads xwem-autoloads
xslt-process-autoloads xslide-autoloads xlib-autoloads xetla-autoloads
xemacs-devel-autoloads xemacs-base-autoloads x-symbol-autoloads
w3-autoloads vm-autoloads viper-autoloads view-process-autoloads
vhdl-autoloads vc-cc-autoloads vc-autoloads tramp-autoloads
tpu-autoloads tooltalk-autoloads tm-autoloads time-autoloads
textools-autoloads text-modes-autoloads texinfo-autoloads
supercite-autoloads strokes-autoloads speedbar-autoloads
sounds-wav-autoloads sounds-au-autoloads sml-mode-autoloads
slider-autoloads sieve-autoloads sh-script-autoloads sgml-autoloads
semantic-autoloads scheme-autoloads sasl-autoloads
ruby-modes-autoloads rmail-autoloads riece-autoloads reftex-autoloads
re-builder-autoloads python-modes-autoloads psgml-dtds-autoloads
psgml-autoloads ps-print-autoloads prog-modes-autoloads pgg-autoloads
perl-modes-autoloads pcomplete-autoloads pcl-cvs-autoloads
pc-autoloads os-utils-autoloads oo-browser-autoloads ocaml-autoloads
net-utils-autoloads mmm-mode-autoloads misc-games-autoloads
mine-autoloads mh-e-autoloads mew-autoloads mailcrypt-autoloads
mail-lib-autoloads liece-autoloads jde-autoloads ispell-autoloads
ilisp-autoloads igrep-autoloads idlwave-autoloads ibuffer-autoloads
hyperbole-autoloads hm--html-menus-autoloads haskell-mode-autoloads
gnus-autoloads gnats-autoloads general-docs-autoloads games-autoloads
fsf-compat-autoloads frame-icon-autoloads fortran-modes-autoloads
forms-autoloads footnote-autoloads eudc-autoloads eterm-autoloads
ess-autoloads eshell-autoloads escreen-autoloads erc-autoloads
emerge-autoloads elib-autoloads eieio-autoloads efs-autoloads
edt-autoloads edit-utils-autoloads ediff-autoloads edebug-autoloads
ecrypto-autoloads ecb-autoloads docbookide-autoloads dired-autoloads
dictionary-autoloads debug-autoloads crisp-autoloads cookie-autoloads
clearcase-autoloads cc-mode-autoloads calendar-autoloads
calc-autoloads c-support-autoloads build-autoloads bbdb-autoloads
auctex-autoloads apel-autoloads ada-autoloads Sun-autoloads
lisp-autoloads loadhist auto-show fontl-hooks x-iso8859-1 code-cmds
gutter-items menubar-items x-menubar mode-motion mouse itimer
auto-save lisp-mode easymenu iso8859-1 page buff-menu lib-complete
help-nomule cus-file derived frame text-props obsolete cus-start
custom widget cl-extra mini-cl cl cl-19 packages backquote
very-early-lisp file-coding lucid-scrollbars cut-buffer lucid-menubars
athena-dialogs x c-balloon-help tty-frames tty toolbar nas-sound
native-sound scrollbar unix-processes multicast network-streams
subprocesses modules menu-accelerator-support menubar berkeley-db md5
xemacs gutter tiff png gif jpeg xface xpm xbm lisp-float-type linux
dialog devices window-system base64)
Recent keystrokes:
-----------------
- n e t w o r k - s t r e a m SPC C-h f RET C-x o "
f o o p r o BS BS BS p r o c " SPC n i l SPC " l o
c a l h o s t " SPC 1 2 0 0 0 ) ) C-x C-e ESC x s e
n d - b u TAB BS BS TAB BS BS BS BS BS b u BS BS r
p BS TAB e TAB p TAB o TAB r t - x TAB RET
Recent messages (most recent first):
-----------------------------------
Loading xemacsbug...done
Loading xemacsbug...
Making completion list...
Making completion list...
Making completion list...
Making completion list...
Making completion list...
localhost/`ยก~& Servname not supported for ai_socktype
Loading view-less...done
Loading view-less...
Quit
Fontifying *scratch*... done.
Error while loading /etc/emacs/site-start.d/xslide-init.el
Fontifying *scratch*...
Loading /etc/emacs/site-start.d/xslide-init.el...
Loading /etc/emacs/site-start.d/xemacs-tramp.el...done
Loading /etc/emacs/site-start.d/xemacs-tramp.el...
Loading /etc/emacs/site-start.d/tdtd-init.el...done
Loading /etc/emacs/site-start.d/tdtd-init.el...
Loading /etc/emacs/site-start.d/ruby.el...done