Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unknown file type gpgme_off_t for older versions of gpgme #301

Closed
gburges opened this issue Mar 20, 2020 · 4 comments
Closed

unknown file type gpgme_off_t for older versions of gpgme #301

gburges opened this issue Mar 20, 2020 · 4 comments

Comments

@gburges
Copy link
Contributor

gburges commented Mar 20, 2020

github.com/Azure/ARO-RP/vendor/github.com/mtrmac/gpgme

vendor/github.com/mtrmac/gpgme/data.go:187:12: could not determine kind of name for C.gogpgme_data_seek
vendor/github.com/mtrmac/gpgme/data.go:53:53: could not determine kind of name for C.gpgme_off_t
cgo:
gcc errors for preamble:
In file included from vendor/github.com/mtrmac/gpgme/data.go:6:0:
./go_gpgme.h:15:1: error: unknown type name 'gpgme_off_t'
extern gpgme_off_t gogpgme_data_seek(gpgme_data_t dh, gpgme_off_t offset, int whence);
^
./go_gpgme.h:15:55: error: unknown type name 'gpgme_off_t'
extern gpgme_off_t gogpgme_data_seek(gpgme_data_t dh, gpgme_off_t offset, int whence);
^

Using latest packages available in RHEL7

proglottis/gpgme#24

@jim-minter
Copy link
Member

Won't fix. Upgrade your development OS.

@jim-minter
Copy link
Member

Well, maybe we might fix. Setting the following environment variable helps: CGO_CFLAGS="-Dgpgme_off_t=off_t"

@mjudeikis
Copy link
Contributor

🎉

@troy0820
Copy link
Contributor

Weird, that flag crashes (since added to the Makefile) my dev environment (OSX). I removed (commented it out) it from the makefile to run make test-go and it started working again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants