[Libguestfs] golang examples fail to find libnbd

info at maximka.de info at maximka.de
Tue Apr 26 20:02:09 UTC 2022


Download libnbd from github and compiled successfully, but for some reason golang-executable created by `make` failed to find libnbd:

✔ ~/git/github/libguestfs/libnbd [master|✔] 
21:24 $ ./golang/examples/get_size/get_size 
./golang/examples/get_size/get_size: /lib/x86_64-linux-gnu/libnbd.so.0: version `LIBNBD_1.12' not found (required by ./golang/examples/get_size/get_size)
./golang/examples/get_size/get_size: /lib/x86_64-linux-gnu/libnbd.so.0: version `LIBNBD_1.8' not found (required by ./golang/examples/get_size/get_size)
./golang/examples/get_size/get_size: /lib/x86_64-linux-gnu/libnbd.so.0: version `LIBNBD_1.6' not found (required by ./golang/examples/get_size/get_size)
./golang/examples/get_size/get_size: /lib/x86_64-linux-gnu/libnbd.so.0: version `LIBNBD_1.4' not found (required by ./golang/examples/get_size/get_size)

Could anyone explain, why go compiles executable without any issue, but it fails to run?
I'll appreciate any feedback!

Thanks,
Alexei



More information about the Libguestfs mailing list