mattn/go-sqlite3

'getaddrinfo' warnings when build on arm32

wwhai opened this issue · 0 comments

wwhai commented

Build

	CC=arm-linux-gnueabi-gcc # Support ubuntu 1804, should install 'gcc-arm-linux-gnueabi'
	GOARM=7
	GOARCH=arm
	GOOS=linux
	CGO_ENABLED=1
	go build -o ${APP} -ldflags "-s -w -linkmode external -extldflags -static"

##Output

/usr/bin/ld: /tmp/go-link-3033769324/000010.o: in function `unixDlOpen':
/home/ubuntu/go/pkg/mod/github.com/mattn/go-sqlite3@v1.14.15/sqlite3-binding.c:42031: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: /tmp/go-link-3033769324/000016.o: in function `_cgo_3c1cec0c9a4e_C2func_getaddrinfo':
/tmp/go-build/cgo-gcc-prolog:58: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking