Can Bearer be builded in OS RHEL6? #123249
Unanswered
wnbillow
asked this question in
Programming Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Question
Body
The rpm installation package for Bearer can be run on Rhel7. But it cannot run on rhel6 because the gblibc version of rhel6 is too low, and upgrading gblibc carries the risk of system crashes.
Now I want to compile Bearer on Rhel6.
The compilation error is as follows:
GOOS=linux GOFLAGS=-v GOGCFLAGS="all=-N -l" CGO_CFLAGS="$CGO_CFLAGS -std=c99" go build -ldflags "-X main.buildstamp=
date '+%Y-%m-%d_%H:%M:%S'
-X 'main.goversion=$(go version)'" -mod vendor -o bear_bin cmd/bearer/bearer.gocommand-line-arguments
/usr/local/go/pkg/tool/linux_amd64/link: running g++ failed: exit status 1
/tmp/go-link-2102899353/000039.o: In function
clock_now': parser.c:(.text+0x442): undefined reference to
clock_gettime'collect2: error:ld return 1
Do you know how to solve it, buddy? Could you please inform me? Thank you very much!
Beta Was this translation helpful? Give feedback.
All reactions