Displaying 4 results from an estimated 4 matches for "cgo_enabled".
Did you mean:
cfg_enabled
2019 Jan 03
1
Golang libvirt bindings problem
Hello everybody!
First, allow me to wish you all a Happy New year!
I have a problem with a small app that I wrote in Go and which uses libvirt
go bindings. Actually, the problem exists only when I want to compile the
code statically. Basically, when CGO_ENABLED=0 is exported, go (running go
test, go run, go build) complains:
undefined: libvirt.NewConnect
When I try to compile the source dynamically (running the same go <command>
commands) the app works/checks out as expected and works without any
problem.
I tried this on:
- CentOS 7.6 (go versio...
2014 Jul 11
2
Re: golang binding help
...g modules then I'll be glad to add it.
>
I think that golang bindings need separate repo, may be autogenerate
bindings and push resulted files to separate github repo.... In this
case peaples can do go get github.com/libguestfs/go-libguestfs and
have a package. And build it with or without CGO_ENABLED (static or
dynamic). But in case of autogenerated binding i don't know how to
write docs and keep it sync with code...
> (b) In the meantime you can read the C API documentation (in English,
> not Russian -- sorry!)
>
> http://libguestfs.org/guestfs.3.html
>
Not bad.
> and t...
2014 Jul 13
2
Re: golang binding help
...ile
system.
>> I think that golang bindings need separate repo, may be autogenerate
>> bindings and push resulted files to separate github repo.... In this
>> case peaples can do go get github.com/libguestfs/go-libguestfs and
>> have a package. And build it with or without CGO_ENABLED (static or
>> dynamic). But in case of autogenerated binding i don't know how to
>> write docs and keep it sync with code...
>
> The trouble with a separate repository is that it would quickly go out
> of date compared to the current API. That's why we strongly prefer...
2014 Jul 11
2
golang binding help
Hello. I'm very happy with libguestfs, but now i'm try to write packer
plugin to strip images:
1) resize filesystem to minimum
2) resize partitions to minimum
3) create/resize file with needed size
But golang binding have not docs. Is that possible to generate
something suitable to godoc.org to determine api methods and
input,output variables for functions?
--
Vasiliy Tolstov,
e-mail: