🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #87570

emacs 19.26 i368-unknown-netbsd1.0 fails on XOpenDisplay()

#87570
From: Greg A. Woods
Date: Wed, 14 Sep 1994 14:07
56 lines
2752 bytes
In GNU Emacs 19.26 of Mon Sep 12 1994 on spinne (i386-unknown-netbsd1.0.)

Emacs, as configured with "./configure", does not connect to the X server:

	[ttyp4]<woods@spinne> $ emacs
	emacs: X server tar.web.net:0.0 not responding.
	Check the DISPLAY environment variable or use "-d"

DISPLAY is set to tar.web.net:0.0, and other X11 apps work A-OK in the
same environment.

Recalling that this often means the resolver isn't working right, I
applied the following patch, re-ran autoconf, configure, and make, with
no change in behaviour:

Index: configure.in
===================================================================
RCS file: /usr/local/src-CVS/emacs/configure.in,v
retrieving revision 1.1.1.1
diff -r1.1.1.1 configure.in
1476c1476
< dnl AC_HAVE_LIBRARY(-lresolv)
---
> AC_HAVE_LIBRARY(-lresolv)

Index: src/s/netbsd.h
===================================================================
RCS file: /usr/local/src-CVS/emacs/src/s/netbsd.h,v
retrieving revision 1.1.1.1
diff -r1.1.1.1 netbsd.h
34c34
< #define LIBS_SYSTEM -lutil
---
> #define LIBS_SYSTEM -lresolv -lutil

Tracing emacs with gdb shows that it calls XOpenDisplay() which returns
NULL, thus the above noted error.  I don't have the X11 sources online,
and have not been able to trace XOpenDispaly() with my meager gdb skills.

It otherwise works A-OK as "emacs -nw", and can connect to other
IP services, such as NNTP, both on the local host and remote hosts.

Other X11 applications compiled and linked with the same X11 libraries
run fine in the identical environment.

I'll be trying these same patches, on SunOS-4.1.3 *not* running YP/NIS
(i.e. just resolv+ and/or the BIND-4.9.2 resolver) and will report the
results then too as a followup to this message.

Thanks for any hints!

-- 
						Greg A. Woods

+1 416 443-1734			VE3TCP		robohack!woods
Planix, Inc. <woods@planix.com>; UniForum Canada <woods@uniforum.ca>
Technical Details
Message-ID: <9409141405.AA04203@kuma.web.net>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!panix!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!math.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!web.net!woods

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,feb35072d841d9b8,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1994-09-15 02:00:40 PST
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!panix!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!math.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!web.net!woods
From: woods@web.net (Greg A. Woods)
Newsgroups: gnu.emacs.bug
Subject: emacs 19.26 i368-unknown-netbsd1.0 fails on XOpenDisplay()
Date: 14 Sep 1994 10:07:25 -0400
Organization: Planix, Inc.; Toronto, Ontario; Canada
Lines: 56
Sender: daemon@cis.ohio-state.edu
Approved: bug-gnu-emacs@prep.ai.mit.edu
Distribution: gnu
Message-ID: <9409141405.AA04203@kuma.web.net>
Reply-To: woods@kuma.web.net (Greg A. Woods)