NetBSD Problem Report #47783
From www@NetBSD.org Mon Apr 29 15:23:44 2013
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
by www.NetBSD.org (Postfix) with ESMTP id A7C4B63EC86
for <gnats-bugs@gnats.NetBSD.org>; Mon, 29 Apr 2013 15:23:44 +0000 (UTC)
Message-Id: <20130429152343.A74C863EC86@www.NetBSD.org>
Date: Mon, 29 Apr 2013 15:23:43 +0000 (UTC)
From: slitvinov@gmail.com
Reply-To: slitvinov@gmail.com
To: gnats-bugs@NetBSD.org
Subject: math/metis fails to build with gcc 4.5.1
X-Send-Pr-Version: www-1.0
>Number: 47783
>Category: pkg
>Synopsis: math/metis fails to build with gcc 4.5.1
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Apr 29 15:25:00 +0000 2013
>Closed-Date: Thu May 16 12:38:35 +0000 2013
>Last-Modified: Thu May 16 12:40:02 +0000 2013
>Originator: Litvinov Sergey
>Release: SUSE Linux
>Organization:
>Environment:
>Description:
bmake build fails in math/metis with the following error
In file included from ./metis.h:36:0,
from pmetis.c:16:
./proto.h:462:5: error: conflicting types for '__log2'
/usr/include/bits/mathcalls.h:145:78: note: previous declaration of '__log2' was here
*** [pmetis.o] Error code 1
My compiler is
gcc --version
GCC version
gcc (SUSE Linux) 4.5.1 20101208 [gcc-4_5-branch revision 167585]
This problem was solved. From metis 4.0.3 CHANGES file
METIS 4.0.3, 3/19/11
------------------------------------------------------------------------------
r9587 | karypis | 2011-03-19 12:22:36 -0500 (Sat, 19 Mar 2011) | 1 line
- Renamed log2() to ilog2() to remove conflicts with C99 log2() function
- Fixed I/O routines to eliminate compilation warnings
- Fixed error reporting routines to eliminate compilation warnings
I propose an update of metis to version 4.0.3. Please find a patch below.
>How-To-Repeat:
make in math/metis with gcc 4.5
>Fix:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/math/metis/Makefile,v
retrieving revision 1.12
diff -u -p -u -r1.12 Makefile
--- Makefile 11 Sep 2012 23:04:24 -0000 1.12
+++ Makefile 29 Apr 2013 15:14:56 -0000
@@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.12 2012/09/11 23:04:24 asau Exp $
-DISTNAME= metis-4.0
+DISTNAME= metis-4.0.3
CATEGORIES= math
MASTER_SITES= http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/math/metis/distinfo,v
retrieving revision 1.3
diff -u -p -u -r1.3 distinfo
--- distinfo 23 Feb 2005 12:06:56 -0000 1.3
+++ distinfo 29 Apr 2013 15:14:56 -0000
@@ -1,8 +1,8 @@
$NetBSD: distinfo,v 1.3 2005/02/23 12:06:56 agc Exp $
-SHA1 (metis-4.0.tar.gz) = 580568308e1fa40e5a7a77cacbf27f865d6c01af
-RMD160 (metis-4.0.tar.gz) = 21dc1451b9385d292afa428f0c17e8283b00f6b7
-Size (metis-4.0.tar.gz) = 508601 bytes
+SHA1 (metis-4.0.3.tar.gz) = 63303786414a857eaeea2b2a006521401bccda5e
+RMD160 (metis-4.0.3.tar.gz) = 9d67c92a2a90ece012443fa623442027c0c21297
+Size (metis-4.0.3.tar.gz) = 522624 bytes
SHA1 (patch-aa) = 4a7abb2a2d3e6600bb58cafc02d420cffa3ef4ca
SHA1 (patch-ab) = c7f6787f67a981a3aace959d7337f4528f9d76cb
SHA1 (patch-ac) = f3e956093d5931170a61f3e8c0732900b5d38874
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: obache@NetBSD.org
State-Changed-When: Thu, 16 May 2013 12:38:35 +0000
State-Changed-Why:
Updated. Thanks!
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/47783 CVS commit: pkgsrc/math/metis
Date: Thu, 16 May 2013 12:37:35 +0000
Module Name: pkgsrc
Committed By: obache
Date: Thu May 16 12:37:35 UTC 2013
Modified Files:
pkgsrc/math/metis: Makefile distinfo
Log Message:
Update metis to 4.0.3.
PR pkg/47783 by Litvinov Sergey.
METIS 4.0.3, 3/19/11
------------------------------------------------------------------------------
r9587 | karypis | 2011-03-19 12:22:36 -0500 (Sat, 19 Mar 2011) | 1 line
- Renamed log2() to ilog2() to remove conflicts with C99 log2() function
- Fixed I/O routines to eliminate compilation warnings
- Fixed error reporting routines to eliminate compilation warnings
METIS 4.0.2, 3/10/04
------------------------------------------------------------------------------
- Fixed a problem with weighted graphs and ometis.c
METIS 4.0.1, 11/29/98
------------------------------------------------------------------------------
This is mostly a bug-fix release
- Fixed some bugs in the multi-constraint partitioning routines
- Fixed some bugs in the volume-minimization routines
To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 pkgsrc/math/metis/Makefile
cvs rdiff -u -r1.3 -r1.4 pkgsrc/math/metis/distinfo
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.