MantisBT - ardour
View Issue Details
0007700ardourbugspublic2018-12-05 01:312018-12-06 00:58
0007700: LV2 Plugin Studiolink does not work
When using the Studiolink LV2 plugin from [^] in Ardour as a plugin i dont get a connection to any of the test accounts (i.e. "") if using from within ardour.

If using Studiolink-standalone it works (via pulseaudio).

It also works when using via "jalv [^]
" which is a LV2 standalone host.
No tags attached.
Issue History
2018-12-05 01:31hcw70New Issue
2018-12-05 04:33x42Note Added: 0020510
2018-12-05 04:41x42Note Added: 0020511
2018-12-05 07:00hcw70Note Added: 0020513
2018-12-06 00:58hcw70Note Added: 0020516

2018-12-05 04:33   
A quick look at [^]
It seems the plugin dynamically links against openSSL. Does it also and rely on system-wide certs?
2018-12-05 04:41   
PS. A quick-look at the binary confirms this. The plugin pollutes the global namespace with its own TLS and undefined X509:

 `nm -g ~/studio-link.lv2/`

It likely fails in Ardour because Ardour itself uses curl with openSSL and comes first (while jalv doesn't).

In short, please link your plugin statically. Plugins should be self-contained and not expose any symbols that may conflict or interfere with other plugins or the host. Many other plugins also use openSSL internally for license checks so this is crucial.

Check with `nm -g` and `objdump -T`

try CFLAGS="-fvisibility=hidden -fdata-sections -ffunction-sections" LDFLAGS="-fvisibility=hidden -fdata-sections -ffunction-sections -Wl,--gc-sections -Wl,-O1 -Wl,--as-needed -Wl,--strip-all" for the plugin and all dependencies
2018-12-05 07:00   
Thanks for you quick analysis!!!

I will forward this to the studio-link developers!
2018-12-06 00:58   
(Re)Opened a ticket at [^] . Lets see if that outcome solves the issue.