How compatible are different versions of glibc?

孤人 提交于 2019-12-18 11:03:29

问题


Specifically:

  1. Is it assured somehow that all versions of glibc 2.x are binary compatible?

  2. If not, how can I run a binary (game) on my system which has been compiled for a different version? Can I install glibc in a different folder?

My specific problem is the compatibility between glibc 2.14 (what I have) and 2.15 (what the game wants).

I might also get a version for glibc 2.13 but I'm not sure if that will run on 2.14.


回答1:


In general, running binaries that were compiled for an older glibc version (e.g. 2.13) will run fine on a system with a newer glibc (e.g. 2.14, like your system).

Running a binary that was built for a newer glibc (e.g. 2.15, like the one that fails) on a system with an older glibc will probably not work.

In short, glibc is backward-compatible, not forward-compatible.




回答2:


Please use ABI compliance checker for checking compatibility of libraries.




回答3:


There are only minor binary compatibility issues between glibc 2.14 and glibc 2.15 according to the report from the Linux upstream tracker.

The report is generated by the abi-compliance-checker and abi-tracker tools.

See also https://sourceware.org/glibc/wiki/Testing/ABI_checker.



来源:https://stackoverflow.com/questions/11107263/how-compatible-are-different-versions-of-glibc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!