libopencryptoki-dev Package: -lopencryptoki option does not find provided /usr/lib/opencryptoki/libopencryptoki.so Library file

Bug #1570038 reported by bugproxy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu on IBM z Systems
Fix Released
Undecided
Unassigned
opencryptoki (Ubuntu)
Fix Released
Undecided
Dimitri John Ledkov

Bug Description

The ld linker is not able to find the libopenctryptoki.so library provided by the libopencryptoki-dev package due to the link location of /usr/lib/opencryptoki/libopencryptoki.so instead of /usr/lib/libopencryptoki.so

user@s35lp35:/usr/lib# dpkg -L libopencryptoki-dev
...
/usr/lib/opencryptoki/libopencryptoki.so
...

user@s35lp35:/usr/lib# ll /usr/lib/opencryptoki/libopencryptoki.so
lrwxrwxrwx 1 root root 24 Feb 24 12:57 /usr/lib/opencryptoki/libopencryptoki.so -> libopencryptoki.so.0.0.0

To remedy, currently there are the known possibilities to use
A) -L//usr/lib/opencryptoki/ -lopencryptoki as linker options
B) export LD_LIBRARY_PATH=/usr/lib/opencryptoki/
C) Add a file to /etc/ld.so.conf.d/

Requested solution:
To be able to compile and link just using -lopencryptoki would be convenient.
Running the built executable should then find the library via it's SONAME libopencryptoki.so.0.

bugproxy (bugproxy)
tags: added: architecture-s39064 bugnameltc-140284 severity-medium targetmilestone-inin1604
Changed in ubuntu:
assignee: nobody → Skipper Bug Screeners (skipper-screen-team)
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

1. Please file request upstream on sourceforge to provide pkg-config files
2. Please file request upstream to move .so, cause clearly people don't compile things from the subdir
3. I'll add an extra symlink in the -dev package

affects: ubuntu → opencryptoki (Ubuntu)
Changed in opencryptoki (Ubuntu):
status: New → Fix Committed
dann frazier (dannf)
Changed in ubuntu-z-systems:
status: New → Fix Committed
Changed in opencryptoki (Ubuntu):
assignee: Skipper Bug Screeners (skipper-screen-team) → Dimitri John Ledkov (xnox)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package opencryptoki - 3.4.1+dfsg-1ubuntu3

---------------
opencryptoki (3.4.1+dfsg-1ubuntu3) xenial; urgency=medium

  * Add extra symlink to the unversioned libopencrypto.so in the -dev
    package. LP: #1570038

 -- Dimitri John Ledkov <email address hidden> Wed, 13 Apr 2016 19:15:45 +0100

Changed in opencryptoki (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2016-04-14 08:45 EDT-------
Verified the updated libopencryptoki-dev package with release/universe and found the expected changes to be in place now. Waiting for "Fix Released" status before closing.

Details:
=====
Downloaded the .deb package file and checked content for the new link (OK), then after apt-get update/upgrade checked existence as follows:
user@s35lp35:~ file /usr/lib/libopencryptoki.so
/usr/lib/libopencryptoki.so: symbolic link to opencryptoki/libopencryptoki.so
user@s35lp35:~ file /usr/lib/opencryptoki/libopencryptoki.so
/usr/lib/opencryptoki/libopencryptoki.so: symbolic link to libopencryptoki.so.0.0.0
user@s35lp35:~ dpkg -L libopencryptoki-dev
/.
/usr
/usr/lib
/usr/lib/opencryptoki
/usr/share
/usr/share/doc
/usr/share/doc/libopencryptoki-dev
/usr/share/doc/libopencryptoki-dev/copyright
/usr/include
/usr/include/opencryptoki
/usr/include/opencryptoki/pkcs11.h
/usr/include/opencryptoki/apiclient.h
/usr/include/opencryptoki/pkcs11types.h
/usr/lib/opencryptoki/PKCS11_API.so
/usr/lib/opencryptoki/libopencryptoki.so
/usr/lib/libopencryptoki.so
/usr/share/doc/libopencryptoki-dev/changelog.Debian.gz

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Thanks for confirmation, closed on Launchpad now.

Changed in ubuntu-z-systems:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.