Subject: pkg/28943: failed to build imlib2-1.2.0 on NetBSD.
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <obata@lins.jp>
List: pkgsrc-bugs
Date: 01/12/2005 02:33:00
>Number:         28943
>Category:       pkg
>Synopsis:       failed to build imlib2-1.2.0 on NetBSD
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 12 02:33:00 +0000 2005
>Originator:     OBATA Akio
>Release:        NetBSD 2.0
>Organization:
	LINS
>Environment:
System: NetBSD miki.lins.jp 2.0 NetBSD 2.0 (MIKI) #2: Sat Dec 11 11:57:34 JST 2004 obata@miki:/usr/src/sys/arch/i386/compile/MIKI i386
Architecture: i386
Machine: i386
>Description:
	On imlib2-1.2.0, src/lib/color_helpers.c uses function "lround",
	but atleast, NetBSD 2.0 don't have such function, 
	so failed to build.
>How-To-Repeat:
	build on no "lround" plathome.
>Fix:
	Add head of color_helpers.c,
		#include <math.h>
		#define lround (long int)round