Can't find ntpc on NetBSD
James Browning
jamesb192 at jamesb192.com
Thu Jan 30 12:16:17 UTC 2025
On Thursday, January 30, 2025 2:30:14 AM Pacific Standard Time Hal Murray via
devel wrote:
> I'm update/upgrading and cleaning up my NetBSD boxes.
>
> ntpmon broke. Python gave a backtrace rather than a simple error message.
>
> File "/usr/local/lib/python3.13/site-packages/ntp/ntpc.py", line 41, in
> _importado
> return _dlo(ntpc_paths)
> File "/usr/local/lib/python3.13/site-packages/ntp/ntpc.py", line 56, in
> _dlo
> raise OSError("Can't find %s library" % LIB)
> OSError: Can't find ntpc library
I should/will revise that in the next version. Probably with a stderr message
and an exit(1) analog.
> Comparing things with a working box, I find a link from
> /usr/local/lib/python3.13/site-packages/ntp/libntpc.so to
> /usr/local/lib/libntpc.so
> Adding that link fixes things.
> [Actually, the working box was using python 3.12 but the broken one is
> using 3.13]
>
> Was waf install supposed to install that link?
> I don't remember installing it by hand. But I could easily have forgotten.
It should not be necessary; the next version should check four things in turn.
- the granparent directory of ntpc for the clients under regular bin_test
- the great-grandparent folder for pylib tests
- LIBDIR for people like us who have compiled it
- the system library search path for people getting it from their distro
More information about the devel
mailing list