HiTECNOLOGYs/cl-charms — pull request #2 by AndiPersti (2014-05-29 16:07:48+00:00)
Title: Use correct soname (incl. major version) on unix

On recent Debian/Ubuntu versions, "libncurses.so" is a linker script and thus can't be loaded dynamically because the dynamic linker doesn't know how to handle linker scripts.

When loading libraries at runtime, it is generally recommended to always use the "soname" of a library (i.e. the filename where the major version is appended - "libncurses.so.5") instead of the "linkname" (i.e. the filename with just the ".so" extension" - "ibncurses.so") to avoid such problems.

See also http://lispcaveats.tumblr.com/post/13259176455/ffi-linking-against-shared-libraries and https://blog.flameeyes.eu/2009/10/a-shared-library-by-any-other-name