Displaying 3 results from an estimated 3 matches for "libgolibbegin_a".
Did you mean:
libgolibbegin
2020 Oct 17
2
Re: Build failure of libnbd
[Adding libguestfs mailing list]
I reproduced it locally - the difference was installing "gcc-go".
I only had golang-bin installed previously. With gcc-go installed:
../run go install libguestfs.org/libnbd
write of Go pointer 0xc000016060 to non-Go memory 0x7f5fe8297390
fatal error: Go pointer stored into non-Go memory
runtime stack:
runtime_mstart
2020 Oct 17
0
Re: Build failure of libnbd
...d/nbdkit/server/local${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}" \
GOPATH="/home/rjones/d/nbdkit/plugins/golang" \
go build -o nbdkit-godisk-plugin.so -buildmode=c-shared
# _/home/rjones/d/nbdkit/plugins/golang/examples/disk
/usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/10/libgolibbegin.a(libgolibbegin_a-go-libmain.o): undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
/usr/bin/ld: /usr/lib64/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Even adding -pthread didn't help here. I guess gcc-go is just broken.
Ric...
2020 Oct 17
2
Re: Build failure of libnbd
...local${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}" \
>GOPATH="/home/rjones/d/nbdkit/plugins/golang" \
>go build -o nbdkit-godisk-plugin.so -buildmode=c-shared
># _/home/rjones/d/nbdkit/plugins/golang/examples/disk
>/usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/10/libgolibbegin.a(libgolibbegin_a-go-libmain.o): undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
>/usr/bin/ld: /usr/lib64/libpthread.so.0: error adding symbols: DSO missing from command line
>collect2: error: ld returned 1 exit status
>
>Even adding -pthread didn't help here. I guess gcc-go is j...