Skip to content

Bump libraries/WiFi to pick up extern "C" / logging.h fix#68

Merged
thebentern merged 1 commit into
masterfrom
bump-wifi-submodule-extern-c-fix
Apr 26, 2026
Merged

Bump libraries/WiFi to pick up extern "C" / logging.h fix#68
thebentern merged 1 commit into
masterfrom
bump-wifi-submodule-extern-c-fix

Conversation

@thebentern

@thebentern thebentern commented Apr 26, 2026

Copy link
Copy Markdown
Collaborator

Summary

Bumps libraries/WiFi from c75a5e8 to 467ec17 (the merge of meshtastic/WiFi#5) so this framework picks up the extern "C" / logging.h fix in WiFiServer.cpp.

That nesting gave arduino::log(...) C linkage and collided with libc's extern "C" double log(double) from <math.h> under Apple Clang ("conflicting types for 'log'"). Linux GCC silently tolerated the misuse, which is why this never surfaced before.

Context

Hit while bringing up the macOS-native portduino build — see firmware PR meshtastic/firmware#10300.

Downstream chain

Test plan

  • Verified equivalent transformation builds meshtasticd cleanly on macOS arm64 (Apple Clang) — the firmware-side pre-build patcher applies the same reordering and the resulting binary boots in SimRadio mode.
  • No-op on Linux: pure submodule pointer bump; the WiFi-side change is preprocessor-order only.

🤖 Generated with Claude Code

The WiFi submodule's WiFiServer.cpp had `#include "logging.h"` inside an
`extern "C" { ... }` block, which gives `arduino::log(...)` C linkage and
collides with libc's `extern "C" double log(double)` from <math.h> under
Apple Clang ("conflicting types for 'log'"). Fixed in
meshtastic/WiFi#5; this commit bumps the submodule pointer to that change.

Once this is on master, the next steps are: bump platform-native's
framework-portduino pin (meshtastic/platform-native), then drop the
bin/patch-framework-portduino-darwin.py workaround in firmware PR
meshtastic/firmware#10300 and bump platform-native's zip pin.
@thebentern thebentern force-pushed the bump-wifi-submodule-extern-c-fix branch from 14a2894 to 21e989a Compare April 26, 2026 02:03
@thebentern thebentern marked this pull request as ready for review April 26, 2026 02:03
@thebentern thebentern merged commit 4473291 into master Apr 26, 2026
1 check passed
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.

1 participant