[Bug 1561598] Re: Missing link to opencryptoki library by libopencryptoki0 package
Dimitri John Ledkov
launchpad at surgut.co.uk
Thu Apr 7 15:57:59 UTC 2016
To compile against system library and headers, one needs a -dev package,
if available.
Compiling and linking against the .so from the -dev package, will gain a
shared library dependeny on the sonamed library (e.g. .so.0 in this
case).
This is exactly the same how all -dev and runtime packages work on
Debian, Ubuntu, RHEL, Suse, etc. This is considered normal, you can find
further developer documentation at the Ubuntu Packaging guide, shared
libraries section - http://packaging.ubuntu.com/html/libraries.html
E.g. when building C apps/libraries that link with OpenSSL one installs
libssl-dev. The resulting/produced binaries gained a dependency on
libssl1.0.0 and only the runtime package needs to be installed on the
deployed systems.
Similarly, if one uses dlopen() one should dlopen() libraries with a
soname, e.g. "libfoo.so.0".
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to opencryptoki in Ubuntu.
https://bugs.launchpad.net/bugs/1561598
Title:
Missing link to opencryptoki library by libopencryptoki0 package
Status in opencryptoki package in Ubuntu:
Invalid
Bug description:
---Problem Description---
Summary
=======
The 'libopencryptoki0' package is missing a library link of /usr/lib/libopencryptoki.so -> opencryptoki/libopencryptoki.so.0
Details
=====
The opencryptoki library is not found by dynamically linked executables if /usr/lib/libopencryptoki.so does not exist as link to the opencryptoki library.
root at s8314007:~# dpkg -L libopencryptoki0|grep libopencryptoki
/usr/lib/opencryptoki/libopencryptoki.so.0.0.0
...
/usr/lib/libopencryptoki.so.0
/usr/lib/libopencryptoki.so.0.0.0
/usr/lib/opencryptoki/libopencryptoki.so.0
root at s8314007:~# ll /usr/lib/libopencryptoki.so.0
lrwxrwxrwx 1 root root 33 Feb 24 12:57 /usr/lib/libopencryptoki.so.0 -> opencryptoki/libopencryptoki.so.0
root at s8314007:~# ll /usr/lib/libopencryptoki.so.0.0.0
lrwxrwxrwx 1 root root 37 Feb 24 12:57 /usr/lib/libopencryptoki.so.0.0.0 -> opencryptoki/libopencryptoki.so.0.0.0
root at s8314007:~# ll /usr/lib/opencryptoki/libopencryptoki.so.0.0.0
-rw-r--r-- 1 root root 80840 Feb 24 12:57 /usr/lib/opencryptoki/libopencryptoki.so.0.0.0
---uname output---
Linux s8314007 4.4.0-15-generic #31-Ubuntu SMP Fri Mar 18 19:07:12 UTC 2016 s390x s390x s390x GNU/Linux
Machine Type = IBM Type: 2964 Model: 702 N96
---Debugger---
A debugger is not configured
---Steps to Reproduce---
1) Install the opencryptoki 3.4.1 package if not already installed/provided
2) Bring up and initialize the EP11 Token:
modprobe ap
lszcrypt -VVV // check for a CEX5P card to be available 'online'
systemctl start pkcsslotd.service
pkcsconf -t // check for the EP11 Token slot number
pkcsconf -c <SLOT> -I
pkcsconf -c <SLOT> -P
pkcsconf -c <SLOT> -u
pkcsconf -c <SLOT> -p
3) Copy the opencryptoki-3.4.1.tgz package to the system (mind
opencryptoki 3.4.1 should be already provided but this package also
contains the OC testcases.
4) ./bootstrap.sh, ./configure --enable-testcases, make
5) cd testcases/crypto; ./aes_tests -slot 4 (or whichever slot the
EP11 token is)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/opencryptoki/+bug/1561598/+subscriptions
More information about the foundations-bugs
mailing list