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

2.0: error: Failed to open library /usr/local/lib/lv2/yoshimi.lv2/yoshimi_lv2.so (/usr/local/lib/lv2/yoshimi.lv2/yoshimi_lv2.so: Undefined symbol "argp_parse") #135

Closed
yurivict opened this issue Apr 7, 2021 · 14 comments

Comments

@yurivict
Copy link

yurivict commented Apr 7, 2021

This happens when I try to instantiate the LV2 plugin in jalv.qt5.

OS: FreeBSD 12.2

@yurivict
Copy link
Author

yurivict commented Apr 7, 2021

LD_PRELOAD=/usr/local/lib/libargp.so helps.

@abrolag
Copy link
Member

abrolag commented Apr 7, 2021

This is very strange. LV2 shouldn't be seeing argp at all!
Is it just with jalv, or do you get the same result with other hosts?
In any case, I've moved the config call further down the code (where it should have been), but I doubt it makes any difference.

@yurivict
Copy link
Author

yurivict commented Apr 7, 2021

This is with all hosts.

@abrolag
Copy link
Member

abrolag commented Apr 8, 2021

I'll see what I can find. Unfortunately we don't have anyone here these days with any experience of BSD so I'll be working blind :(

@kramlie
Copy link
Contributor

kramlie commented Apr 8, 2021

When you run cmake ., do you hit this message?

@yurivict
Copy link
Author

yurivict commented Apr 8, 2021

When you run cmake ., do you hit this message?

Yes.

@abrolag
Copy link
Member

abrolag commented Apr 8, 2021 via email

@yurivict
Copy link
Author

yurivict commented Apr 8, 2021

argp-standalone is installed.
The problem is that the LV2 plugin gets linked with it when it shouldn't.

@kramlie
Copy link
Contributor

kramlie commented Apr 9, 2021

While it's true that it is unnecessary to call argp inside the LV2 plugin, LV2 and the standalone binary share this code, and it is not easy to split this part with the current codebase. It's just too hard to change this without significant refactoring.

What about standalone Yoshimi, does it work without any LD_PRELOAD magic?

@yurivict
Copy link
Author

yurivict commented Apr 9, 2021

What about standalone Yoshimi, does it work without any LD_PRELOAD magic?

Yes.

@abrolag
Copy link
Member

abrolag commented Apr 9, 2021 via email

@abrolag
Copy link
Member

abrolag commented Apr 10, 2021 via email

@abrolag
Copy link
Member

abrolag commented Apr 11, 2021 via email

@yurivict
Copy link
Author

The problem is gone in 2.0.1.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants