[Dune] [#946] 'double free' error when local and installed versions of dune exist
Dune
flyspray at dune-project.org
Wed May 16 21:01:23 CEST 2012
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#946 - 'double free' error when local and installed versions of dune exist
User who did this - Elias Pipping (pipping)
----------
Well... that again is not quite surprising. The expansion is now done properly but the variable
DUNE_LOCALFUNCTIONS_LIBDIR
is set to "". That's because the true-branch is taken in
ifelse(_dune_symbol,,
[_DUNE_MODULE[]_LIBDIR=""
_dune_cm_LIBS=""],
[_DUNE_MODULE[]_LIBDIR=`$PKG_CONFIG --variable=libdir _dune_name 2>/dev/null`
_dune_cm_LIBS="-L$_DUNE_MODULE[]_LIBDIR -l[]_dune_lib"])
for dune-solvers but not other packages: dune.m4 sets _dune_symbol as follows:
m4_pushdef([_dune_symbol], [$3])
or in other words to the third argument of the function call. dune-solvers (unlike other modules) comes with the following:
AC_DEFUN([DUNE_SOLVERS_CHECK_MODULE],[
DUNE_CHECK_MODULES([dune-solvers], [solvers/solvers/solver.hh])
])
leaving the third argument unset. I haven't dug into the logic of dune.m4 further to find out why the LIBDIR is only set if a third argument is passed.
----------
More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=946#comment3526
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
More information about the Dune
mailing list