libevent2 quirk on NetBSD

Hal Murray hmurray at megapathdsl.net
Mon Nov 30 09:28:09 UTC 2015


Does anybody understand this one?  Do we need to add some magic to the recipe 
waf is using?

It built without errors, but can't find the library at run time.

-bash-4.3$ bob2/ntpdig/ntpdig
Shared object "libevent-2.0.so.5" not found

It's in /usr/pkg/lib/


ldd says:
bob2/ntpdig/ntpdig:
        -lm.0 => /usr/lib/libm.so.0
        -lgcc_s.1 => /usr/lib/libgcc_s.so.1
        -lc.12 => /usr/lib/libc.so.12
        -lpthread.1 => /usr/lib/libpthread.so.1
        -levent-2.0.5 => not found
        -levent_core-2.0.5 => not found
        -levent_pthreads-2.0.5 => not found
        -lrt.1 => /usr/lib/librt.so.1

It works if I add:
-bash-4.3$ LD_LIBRARY_PATH=/usr/pkg/lib/
-bash-4.3$ export LD_LIBRARY_PATH              
-bash-4.3$ bob2/ntpdig/ntpdig
ntpdig: Must supply at least one of -b hostname, -c hostname, or hostname.
-bash-4.3$ 

I assume that buildbot doesn't have a NetBSD box (yet?).  One of the tests 
uses libevent2.


-- 
These are my opinions.  I hate spam.





More information about the devel mailing list