libevent2 quirk on NetBSD

Hal Murray hmurray at
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 "" not found

It's in /usr/pkg/lib/

ldd says:
        -lm.0 => /usr/lib/
        -lgcc_s.1 => /usr/lib/
        -lc.12 => /usr/lib/
        -lpthread.1 => /usr/lib/
        -levent-2.0.5 => not found
        -levent_core-2.0.5 => not found
        -levent_pthreads-2.0.5 => not found
        -lrt.1 => /usr/lib/

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.

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