libsodium broken on NetBSD

Hal Murray hmurray at megapathdsl.net
Fri Jan 20 11:25:44 UTC 2017


I spoke too soon.  It builds without errors, but doesn't say where to get 
libsodium so barfs when you try to run it.

bash-4.4# /etc/rc.d/ntpd restart
Stopping ntpd.
Waiting for PIDS: 2250.
Starting ntpd.
Shared object "libsodium.so.18" not found
bash-4.4# which ntpd
/usr/sbin/ntpd
bash-4.4# ldd bob2/main/ntpd/ntpd
bob2/main/ntpd/ntpd:
        -lsodium.18 => not found
        -lm.0 => /usr/lib/libm.so.0
        -lgcc_s.1 => /usr/lib/libgcc_s.so.1
        -lc.12 => /usr/lib/libc.so.12
        -lrt.1 => /usr/lib/librt.so.1
        -lpthread.1 => /usr/lib/libpthread.so.1
        -ldns_sd.0 => /usr/lib/libdns_sd.so.0
bash-4.4#

I'm in way over my head here, but I blundered into something that is probably 
a good hint:

/usr/pkg/lib/pkgconfig/libsodium.pc says:
  Libs: -Wl,-R${libdir} -L${libdir} -lsodium

The equivalent on a Fedora box says:
  Libs: -L${libdir} -lsodium


-- 
These are my opinions.  I hate spam.





More information about the devel mailing list