Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined symbol [unsolved] #27

Open
KonZoX opened this issue May 19, 2019 · 2 comments
Open

undefined symbol [unsolved] #27

KonZoX opened this issue May 19, 2019 · 2 comments

Comments

@KonZoX
Copy link

KonZoX commented May 19, 2019

On trying to import wrappers for a model and a decoder executing "from kaldiasr.nnet3 import KaldiNNet3OnlineModel, KaldiNNet3OnlineDecoder" i get

site-packages/kaldiasr/nnet3.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZTVN3fst11SymbolTableE

What must it be? Everything has been installed properly. Could you please specify what is going wrong with the package?

@gooofy
Copy link
Owner

gooofy commented May 20, 2019

Duplicate of #5:

try adding

-Wl,-no-as-needed

to your LDFLAGS [ seems newer versions of GCC need it ]

@gooofy gooofy closed this as completed May 20, 2019
@KonZoX
Copy link
Author

KonZoX commented May 20, 2019

Modified the line of the Makefile in such a way

LDFLAGS = -rdynamic -lm -lpthread -ldl pkg-config --libs kaldi-asr -Wl,-no-as-needed

reinstalled the package, but the issue is still pending

@KonZoX KonZoX changed the title undefined symbol undefined symbol [unsolved] May 21, 2019
@gooofy gooofy reopened this Jun 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants