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
I am using this library, and tried compiling my code with the new released,
go version go1.9 linux/amd64
My OS is CentOS 7.3,
Linux sargas 3.10.0-514.26.2.el7.x86_64 #1 SMP Tue Jul 4 15:04:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
and I am having this issue when static compiling.
/tmp/go-link-211633467/000001.o: In function `unixDlOpen':
[...]/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c:35900: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/tmp/go-link-211633467/000000.o: In function `_cgo_b0c710f30cfd_C2func_getaddrinfo':
/tmp/go-build/net/_obj/cgo-gcc-prolog:46: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `sem_open':
(.text+0x6823): warning: the use of `mktemp' is dangerous, better use `mkstemp'
With go.1.8.3 it compiles statically without any problem, and with go1.9.0 with the glibc shared too. Any idea on how this could be fixed?
The text was updated successfully, but these errors were encountered:
[...]/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c:37945: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/tmp/go-link-220495420/000015.o: In function `_cgo_f7895c2c5a3a_C2func_getaddrinfo':
/tmp/go-build/cgo-gcc-prolog:46: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
$ go version
go version go1.10.3 linux/amd64
$ uname -a
Linux hostname 3.10.0-862.2.3.el7.x86_64 #1 SMP Wed May 9 18:05:47 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
$ grep -A3 -B1 go-sqlite3 Gopkg.lock
[[projects]]
name = "github.com/mattn/go-sqlite3"
packages = ["."]
revision = "d31a44a0bd3b04338b506515c1cab0fe0e6e73bf"
version = "v1.8.0"
Hi,
I am using this library, and tried compiling my code with the new released,
My OS is CentOS 7.3,
and I am having this issue when static compiling.
With go.1.8.3 it compiles statically without any problem, and with go1.9.0 with the glibc shared too. Any idea on how this could be fixed?
The text was updated successfully, but these errors were encountered: