NetBSD Problem Report #36877

From martin@duskware.de  Sat Sep  1 10:31:49 2007
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 7CC8D63B8B5
	for <gnats-bugs@gnats.netbsd.org>; Sat,  1 Sep 2007 10:31:49 +0000 (UTC)
Message-Id: <20070901093846.77F6F63B8B5@narn.NetBSD.org>
Date: Sat,  1 Sep 2007 09:38:46 +0000 (UTC)
From: serenity@exscape.org
Reply-To: serenity@exscape.org
To: netbsd-bugs-owner@NetBSD.org
Subject: net/nload builds, but doesn't work on solaris 10 (workaround)
X-Send-Pr-Version: www-1.0

>Number:         36877
>Category:       pkg
>Synopsis:       net/nload builds, but doesn't work on solaris 10 (workaround)
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    solaris-pkg-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Sep 01 10:35:00 +0000 2007
>Last-Modified:  Mon Sep 03 04:07:08 +0000 2007
>Originator:     Thomas Backman
>Release:        None, Solaris 10, pkgsrc-current
>Organization:
>Environment:
SunOS *.org 5.10 Generic_118855-33 i86pc i386 i86pc
>Description:
The package builds just fine, but doesn't work. When it's started, you get a blank screen and nothing happens until you press Ctrl+C and return to a garbled terminal.
>How-To-Repeat:
Install net/nload on Solaris (10 in my case), run "nload".
>Fix:
Edit src/main.cpp, and replace
while( ( key = getch() ) != ERR )
with
while( ( key = getch() ) != -1 )
Should be at line 314.

Then compile, and it runs.
The problem seems to be that both ncurses and Solaris(? or something else) defines ERR, to different values. nload expects it to be -1, though, and the loop freezes while waiting for getch() to return ERR.

The same problem exists in net/rtorrent, with the very same fix. I have no idea why, though. Also, this is my very first PR ever, so be gentle. :-)

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
Responsible-Changed-By: snj@netbsd.org
Responsible-Changed-When: Mon, 03 Sep 2007 04:07:08 +0000
Responsible-Changed-Why:
Solaris-specific problem.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.