sensu / sensu-influxdb-handler

Sensu Go InfluxDB Metrics Handler
https://sensu.io
MIT License
14 stars 16 forks source link

linux binary release links against glibc #1

Closed jspaleta closed 6 years ago

jspaleta commented 6 years ago

Problem: linux release links against glibc.

ldd sensu-influxdb-handler linux-vdso.so.1 (0x00007ffdb30d2000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f5dc4eed000) libc.so.6 => /lib64/libc.so.6 (0x00007f5dc4b2e000) /lib64/ld-linux-x86-64.so.2 (0x00007f5dc510c000)

Fix: CGO_ENABLED=0 in linux build environment tested fix on Fedora workstation resulted in fully static binary. Seems go defaults to linking glibc when doing a native build, and disables when cross-compiling.

Impact: Downloaded sensu-influxdb-handler_1.2_linux_amd64.tar.gz to inject into the sensu nightly docker build and exeuctable fails to operate as expected until glibc libraries are including in the container image as well.

portertech commented 6 years ago

I just ran into this issue.

nikkictl commented 6 years ago

@portertech @jspaleta TOTALLY spaced on this. I'll get this done asap!

nikkictl commented 6 years ago

New builds will be pushed here shortly: https://github.com/nikkiki/sensu-influxdb-handler/releases/tag/v1.4