Project

General

Profile

Bug #584

configure: broken check for dlopen

Added by Christoph Junghans about 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Category:
mdrun
Target version:
Affected version - extra info:
Affected version:
Difficulty:
uncategorized
Close

Description

On our system (OpenSuse 11.X) the dlopen check is never successful, it only work if one add '-ldl' to LIBS.

Actually there is a libtool macro, AC_LIBTOOL_DLOPEN, for trying a lot of combinations to make dlopen work. The main problem is that gromacs's libtool version is very old and I have not found any documentation so far.

So the question is, should we
-update libtool
-remove dlopen option from autotools
or
-fix it somehow

dlopen.patch (1.97 KB) dlopen.patch dirty patch to remember dlopen libs Christoph Junghans, 10/04/2010 07:08 PM

History

#1 Updated by Roland Schulz about 9 years ago

I think we probably don't want to update autoconf, since it could add new bugs and we want to move to cmake.

I suggest to print a message like the following if the dlopen check fails:

dlopen support not detected. This prevent the GROMACS analysis tools to read non-GROMACS trajectory formats. If you want this feature please either use cmake (recommended) or add the required library flags for your platform (e.g. -ldl).

#2 Updated by Christoph Junghans about 9 years ago

Created an attachment (id=547)
dirty patch to remember dlopen libs

That works from me, even if I will burn in autotools hell for that ;-)
As we will trash autotools sooner or later I think it does not matter a lot.

#3 Updated by Roland Schulz about 9 years ago

I tested your patch on a couple of machines. Works on each. Thanks!!
Committed to release branch.

Also available in: Atom PDF