NetBSD Problem Report #44328
From www@NetBSD.org Wed Jan 5 16:24:32 2011
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id F360963B8B5
for <gnats-bugs@gnats.NetBSD.org>; Wed, 5 Jan 2011 16:24:31 +0000 (UTC)
Message-Id: <20110105162431.D174863B89F@www.NetBSD.org>
Date: Wed, 5 Jan 2011 16:24:31 +0000 (UTC)
From: zakne0ne@gmail.com
Reply-To: zakne0ne@gmail.com
To: gnats-bugs@NetBSD.org
Subject: ftwin compilation fix on DragonFlyBSD
X-Send-Pr-Version: www-1.0
>Number: 44328
>Category: pkg
>Synopsis: ftwin compilation fix on DragonFlyBSD
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jan 05 16:25:00 +0000 2011
>Closed-Date: Thu Jan 06 11:24:01 +0000 2011
>Last-Modified: Thu Jan 06 11:25:01 +0000 2011
>Originator: Ilia
>Release: DragonFly 2.9.1
>Organization:
>Environment:
DragonFly 2.9-DEVELOPMENT DragonFly v2.9.1.370.g78775c-DEVELOPMENT #0: Sun Jan 2 12:34:32 2011 root@:/usr/obj/usr/src/sys/GENERIC i386
>Description:
In file included from src/ftwin.c:45:
src/ft_file.h:23:1: error: "MIN" redefined
In file included from /usr/include/sys/uio.h:47,
from /usr/pkgsrc/sysutils/ftwin/work/.buildlink/include/apr-1/apr_file_info.h:33,
from src/ftwin.c:25:
/usr/include/sys/param.h:218:1: error: this is the location of the previous definition
>How-To-Repeat:
>Fix:
--- distinfob 2011-01-05 17:16:35 -0600
+++ distinfo 2011-01-05 17:16:42 -0600
@@ -3,3 +3,4 @@
SHA1 (ftwin-0.8.5.tar.bz2) = 23a1da8d8029a4965e93dd3464c853f5b52e57d0
RMD160 (ftwin-0.8.5.tar.bz2) = fd8685fa6d01b266ef65cf37d204a8269556ddc4
Size (ftwin-0.8.5.tar.bz2) = 164234 bytes
+SHA1 (patch-aa) = 8128529762da4b43ecb623f107a4a9da506e05a6
$NetBSD$
--- ft_file.h.orig 2011-01-05 23:11:25 +0000
+++ ft_file.h
@@ -20,7 +20,9 @@
#include <apr_pools.h>
+#ifndef MIN
#define MIN(a,b) ((a)<(b)) ? (a) : (b)
+#endif
/* hash result is not the same for a same file whether it is considered as big or small, so use carefully */
apr_status_t checksum_file(const char *filename, apr_off_t size, apr_off_t excess_size, apr_uint32_t *state,
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: obache@NetBSD.org
State-Changed-When: Thu, 06 Jan 2011 11:24:01 +0000
State-Changed-Why:
commited. thanks!
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/44328 CVS commit: pkgsrc/sysutils/ftwin
Date: Thu, 6 Jan 2011 11:23:21 +0000
Module Name: pkgsrc
Committed By: obache
Date: Thu Jan 6 11:23:21 UTC 2011
Modified Files:
pkgsrc/sysutils/ftwin: distinfo
Added Files:
pkgsrc/sysutils/ftwin/patches: patch-aa
Log Message:
for the case MIN macro is already defined somewhere else.
PR#44328.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/sysutils/ftwin/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/ftwin/patches/patch-aa
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.