Bug 252879 - net/ntpsec /usr/local/bin/ntpq fails to load shared library ntpc
Summary: net/ntpsec /usr/local/bin/ntpq fails to load shared library ntpc
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Yuri Victorovich
Depends on:
Reported: 2021-01-21 10:05 UTC by Borja Marcos
Modified: 2021-01-21 10:39 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (yuri)


Note You need to log in before you can comment on or make changes to this bug.
Description Borja Marcos 2021-01-21 10:05:26 UTC
The libraries are installed under /usr/local/lib/ntp.

They should be installed on /usr/local/lib.

# /usr/local/bin/ntpq -p
Traceback (most recent call last):
  File "/usr/local/bin/ntpq", line 26, in <module>
    import ntp.ntpc
  File "/usr/local/lib/python3.7/site-packages/ntp/ntpc.py", line 52, in <module>
    _ntpc = _importado()
  File "/usr/local/lib/python3.7/site-packages/ntp/ntpc.py", line 38, in _importado
    return _dlo(ntpc_paths)
  File "/usr/local/lib/python3.7/site-packages/ntp/ntpc.py", line 49, in _dlo
    raise OSError("Can't find %s library" % LIB)
OSError: Can't find ntpc library
Comment 1 Yuri Victorovich freebsd_committer 2021-01-21 10:39:02 UTC

Thanks for reporting!
Comment 2 commit-hook freebsd_committer 2021-01-21 10:39:27 UTC
A commit references this bug:

Author: yuri
Date: Thu Jan 21 10:39:00 UTC 2021
New revision: 562194
URL: https://svnweb.freebsd.org/changeset/ports/562194

  net/ntpsec: Fix runtime failure due to non-standard library location.

  USE_LDCONFIG fixes that.

  PR:		252879
  Reported by:	 Borja Marcos <borjam@sarenet.es>