Bug 215133 - sci-libs/parmetis wrong entry in /usr/include/metis.h
|
Bug#:
215133
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: All
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: normal
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: sci@gentoo.org
|
Reported By: oli.borm@web.de
|
|
Component: Applications
|
|
|
URL:
|
|
Summary: sci-libs/parmetis wrong entry in /usr/include/metis.h
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2008-03-28 00:44 0000
|
Line 25 in /usr/include/metis.h :
#include "../parmetis.h" /* Get the idxtype definition */
should be change to:
#include "parmetis.h" /* Get the idxtype definition */
Because this header file is installed at:
/usr/include/parmetis.h
Reproducible: Always
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 'virtual Foam::labelList
Foam::metisDecomp::decompose(const Foam::pointField&)':
metisDecomp/metisDecomp.C:363: error: 'METIS_WPartGraphRecursive' was not
declared in this scope
metisDecomp/metisDecomp.C:380: error: 'METIS_PartGraphRecursive' was not
declared in this scope
metisDecomp/metisDecomp.C:401: error: 'METIS_WPartGraphKway' was not declared
in this scope
Hi Oliver,
Thanks for checking this. (In reply to comment #1)
> Instead of fixing the above bug, please install also the complete set of metis
> 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.