NetBSD Problem Report #36877

From  Sat Sep  1 10:31:49 2007
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id 7CC8D63B8B5
	for <>; Sat,  1 Sep 2007 10:31:49 +0000 (UTC)
Message-Id: <>
Date: Sat,  1 Sep 2007 09:38:46 +0000 (UTC)
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
SunOS *.org 5.10 Generic_118855-33 i86pc i386 i86pc
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.
Install net/nload on Solaris (10 in my case), run "nload".
Edit src/main.cpp, and replace
while( ( key = getch() ) != ERR )
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. :-)



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


NetBSD Home
NetBSD PR Database Search

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