Skip to content

#696 empty libdunegrid accepted as valid by DUNE_GRID_CHECK_MODULE

Metadata

Property Value
Reported by Jö Fahlke (jorrit@jorrit.de)
Reported at Dec 12, 2009 00:27
Type Bug Report
Version Git (pre2.4) [autotools]
Operating System Unspecified / All
Last edited by Jö Fahlke (jorrit@jorrit.de)
Last edited at Dec 13, 2009 18:26
Closed by Jö Fahlke (jorrit@jorrit.de)
Closed at Dec 13, 2009 18:26
Closed in version Unknown
Resolution Fixed
Comment

Description

from dune-grid/m4/dune-grid.m4:

AC_DEFUN([DUNE_GRID_CHECK_MODULE],[ DUNE_CHECK_MODULES([dune-grid], [grid/common/grid.hh], [Dune::PartitionName]) ])

This seem to check for the library for dune-grid, by trying to compile and link a program that include grid/common/grid.hh and uses the symbol Dune::PartitionName. However, the way that symbol is used does not seem to guarantee that the symbol is actually in the lib. Thus an empty libdunecommon is accepted as valid.

(an empty library can be produced by uncommenting the line

libdunegrid_la_LIBADD = ../dune/grid/libgrid.la

in dune-grid/lib/Makefile.am)