General status update, mostly NetBSD

Hal Murray hmurray at megapathdsl.net
Sun Dec 6 11:38:40 UTC 2015


audio now builds on NetBSD.  It needed libossaudio

I think I have fixes for most of the remaining warnings.
I'm testing them now.

----------

I have a fix so the current test code in pylib/check_timepps.py will work on 
NetBSD.

But that exposes a rats nest.

pylib/refclock.py thinks several refclock drivers "require" ppsapi.  Mostly, 
that's not right.  Except for the ATOM/PPS, all the drivers that use PPS also 
work without it.  They probably don't work as well, but they should work.

The next question is why do we need HAVE_PPSAPI at all?  I think it is the OR 
of HAVE_TIMEPPS_H and HAVE_SYS_TIMEPPS_H

None of the systems I have access to make HAVE_SYS_TIMEPPS_H so there is 
opportunity for cleanup in this area.

Chris: What sort of PPS do you have on OS-X?  (grep PPS build/config.h)

-----------

There is a nasty quirk on NetBSD.  libevent2 doesn't work.  It links, but 
can't find it to load at run time.  ldd shows "not found".

$ ntpdig
Shared object "libevent_core-2.0.so.5" not found

ldd says:
/usr/local/bin/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_core-2.0.5 => not found
        -levent_pthreads-2.0.5 => not found
        -lrt.1 => /usr/lib/librt.so.1

There is a /usr/pkg/lib/libevent_core-2.0.so.5

It works if I use LD_LIBRARY_PATH

LD_LIBRARY_PATH=/usr/pkg/lib/ ldd /usr/local/bin/ntpdig
/usr/local/bin/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_core-2.0.5 => /usr/pkg/lib//libevent_core-2.0.so.5
        -levent_pthreads-2.0.5 => /usr/pkg/lib//libevent_pthreads-2.0.so.5
        -lrt.1 => /usr/lib/librt.so.1


-- 
These are my opinions.  I hate spam.





More information about the devel mailing list