Skip to content

dropbear: rename libtomcrypt symbols to avoid NuttX collisions#3649

Open
Abhishekmishra2808 wants to merge 1 commit into
apache:masterfrom
Abhishekmishra2808:dropbear-ltc-symbol-rename
Open

dropbear: rename libtomcrypt symbols to avoid NuttX collisions#3649
Abhishekmishra2808 wants to merge 1 commit into
apache:masterfrom
Abhishekmishra2808:dropbear-ltc-symbol-rename

Conversation

@Abhishekmishra2808

Copy link
Copy Markdown
Contributor

Summary

Rename base64_encode, base64_decode, and ecc_make_key in bundled libtomcrypt to avoid duplicate symbol link errors when dropbear is built alongside netutils/codecs and NuttX crypto (e.g., sim:dropbear).

Impact

Fixes linker failures (multiple definitions of base64_encode, etc.) on dropbear configs that enable CODECS and CRYPTO. No functional change to dropbear behavior.

Testing

  • Host: Linux (WSL2), x86_64, gcc
  • ./tools/configure.sh sim:dropbear && make
  • Result: Build succeeds; dropbear starts and SSH password auth works

@FelipeMdeO

Copy link
Copy Markdown
Contributor

Hello all, this PR will fix the pipeline in apache/nuttx#19209 (comment).
We both tested and validated.

Rename base64_encode, base64_decode, and ecc_make_key in bundled
libtomcrypt to avoid duplicate symbol link errors when dropbear is built
alongside netutils/codecs and NuttX crypto (e.g. sim:dropbear).

Signed-off-by: Abhishek Mishra <mishra.abhishek2808@gmail.com>
@Abhishekmishra2808
Abhishekmishra2808 force-pushed the dropbear-ltc-symbol-rename branch from d811add to d9d3827 Compare July 19, 2026 05:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants