You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The same error happens with the Debian Dockerfile, so I'm at a loss as to why the linker or gcc can't find _k defined constants in brotlicommon when using -static.
I was able to compile a dynamic executable successfully with the normal go build.
The text was updated successfully, but these errors were encountered:
When attempting to compile a static Go binary with brotli static libs, it fails to find symbols defined in the libbrotlicommon.
Example Alpine Dockerfile:
Another Dockerfile example with Debian (in case of any musl weirdness):
Has the following error:
The static libs (.a suffix) appear to be present in the Alpine build:
/usr/local/app # ls /usr/lib? | grep libbrotli libbrotlicommon.a libbrotlicommon.so libbrotlicommon.so.1 libbrotlicommon.so.1.1.0 libbrotlidec.a libbrotlidec.so libbrotlidec.so.1 libbrotlidec.so.1.1.0 libbrotlienc.a libbrotlienc.so libbrotlienc.so.1 libbrotlienc.so.1.1.0
The same error happens with the Debian Dockerfile, so I'm at a loss as to why the linker or gcc can't find
_k
defined constants in brotlicommon when using-static
.I was able to compile a dynamic executable successfully with the normal
go build
.The text was updated successfully, but these errors were encountered: