NetBSD Problem Report #20343

Received: (qmail 1181 invoked by uid 605); 14 Feb 2003 17:49:20 -0000
Message-Id: <20030214174918.E595E1114C@narn.netbsd.org>
Date: Fri, 14 Feb 2003 09:49:18 -0800 (PST)
From: pavel.cahyna@st.mff.cuni.cz
Sender: gnats-bugs-owner@netbsd.org
Reply-To: pavel.cahyna@st.mff.cuni.cz
To: gnats-bugs@gnats.netbsd.org
Subject: netscape for OSF can't resolve localhost
X-Send-Pr-Version: www-1.0

>Number:         20343
>Category:       pkg
>Synopsis:       netscape for OSF can't resolve localhost
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 14 17:50:01 +0000 2003
>Closed-Date:    Sat Mar 22 15:36:13 +0000 2003
>Last-Modified:  Sat Mar 22 15:36:13 +0000 2003
>Originator:     Pavel Cahyna
>Release:        1.6_STABLE
>Organization:
>Environment:
NetBSD omega 1.6_STABLE NetBSD 1.6_STABLE (GENERIC) #0: Fri Nov 22 12:41:51 MET 2002     bouyer@java:/home/tmp/alpha/obj/sys/arch/alpha/compile/GENERIC alpha

>Description:
If I ssh to an alpha machine and try to run Netscape (OSF binary)
with X11 forwarded over ssh, I get only the following error:
Error: Can't open display: localhost:10.0

(the environment variable DISPLAY is actually set to localhost:10.0 and 
native X11 programs work with that)
If localhost is replaced by 127.0.0.1 in the DISPLAY variable, netscape
starts OK.

The resolution of localhost is probably confused by this line in 
/etc/hosts:
::1                     localhost

If this line is commented out, netscape starts OK.	
>How-To-Repeat:

>Fix:
It's sufficient to create the file /emul/osf1/etc/hosts .
It can even be empty.

This should probably be the responsibility of the osf1_lib package.

>Release-Note:
>Audit-Trail:

From: Thomas Klausner <wiz@netbsd.org>
To: gnats-bugs@gnats.netbsd.org
Cc:  
Subject: pr/20343 CVS commit: pkgsrc/emulators/osf1_lib
Date: Sat, 22 Mar 2003 17:33:54 +0200 (EET)

 Module Name:	pkgsrc
 Committed By:	wiz
 Date:		Sat Mar 22 15:33:53 UTC 2003

 Modified Files:
 	pkgsrc/emulators/osf1_lib: Makefile PLIST

 Log Message:
 Update to 1.1:
 Install empty /etc/hosts file in emuldir; fixes PR 20343 by Pavel Cahyna.
 Wildcard rpm2pkg DEPENDS while here.


 To generate a diff of this commit:
 cvs rdiff -r1.2 -r1.3 pkgsrc/emulators/osf1_lib/Makefile
 cvs rdiff -r1.1 -r1.2 pkgsrc/emulators/osf1_lib/PLIST

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed 
State-Changed-By: wiz 
State-Changed-When: Sat Mar 22 07:35:52 PST 2003 
State-Changed-Why:  
Installed empty /etc/hosts file as suggested. 
Thanks for the PR. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.