[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: rpmlint warnings/errors

Michael Schwendt wrote:
On Wed, 7 Jun 2006 07:58:33 -0500, Daniel H Jones wrote:

There is a versioned .so file, however, applications that use this package
often perform a dlopen(libopencryptoki.so, ...) at runtime. Removing this
link from the base package would cause problems for those applications
(or force the installer to create the symlinks themselves).

No application should ever dlopen the non-versioned .so at run-time. If it
does, it needs to be patched. An application is built for a specific
API/ABI and must not expect an arbitrary .so to be the right one.

DHJ> W: opencryptoki devel-file-in-non-devel-package
DHJ> /usr/lib/libopencryptoki.so

Also note that ldconfig creates a symbolic link from *.so to the most
recent versioned *.so.X, which would break such an application badly when
multiple versions are installed.

I didn't follow the complete thread so I'm not sure if this is relevant but in smartcard land the ctapi is especially designed to be dlopened and to be dlopened by just xxxx.so. See the ctapi-cyberjack review:

For more on this and on how we solved this in a clean way, which should be followed by other ctapi implementations too.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]