Skip to content

make: set plugin SONAME to the installed filename - #137

Open
BKPepe wants to merge 1 commit into
OLSR:masterfrom
BKPepe:plugin-soname-installed-filename
Open

make: set plugin SONAME to the installed filename#137
BKPepe wants to merge 1 commit into
OLSR:masterfrom
BKPepe:plugin-soname-installed-filename

Conversation

@BKPepe

@BKPepe BKPepe commented Aug 6, 2026

Copy link
Copy Markdown

The plugins are linked with SONAME lib$(PLUGIN_NAME).so, but they are installed as $(PLUGIN_NAME).so.$(PLUGIN_VER) and loaded via dlopen() using that filename. A library whose SONAME does not match any installed filename confuses tooling which verifies that a symlink named after the SONAME exists, for example the OpenWrt CI runtime tests:

Library /usr/lib/olsrd_arprefresh.so.0.1 has SONAME 'libolsrd_arprefresh.so'
but no corresponding symlink was found in /usr/lib

Use the full installed filename as SONAME instead. This has no functional effect on olsrd itself, since the plugins are dlopen()ed by path and never linked against.

This is currently carried as a downstream patch in the OpenWrt routing feed (openwrt/routing#1191) and it would be nice to drop it with the next update.

The plugins are linked with SONAME lib$(PLUGIN_NAME).so, but they are
installed as $(PLUGIN_NAME).so.$(PLUGIN_VER) and loaded via dlopen()
using that filename. A library whose SONAME does not match any
installed filename confuses tooling which verifies that a symlink
named after the SONAME exists, for example the OpenWrt CI runtime
tests:

    Library /usr/lib/olsrd_arprefresh.so.0.1 has SONAME
    'libolsrd_arprefresh.so' but no corresponding symlink was found

Use the full installed filename as SONAME instead. This has no
functional effect on olsrd itself, since the plugins are dlopen()ed
by path and never linked against.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
Copilot AI lite review requested due to automatic review settings August 6, 2026 07:56

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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

Successfully merging this pull request may close these issues.

2 participants