Skip to content

dropbear: rename libtomcrypt symbols to avoid NuttX collisions#3649

Merged
linguini1 merged 1 commit into
apache:masterfrom
Abhishekmishra2808:dropbear-ltc-symbol-rename
Jul 20, 2026
Merged

dropbear: rename libtomcrypt symbols to avoid NuttX collisions#3649
linguini1 merged 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.

acassis
acassis previously approved these changes Jul 19, 2026
Comment thread netutils/dropbear/Makefile Outdated
jerpelea
jerpelea previously approved these changes Jul 20, 2026
cederom
cederom previously approved these changes Jul 20, 2026

@cederom cederom left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you @Abhishekmishra2808, please also update cmake as requested by @xiaoxiang781216 before merge :-)

@cederom

cederom commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

ci still fails :-(

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 commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

@FelipeMdeO PTAL !!
CI check passed !!

@FelipeMdeO

Copy link
Copy Markdown
Contributor

@FelipeMdeO PTAL !! CI check passed !!

Hello, I tested in real hardware, working properly, go ahead.

@linguini1
linguini1 merged commit 1e490d3 into apache:master Jul 20, 2026
41 checks passed
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.

7 participants