[gmx-developers] shared libraries - unresolved symbols issue

David van der Spoel spoel at xray.bmc.uu.se
Wed Nov 12 15:05:56 CET 2008

Martin Höfling wrote:
> Hello folks,
> Is it possible that the shared librares aren't linked correctly? I compiled a 
> tree configured with --enable-shared option.
> Here're the missing symbols:
> /usr/lib/libgmx.so: undefined symbol: gmx_pmeonlynode
> /usr/lib/libmd.so: undefined symbol: ptype_str
> I checked the libraries with ldd and none of the two is linked versus each 
> other, although the missing symbol can be found in the other library via 
> nm -D.
> Or is there a fault on my side?
No, this is due to crosslinking between libraries. It may help to list 
one or both of the two twice:
-lmd -lgmx -lmd -lgmx

> Best
> 	Martin
> _______________________________________________
> gmx-developers mailing list
> gmx-developers at gromacs.org
> http://www.gromacs.org/mailman/listinfo/gmx-developers
> Please don't post (un)subscribe requests to the list. Use the 
> www interface or send it to gmx-developers-request at gromacs.org.

David van der Spoel, Ph.D., Professor of Biology
Molec. Biophys. group, Dept. of Cell & Molec. Biol., Uppsala University.
Box 596, 75124 Uppsala, Sweden. Phone:	+46184714205. Fax: +4618511755.
spoel at xray.bmc.uu.se	spoel at gromacs.org   http://folding.bmc.uu.se

More information about the gromacs.org_gmx-developers mailing list