Pallavi-Banerjee21 / votca

Automatically exported from code.google.com/p/votca
0 stars 0 forks source link

Give a warning if version of libgmx has changed #52

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
There are unpredictable segfaults when the loaded version of libgmx differs 
from the one compiled with (binary incompatibility).

CsgApplication should drop a warning at rumtime if the version differs.

Original issue reported on code.google.com by christop...@gmail.com on 6 Jan 2011 at 9:58

GoogleCodeExporter commented 9 years ago
Add the check in all gmx topology/trajectory reader/writers. (warning will 
occur several times, but better this way)

Get gmx version with:

grompp -h 2>&1 | /bin/sed -n 
's/^.*\(VERSION[[:space:]]*[^[:space:]]*\)[[:space:]]*.*$/x\1x/p' > 
gmx_version.h

Original comment by christop...@gmail.com on 6 Jan 2011 at 1:41

GoogleCodeExporter commented 9 years ago
It is better to create a small cpp program using GMX_CFLAGS and GMX_LIBS, which 
prints the version string. (in case grompp differs from libgmx used for 
compiling.)
Failback to UNDEFINED if execution of this program fails.

Original comment by christop...@gmail.com on 7 Jan 2011 at 9:04

GoogleCodeExporter commented 9 years ago
Seems to work for me !

Original comment by christop...@gmail.com on 10 Jan 2011 at 6:36

GoogleCodeExporter commented 9 years ago
I got a segfault in csg_dump

Original comment by christop...@gmail.com on 10 Jan 2011 at 6:41

GoogleCodeExporter commented 9 years ago
This was actually issue #54

Original comment by christop...@gmail.com on 11 Jan 2011 at 8:28

GoogleCodeExporter commented 9 years ago

Original comment by christop...@gmail.com on 21 Jan 2011 at 10:35