Public bug reported:

Hi,
I tried to move the chrony dependency from tomcrypt to libnss to avoid universe 
dependencies.
While doing so I found that libfreebl3 is not "normally" linkable being outside 
the normal ld paths.

E.g. sample program
#include <nss.h>
#include <hasht.h>
#include <nsslowhash.h>
int main(int argc, char **argv) {
    NSSLOWHASH_Begin(NSSLOWHASH_NewContext(NSSLOW_Init(), HASH_AlgSHA512));
    return 0;
}

Build:
gcc -g -O2 -fstack-protector-strong -Wformat -Werror=format-security 
-Wmissing-prototypes -Wall -pthread -Wdate-time -D_FORTIFY_SOURCE=2 
-I/usr/include/nss -I/usr/include/nspr -o docheck docheck.c -lfreebl3 
-Wl,-Bsymbolic-functions -Wl,-z,relro -v -Wl,-v -L/usr/lib/x86_64-linux-gnu/nss

Then:
ldd docheck
will give you
        libfreebl3.so => not found

Obviously a link into /usr/lib/x86_64-linux-gnu/ fixes the issue but
needs some more consideration if that is the thing we want (there might
be a reason it is where it is).

Note: Required to go on with the chrony MIR which is rather urgent to be
sorted out as it has a lot of other dependencies that need to be
adapted.

** Affects: nss (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  libfreebl3.so should be public, not in the nss subdir

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

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

Reply via email to