Closed sokoow closed 6 years ago
I disagree. A statically complied version of teleport is absolutely essential for supporting horrible old legacy servers...
yeah, that's what I did, compiled it statically and then got this error message..
It probably helps if you post how you compiled it so they can reproduce it and find the code that is not compatible with the system you're compiling it for.
I just compiled it with go build -a -ldflags '-extldflags "-static"'
Can you post a uname -a
of the system you're compiling it on? Maybe the output of go env
as well?
it's silly, cause it's a standard x86 system with go 1.8 docker image, but here it goes:
Linux phalanx1 4.10.0-37-generic #41~16.04.1-Ubuntu SMP Fri Oct 6 22:42:59 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build958220582=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
@sokoow @ahammond I agree with the sentiment, but being practical here:
So... the current state of static builds is this: when one of us gets bored we occasionally fix them but we're not going to support this build method until we're pushed. :)
It's more a nuisance, but I noticed that teleport doesn't like to be statically compiled: