This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Specify libffi.so soname for ctypes
Type: compile error Stage: resolved
Components: Build Versions: Python 3.7
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: ned.deily, tturbs
Priority: normal Keywords:

Created on 2018-10-25 02:04 by tturbs, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (3)
msg328406 - (view) Author: Yongkwan Kim (tturbs) Date: 2018-10-25 02:04
As python 3.7 excludes libffi from it's package, my build on centos6 doesn't work on centos7. Error message is following.

ImportError: libffi.so.5: cannot open shared object file: No such file or directory

centos7 have libffi.so.6 instead of libffi.so.5 as does centos6. I hope to specify libffi version with libffi.so. I figured out that any configure option  can fix this through seeing setup.py .

Thanks in advance.
msg368406 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2020-05-08 02:35
Sorry for the long delay in answering this issue: ctypes and libffi issues do not get a lot of attention currently. I assume you must have long ago found a solution to the problem but, just for the record and assuming I understand the problem correctly, if you build Python on centos6 with its default libffi.so.5 and then try to move those binaries to a centos7 system that does not include a libffi.so.5 along with libffi.so.6, you are out of luck.  Normally, the change from .5 to .6 would indicate some ABI incompatibility between the two libffi versions. Rebuilding Python on centos7 should produce a working Python that links with the latest library versions, including libffi, available on that centos release.
msg379711 - (view) Author: Yongkwan Kim (tturbs) Date: 2020-10-27 01:54
My solution is creating link of libffi.so.6 as .5 This is for anyone who has same issue with me.
But thanks for your kind reply though.
History
Date User Action Args
2022-04-11 14:59:07adminsetgithub: 79242
2020-10-27 01:54:47tturbssetmessages: + msg379711
2020-05-08 02:35:40ned.deilysetstatus: open -> closed

nosy: + ned.deily
messages: + msg368406

resolution: out of date
stage: resolved
2018-10-25 11:59:19tturbssettype: compile error
components: + Build
versions: + Python 3.7
2018-10-25 02:04:30tturbscreate