我的系统有libgmp.so.10.2.0,而官方来源说现在的版本是6.1.2。
这是GMP规定的吗?有libgmp.so.42.0.0可以吗?
Debian在混合中添加了另一个数字"2“(忽略补丁)。
libgmp10:amd64 2:6.0.0+dfsg-6发布于 2016-12-24 21:59:44
您指的是libtool版本,它通常与库的发行版无关。
快速查看源代码将显示版本是在Makefile.am中设置的,在值前面有一个注释块来总结历史记录。
在这里,您将看到Debian包的编号( libmp的版本信息在最后一栏中):
# release libgmp libgmpxx libmp
...
# 5.0.1 10:1:0 6:1:2 4:21:1
# 5.0.2 10:2:0 6:2:2 4:22:1
# 5.0.3 10:3:0 6:3:2 4:23:1
# 5.0.4 10:4:0 6:4:2 4:24:1
# 5.0.5 10:5:0 6:5:2 4:25:1
# 5.1.0 11:0:1 7:0:3 - 和(当前)
# 6.1.2 13:2:3 9:2:5 - 和
# We interpret "implementation changed" in item "1." above as meaning any
# release, ie. the REVISION is incremented every time (if nothing else).
# Even if we thought the code generated will be identical on all systems,
# it's still good to get the shared library filename (like
# libgmpxx.so.3.0.4) incrementing, to make it clear which GMP it's from.
LIBGMP_LT_CURRENT = 13
LIBGMP_LT_REVISION = 2
LIBGMP_LT_AGE = 3
LIBGMPXX_LT_CURRENT = 9
LIBGMPXX_LT_REVISION = 2
LIBGMPXX_LT_AGE = 5发布于 2016-12-24 22:20:05
Debian政策需要在SONAME更改时更改包名(其他人正确地指出了与版本号的关系)。在发布版10中,接口号是5.0.x,所以让它成为包名的一部分是个好主意。
请注意,Release5.1.0有age = 1,这意味着它可以“提供”接口号10和11。不确定Debian是否真的这么做。
https://unix.stackexchange.com/questions/332590
复制相似问题