cffi cannot open GNU ld scripts.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
CFFI |
Triaged
|
High
|
Unassigned |
Bug Description
On Gentoo 64-bit, a lot of /usr/lib/lib*.so are actually GNU ld scripts, redirecting to the actual ELF libraries in /lib64.
Here is a proposed function to read them when the library cannot be opened, and redirect to the true library:
(defun load-foreign-
(let ((newpath
(when stream
(let ((buffer (make-array 80
(if newpath
(error error))))
In load-foreign-
(handler-case (cffi::
(error (err)
(
Thanks for your bug report. Do you have any information on how to create these scripts so I can test your function locally and perhaps add a new test to the suite? A quick search for "ld scripts" didn't find much.