Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 215133
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Science Related Packages <sci@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Oliver Borm <oli.borm@web.de>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 215133 depends on: Show dependency tree
Bug 215133 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   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

------- Comment #1 From Oliver Borm 2008-03-28 01:57:19 0000 -------
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 From Sébastien Fabbro 2008-03-28 12:28:30 0000 -------
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.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug