NetBSD Problem Report #36877
From firstname.lastname@example.org Sat Sep 1 10:31:49 2007
Received: from mail.netbsd.org (mail.netbsd.org [188.8.131.52])
by narn.NetBSD.org (Postfix) with ESMTP id 7CC8D63B8B5
for <email@example.com>; Sat, 1 Sep 2007 10:31:49 +0000 (UTC)
Date: Sat, 1 Sep 2007 09:38:46 +0000 (UTC)
Subject: net/nload builds, but doesn't work on solaris 10 (workaround)
>Synopsis: net/nload builds, but doesn't work on solaris 10 (workaround)
>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-When: Mon, 03 Sep 2007 04:07:08 +0000
$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.