1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Show ABI incompatible binary path

This commit is contained in:
Nobuyoshi Nakada 2022-07-17 08:59:20 +09:00
parent 5ae83151b1
commit 50cfecd015
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

2
dln.c
View file

@ -456,7 +456,7 @@ dln_load(const char *file)
unsigned long long (*abi_version_fct)(void) = (unsigned long long(*)(void))dln_sym(handle, "ruby_abi_version");
unsigned long long binary_abi_version = (*abi_version_fct)();
if (binary_abi_version != ruby_abi_version() && abi_check_enabled_p()) {
dln_loaderror("ABI version of binary is incompatible with this Ruby. Try rebuilding this binary.");
dln_loaderror("incompatible ABI version of binary - %s", file);
}
#endif