Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 215133 - sci-libs/parmetis wrong entry in /usr/include/metis.h
Summary: sci-libs/parmetis wrong entry in /usr/include/metis.h
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-28 00:44 UTC by Oliver Borm
Modified: 2008-03-28 12:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Borm 2008-03-28 00:44:58 UTC
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
Comment 1 Oliver Borm 2008-03-28 01:57:19 UTC
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
Comment 2 Sébastien Fabbro (RETIRED) gentoo-dev 2008-03-28 12:28:30 UTC
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.