Public bug reported:

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.

** Affects: ubuntu
     Importance: Undecided
     Assignee: Skipper Bug Screeners (skipper-screen-team)
         Status: New


** Tags: architecture-s39064 bugnameltc-140284 severity-medium 
targetmilestone-inin1604

** Tags added: architecture-s39064 bugnameltc-140284 severity-medium
targetmilestone-inin1604

** Changed in: ubuntu
     Assignee: (unassigned) => Skipper Bug Screeners (skipper-screen-team)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1570038

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1570038/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to