Bug 293552 - audio/spiralsynthmodular: fix "undefined symbol" errors
Summary: audio/spiralsynthmodular: fix "undefined symbol" errors
Status: In Progress
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: Vladimir Druzenko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-03-03 01:48 UTC by valery
Modified: 2026-03-06 21:06 UTC (History)
1 user (show)

See Also:


Attachments
SpiralInfo.h (2.58 KB, patch)
2026-03-03 01:48 UTC, valery
no flags Details | Diff
patch-SpiralInfo.C (2.52 KB, patch)
2026-03-03 01:49 UTC, valery
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description valery 2026-03-03 01:48:20 UTC
Created attachment 268493 [details]
SpiralInfo.h

* Behavior *
at runtime, for each synth plugin, we got:
dlerror() output:
/usr/local/lib/SpiralPlugins/AmpPlugin.so: Undefined symbol "_ZN10SpiralInfo6LOCALEE"

* Why *
It seems this comes from the way newer compiler manage static properties. (SSM is 25yo).
This error has already been reported long times ago on Linux distro.

* Fix *
A way to fix it without rewriting the wheel is to inline static properties in the header.
2 patches provided for the designed part that cause the issue.
Comment 1 valery 2026-03-03 01:49:12 UTC
Created attachment 268494 [details]
patch-SpiralInfo.C
Comment 2 valery 2026-03-04 03:17:02 UTC
The LADSPA plugin lead to an error too:
"string index out of bounds"
from 
LADSPAInfo::DescendGroup (this=0x8011e4300, prefix="Unclassified/", group="LADSPA", depth=0x2) at LADSPAInfo.C:369
and crash the process. Other plugins are ok as far as I tried them.

I will try to fix it, as well for all the warnings:
warning: ISO C++11 does not allow conversion from string literal to 'char *'
coming from many files at compile time.

Dont know how many users still use this program, but who know.
I have a lot of files I would like to "convert" to Cardinal, so I need to open them with SSM in order to study, the way SSM save its projects is difficult to read.
CU,
Comment 3 commit-hook freebsd_committer freebsd_triage 2026-03-06 21:03:43 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8fedf8cd90ccc775af0f5e2a203f4c94f233bdd1

commit 8fedf8cd90ccc775af0f5e2a203f4c94f233bdd1
Author:     Valery <valery@vslash.com>
AuthorDate: 2026-03-06 20:55:38 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2026-03-06 21:02:13 +0000

    audio/spiralsynthmodular: Fix "undefined symbol" errors at runtime

    * Behavior *
    - At runtime, for each synth plugin, we got:
    dlerror() output:
    /usr/local/lib/SpiralPlugins/AmpPlugin.so: Undefined symbol "_ZN10SpiralInfo6LOCALEE"

    * Why *
    - It seems this comes from the way newer compiler manage static
      properties. (SSM is 25yo).
    - This error has already been reported long times ago on Linux distro.

    * Fix *
    - A way to fix it without rewriting the wheel is to inline static
      properties in the header.

    While here improve port:
    - Add LICENSE.
    - Register dependiencies.
    - Replace CPPFLAGS and LIBS with USES=localbase.
    - Parametrize version in WRKSRC.
    - Remove unnecessary REINPLACE_CMD in
      SpiralSound/Plugins/LADSPAPlugin/Makefile.in.
    - Merge STRIP_CMD.

    PR:     293552
    MFH:    2026Q1

 audio/spiralsynthmodular/Makefile                  | 24 ++++----
 .../files/patch-SpiralSound_SpiralInfo.C (new)     | 64 ++++++++++++++++++++
 .../files/patch-SpiralSound_SpiralInfo.h (new)     | 70 ++++++++++++++++++++++
 3 files changed, 146 insertions(+), 12 deletions(-)
Comment 4 commit-hook freebsd_committer freebsd_triage 2026-03-06 21:04:45 UTC
A commit in branch 2026Q1 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=94861f14b4187fc691357cc1f7ece432399ad1c7

commit 94861f14b4187fc691357cc1f7ece432399ad1c7
Author:     Valery <valery@vslash.com>
AuthorDate: 2026-03-06 20:55:38 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2026-03-06 21:04:34 +0000

    audio/spiralsynthmodular: Fix "undefined symbol" errors at runtime

    * Behavior *
    - At runtime, for each synth plugin, we got:
    dlerror() output:
    /usr/local/lib/SpiralPlugins/AmpPlugin.so: Undefined symbol "_ZN10SpiralInfo6LOCALEE"

    * Why *
    - It seems this comes from the way newer compiler manage static
      properties. (SSM is 25yo).
    - This error has already been reported long times ago on Linux distro.

    * Fix *
    - A way to fix it without rewriting the wheel is to inline static
      properties in the header.

    While here improve port:
    - Add LICENSE.
    - Register dependiencies.
    - Replace CPPFLAGS and LIBS with USES=localbase.
    - Parametrize version in WRKSRC.
    - Remove unnecessary REINPLACE_CMD in
      SpiralSound/Plugins/LADSPAPlugin/Makefile.in.
    - Merge STRIP_CMD.

    PR:     293552
    MFH:    2026Q1
    (cherry picked from commit 8fedf8cd90ccc775af0f5e2a203f4c94f233bdd1)

 audio/spiralsynthmodular/Makefile                  | 24 ++++----
 .../files/patch-SpiralSound_SpiralInfo.C (new)     | 64 ++++++++++++++++++++
 .../files/patch-SpiralSound_SpiralInfo.h (new)     | 70 ++++++++++++++++++++++
 3 files changed, 146 insertions(+), 12 deletions(-)
Comment 5 Vladimir Druzenko freebsd_committer freebsd_triage 2026-03-06 21:06:55 UTC
Thanks.

This port doesn't have a maintainer - do you want to become its maintainer?

> I will try to fix it
I'll be waiting for this fix.