<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>215133</bug_id>
          
          <creation_ts>2008-03-28 00:44 0000</creation_ts>
          <short_desc>sci-libs/parmetis wrong entry in /usr/include/metis.h</short_desc>
          <delta_ts>2008-03-28 12:28:30 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>oli.borm@web.de</reporter>
          <assigned_to>sci@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>oli.borm@web.de</who>
            <bug_when>2008-03-28 00:44:58 0000</bug_when>
            <thetext>Line 25 in /usr/include/metis.h :
#include &quot;../parmetis.h&quot; /* Get the idxtype definition */

should be change to:

#include &quot;parmetis.h&quot; /* Get the idxtype definition */

Because this header file is installed at:

/usr/include/parmetis.h


Reproducible: Always</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>oli.borm@web.de</who>
            <bug_when>2008-03-28 01:57:19 0000</bug_when>
            <thetext>Instead of fixing the above bug, please install also the complete set of metis header files, like this:

./usr/include/parmetis/defs.h
./usr/include/parmetis/parmetislib.h
./usr/include/parmetis/stdheaders.h
./usr/include/parmetis/rename.h
./usr/include/parmetis/proto.h
./usr/include/parmetis/struct.h
./usr/include/parmetis/macros.h
./usr/include/parmetis.h
./usr/include/metis/metis.h
./usr/include/metis/defs.h
./usr/include/metis/stdheaders.h
./usr/include/metis/rename.h
./usr/include/metis/proto.h
./usr/include/metis/struct.h
./usr/include/metis/macros.h

As I understand, the header files in /usr/include/parmetis/ are for the libparmetis.so and the header files in /usr/include/metis/ are for the libmetis.so. The names of the header files are equal, but not the content!

Without the additional metis header files, I get the following error message, while compiling an package (OpenFOAM):

metisDecomp/metisDecomp.C: In member function &apos;virtual Foam::labelList Foam::metisDecomp::decompose(const Foam::pointField&amp;)&apos;:
metisDecomp/metisDecomp.C:363: error: &apos;METIS_WPartGraphRecursive&apos; was not declared in this scope
metisDecomp/metisDecomp.C:380: error: &apos;METIS_PartGraphRecursive&apos; was not declared in this scope
metisDecomp/metisDecomp.C:401: error: &apos;METIS_WPartGraphKway&apos; was not declared in this scope
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bicatali@gentoo.org</who>
            <bug_when>2008-03-28 12:28:30 0000</bug_when>
            <thetext>Hi Oliver,

Thanks for checking this. (In reply to comment #1)

&gt; Instead of fixing the above bug, please install also the complete set of metis
&gt; header files,

This was the intention, but got confused with automake documentation and simply changing include_HEADERS to pkginclude_HEADERS fixed it.
I updated this in cvs, re-emerge to fix it.

Also, note I added pkg-config files to make it easy, ex:

# pkg-config --cflags metis
-I/usr/include/metis  

You can either use this or the pkg-config m4 macros for openfoam.
</thetext>
          </long_desc>
      
    </bug>

</bugzilla>