[gmx-developers] libgmxana.so dependencies

Roland Schulz roland at utk.edu
Mon Oct 5 07:59:25 CEST 2009


Hi,

I try to load libgmxana.so with dlopen but I get:
undefined symbol: interaction_function

The reason seems to be that while libgmx has the dependency on libmd,
libgmxana does not "know" its dependency:
[rschulz at rschulz-laptop lib]$ ldd libgmxana.so |grep libgmx
[rschulz at rschulz-laptop lib]$ ldd libmd_mpi.so |grep libgmx
        libgmx_mpi.so.5 => /home/rschulz/usr/gromacs/lib/libgmx_mpi.so.5
(0x00007fafdb255000)

Why is this that libgmxana does not know it dependency?

A short example program to show the error:
#include <dlfcn.h>
#include <stdio.h>
int main() {
    char* error;
    dlopen("libgmxana_mpi.so",RTLD_LAZY|RTLD_GLOBAL);
    if ((error = dlerror())) {
        printf("%s\n",error);
    }
    return 0;
}

Roland

-- 
ORNL/UT Center for Molecular Biophysics cmb.ornl.gov
865-241-1537, ORNL PO BOX 2008 MS6309
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://maillist.sys.kth.se/pipermail/gromacs.org_gmx-developers/attachments/20091005/bbc25b1d/attachment.html>


More information about the gromacs.org_gmx-developers mailing list