tamatebako / libdwarfs

C++ library to access DwarFS images
2 stars 1 forks source link

dwarfs uses fmt library in way that is not fully compatible with static linking #68

Closed maxirmx closed 10 months ago

maxirmx commented 2 years ago

Dwarfs uses fmt library in way that is not fully compatible with static linking when clang compiler is used

ld: warning: direct access in function 'fmt::v8::appender fmt::v8::detail::write<char, fmt::v8::appender, float, 0>(fmt::v8::appender, float)' from file '/usr/local/opt/fmt/lib/libfmt.a(format.cc.o)' to global weak symbol 'fmt::v8::appender fmt::v8::detail::write<char, fmt::v8::appender, float, 0>(fmt::v8::appender, float)::specs' from file '/Users/runner/work/tebako/tebako/deps/lib/libdwarfs.a(metadata_v2.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.