Bug 280015 - audio/vosk-api not usable
Summary: audio/vosk-api not usable
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Yuri Victorovich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-27 14:30 UTC by Baptiste Daroussin
Modified: 2024-10-10 16:43 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Baptiste Daroussin freebsd_committer freebsd_triage 2024-06-27 14:30:32 UTC
I have been trying to use py-vosk through the vosk-transcriber because libvosk.so has missing symbols.


  File "/usr/local/lib/python3.11/site-packages/vosk/__init__.py", line 37, in <module>
    _c = open_dll()
         ^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/vosk/__init__.py", line 31, in open_dll
    return _ffi.dlopen(os.path.join(dlldir, "libvosk.so"))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: cannot load library '/usr/local/lib/libvosk.so': /usr/local/lib/libvosk.so: Undefined symbol "_ZN9ProcessorC1ERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEES8_"
Comment 1 Baptiste Daroussin freebsd_committer freebsd_triage 2024-06-27 14:31:12 UTC
this current on current.
Comment 2 Yuri Victorovich freebsd_committer freebsd_triage 2024-10-10 16:42:34 UTC
Fixed.
Comment 3 commit-hook freebsd_committer freebsd_triage 2024-10-10 16:43:31 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0b60a01805c5184555f4c887f9397f6856030a8f

commit 0b60a01805c5184555f4c887f9397f6856030a8f
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-10-10 14:48:30 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-10-10 16:42:49 +0000

    audio/vosk-api: Fix missing symbol problem at run-time

    PR:             280015
    Reported by:    Baptiste Daroussin <bapt@FreeBSD.org>

 audio/vosk-api/Makefile                         |  1 +
 audio/vosk-api/files/patch-CMakeLists.txt (new) | 10 ++++++++++
 2 files changed, 11 insertions(+)