rgbkrk / libvirt-go

[DEPRECATED] Go bindings for libvirt
https://github.com/libvirt/libvirt-go
MIT License
166 stars 50 forks source link

could not determine kind of name for C.XXX #118

Closed purpleidea closed 7 years ago

purpleidea commented 7 years ago

Trying to build my project in travis which used libvirt-go, but now fails spectacularly with a lot of...

could not determine kind of name for C.VIR_STORAGE_VOL_NETDIR

could not determine kind of name for C.VIR_STORAGE_VOL_NETWORK

could not determine kind of name for C.VIR_STORAGE_VOL_RESIZE_ALLOCATE

could not determine kind of name for C.VIR_STORAGE_VOL_RESIZE_DELTA

could not determine kind of name for C.VIR_STORAGE_VOL_RESIZE_SHRINK

could not determine kind of name for C.VIR_STORAGE_VOL_WIPE_ALG_BSI

could not determine kind of name for C.VIR_STORAGE_VOL_WIPE_ALG_DOD

could not determine kind of name for C.VIR_STORAGE_VOL_WIPE_ALG_GUTMANN

could not determine kind of name for C.VIR_STORAGE_VOL_WIPE_ALG_NNSA

could not determine kind of name for C.VIR_STORAGE_VOL_WIPE_ALG_PFITZNER33

could not determine kind of name for C.VIR_STORAGE_VOL_WIPE_ALG_PFITZNER7

could not determine kind of name for C.VIR_STORAGE_VOL_WIPE_ALG_RANDOM

could not determine kind of name for C.VIR_STORAGE_VOL_WIPE_ALG_SCHNEIER

could not determine kind of name for C.VIR_STORAGE_VOL_WIPE_ALG_ZERO

I was hoping someone has already hit this and knows why.

Thanks!

vincentbernat commented 7 years ago

I think, it means that you don't have libvirt-dev installed.

purpleidea commented 7 years ago

On Wed, Oct 19, 2016 at 5:18 AM, Vincent Bernat notifications@github.com wrote:

I think, it means that you don't have libvirt-dev installed.

Unfortunately, I do.

vincentbernat commented 7 years ago

From the list of symbols, it seems that you are compiling with libvirt 0.9.8. I think switching to Travis' Trusty image should fix that.

purpleidea commented 7 years ago

@vincentbernat This fixed it, thanks! I've added this patch to permanently fix the problem: https://github.com/rgbkrk/libvirt-go/pull/119