Subject: pkg/36804: ktorrent compile error on current
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Bernd Ernesti <pr200707@veego.de>
List: pkgsrc-bugs
Date: 08/18/2007 18:15:00
>Number:         36804
>Category:       pkg
>Synopsis:       ktorrent compile error on current
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Aug 18 18:15:00 +0000 2007
>Originator:     Bernd Ernesti
>Release:        NetBSD 4.99.29
>Organization:
	
>Environment:
	
	
System: NetBSD 4.99.29
Architecture: i386
Machine: i386
>Description:

	The new patch-ab cause a compile error on NetBSD -current:
ChartDrawer.cc: In member function 'void kt::ChartDrawer::AddValue(size_t, double, bool)':
ChartDrawer.cc:276: error: 'isnan' was not declared in this scope
ChartDrawer.cc:276: error: 'isinf' was not declared in this scope
gmake[3]: *** [ChartDrawer.lo] Error 1
gmake[3]: Leaving directory `/pkgsrc/net/ktorrent/work.i386/ktorrent-2.2.1/plugins/stats'

>How-To-Repeat:
	On a NetBSD -current system:
	cd pkgsrc/net/ktorrent
	make
>Fix:
	Removing the patch fixed the problem for me, but this may not
	be the best solution.

	David Brownlee said the following on pkgsrc-changes, when I asked
	about the purpose of this patch:
Yes, this was for NetBSD 4.0_BETA2. The patch should probably be
conditional on NetBSD version...

	I don't know which error was fixed by this patch on 4.0_BETA2,
	since I have no such system where I could test it.

>Unformatted: