pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/47783: math/metis fails to build with gcc 4.5.1



>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:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 29 15:25:00 +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



Home | Main Index | Thread Index | Old Index