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

Fix undefined symbol when built with VST3 disabled. #883

Merged

Conversation

0EVSG
Copy link
Contributor

@0EVSG 0EVSG commented Mar 25, 2024

Commit cd5369c added some cleanup code to libs/ardour/session.cc, which drags in the type info symbol of VST3PluginInfo. When built with --no-vst3, the resulting binary dies at startup:

ld-elf.so.1: /usr/local/lib/ardour8/libardour.so.3: Undefined symbol
"_ZTIN6ARDOUR14VST3PluginInfoE"

Make that code compile conditional on VST3_SUPPORT. Occurs on FreeBSD 14.0-RELEASE, clang 16.0.6, amd64.

Making the include statement conditional is not strictly necessary to fix the undefined symbol, but may prevent similar problems in the future.

Original bug report: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277938

Commit cd5369c added some cleanup code to `libs/ardour/session.cc`,
which drags in the type info symbol of VST3PluginInfo. When built
with `--no-vst3`, the resulting binary dies at startup:

```
ld-elf.so.1: /usr/local/lib/ardour8/libardour.so.3: Undefined symbol
"_ZTIN6ARDOUR14VST3PluginInfoE"
```

Make that code compile conditional on VST3_SUPPORT.
Occurs on FreeBSD 14.0-RELEASE, clang 16.0.6, amd64.
@pauldavisthefirst pauldavisthefirst merged commit 8451718 into Ardour:master Mar 25, 2024
@x42
Copy link
Member

x42 commented Mar 25, 2024

Thanks. That was indeed an oversight!

freebsd-git pushed a commit to freebsd/freebsd-ports that referenced this pull request Mar 30, 2024
Undefined symbol at runtime when building with default options

Upstream PR: Ardour/ardour#883

PR:		277938
Reported by:	phryk-ports@wzff.de
Approved by:	dev@submerge.ch	(maintainer)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants