Fix link warnings related to streambuf stuff
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 38/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- cpp, wasm
- Domain
- build-system
Research direction
Reproduce the wasm build and inspect the link steps for body.cpp.obj and ios.instantiations.cpp.o, focusing on the two streambuf symbols shown in the warnings. Use the kv_store target as a reproduction, then verify that its link completes without the function signature mismatch warnings.
Written by the indexing model from the issue text.
Description
I'm seeing the following in the build logs:
wasm-ld: warning: function signature mismatch: _ZNSt3__215basic_streambufIcNS_11char_traitsIcEEE7seekposENS_4fposI11__mbstate_tEEj
>>> defined as () -> void in ../release/libfastly-thin.a(body.cpp.obj)
>>> defined as (i32, i32, i32, i32) -> void in ../wasm32-wasip1/release/libfastly_sys.a(ios.instantiations.cpp.o)
wasm-ld: warning: function signature mismatch: _ZNSt3__215basic_streambufIcNS_11char_traitsIcEEE7seekoffExNS_8ios_base7seekdirEj
>>> defined as () -> void in ../release/libfastly-thin.a(body.cpp.obj)
>>> defined as (i32, i32, i64, i32, i32) -> void in ../wasm32-wasip1/release/libfastly_sys.a(ios.instantiations.cpp.o)
[ 98%] Built target esi
[ 99%] Building CXX object test/CMakeFiles/kv_store.dir/kv_store.cpp.obj
[100%] Linking CXX executable kv_store
wasm-ld: warning: function signature mismatch: _ZNSt3__215basic_streambufIcNS_11char_traitsIcEEE7seekposENS_4fposI11__mbstate_tEEj
>>> defined as () -> void in ../release/libfastly-thin.a(body.cpp.obj)
>>> defined as (i32, i32, i32, i32) -> void in ../wasm32-wasip1/release/libfastly_sys.a(ios.instantiations.cpp.o)
wasm-ld: warning: function signature mismatch: _ZNSt3__215basic_streambufIcNS_11char_traitsIcEEE7seekoffExNS_8ios_base7seekdirEj
>>> defined as () -> void in ../release/libfastly-thin.a(body.cpp.obj)
>>> defined as (i32, i32, i64, i32, i32) -> void in ../wasm32-wasip1/release/libfastly_sys.a(ios.instantiations.cpp.o)
- Dominant language
- C++
- Stars
- 9
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from fastly/compute-sdk-cpp
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
fastly/compute-sdk-cpp#90 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
fastly/compute-sdk-cpp#87 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
fastly/compute-sdk-cpp#88 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
fastly/compute-sdk-cpp#86 ·
-
documentation
Difficulty 4/5 3-5 days Newbie friendliness 30/100
fastly/compute-sdk-cpp#80 ·
All issues in fastly/compute-sdk-cpp
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
games-on-whales/wolf#509 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
bug-unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100