Re: GRASS module version strictness (libgrass_gis)
Jürgen E. Fischer <[email protected]> Fri, 5 Mar 2021 21:14:48 +0100
| Newsgroups | gmane.comp.gis.grass.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, On Fri, 05. Mar 2021 at 20:23:47 +0100, Benjamin Ducke wrote: > I am trying to find a way to inject GRASS modules (C code) > compiled in a GRASS 7 source tree into an already installed > version of GRASS. Even if I compile in a GRASS 7.8.5 tree and > then copy into a GRASS 7.8.5 (i.e. exact version match) > installation, I get this: > > ERROR: Module built against version 2021-03-04T21:51:47+00:00 but trying to > use version 2021-01-01T10:33:43+00:00. You need to rebuild GRASS GIS > or untangle multiple installations. > > This is coming from 'libgrass_gis'. > Apparently, GRASS keeps exact timestamps of the binaries and > won't allow any mixing. Note: In OSGeo4W testing I've disabled that check in lib/gis/gisinit.c. The DLLs already carry the major and minor version number in their name already. I guess it's there because the ABI could change anytime - even in point releases - and the libs are only meant for GRASS itself AFAIK. But I'd also think that the chance for breakages is reasonable small enough to do this. Using the libs with a different compiler in the QGIS plugin like we do is probably a bigger risk anyway. Jürgena. -- Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-31 Dipl.-Inf. (FH) Rheinstraße 13 Fax. +49-4931-918175-50 Software Engineer D-26506 Norden https://www.norbit.de QGIS release manager (PSC) Germany IRC: jef on FreeNode _______________________________________________ grass-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/grass-dev
signature.asc
(application/pgp-signature, 827 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iQIVAwUAYEKROBBsJ9SQbsVUAQi1Fw//ak8uB+VtD7fGwhxIgFnvhTjRBcXWqSJc TDPbz4uycLnzQ8L9VmGuYPrBLL81XsmYxE7nvLyBe2JWpMxaEMbuxhi2rWDKotjz iRGPfOeR74RG75VWNBuTGGjyjLswMfUqpXqpzw/KufGNeISD+F6DZBTzdDqjNnG5 tzd46/r6cBjBxs1bUki+nLS+cdsSureBI9oQ5tc+QbaTOb28+yCsv2Rw3wBv1zuH kUgl6LTv45rp2Ko3PWtgfQVAm5iXk7ZjZYRFfDkbIhGZEK64NAKvlVym3kVezVuZ QrwU1SWfVoP+nKM+tAVF78BjpW9mOFwWiLNR9fY2zM8EMllFMK2NS0nNR7vHptfw rtPd4TAVEa0EFcqXBEtDq1XgJGV1WcUP9GpK9SrHL8VrxVlp8oyky9MI+7J2AgOl STALjQUrm6Ri1ejF2BI7WJdCQznnEqkOmW32Rhq7eK1KoHrmh/XjyvOOSj4vVNnd pfLh6FqaJNaiJDBqT4CGAlpmHyx9zj7WD62mxCy74baj5s9ZwFaeLF4kG1qjGLnD SqDCZMZJhDUVKOh2CuagGZWH7/mxWwNXi3oIxHLQBLokY8cBkAHIJwwYNvWgfxR9 x0ZzR7KsMfemHopz/ph51SZMRe8js3VPbP3NzTrUt5Wqr+xmJcQALJ4ILAoBuqXK mSOtjh+v3+0= =ejiy -----END PGP SIGNATURE-----