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

Does not build on Travis-CI [Linux] #17

Closed
keltia opened this issue Nov 13, 2018 · 6 comments
Closed

Does not build on Travis-CI [Linux] #17

keltia opened this issue Nov 13, 2018 · 6 comments

Comments

@keltia
Copy link
Contributor

keltia commented Nov 13, 2018

When I try to build gpgme for my module running on Travis-CI for continuous integration, I get these (maybe cgo-related) errors:

go: downloading github.com/proglottis/gpgme v0.0.0-20170426024346-49ea2555b6fc
go: downloading golang.org/x/text v0.3.0
golang_org/x/crypto/cryptobyte/asn1
github.com/BurntSushi/toml
github.com/pkg/errors
github.com/proglottis/gpgme
golang_org/x/crypto/cryptobyte
golang_org/x/net/dns/dnsmessage
net
# github.com/proglottis/gpgme
../../../../pkg/mod/github.com/proglottis/gpgme@v0.0.0-20170426024346-49ea2555b6fc/gpgme.go:72:35: could not determine kind of name for C.GPGME_ENCRYPT_NO_COMPRESS
../../../../pkg/mod/github.com/proglottis/gpgme@v0.0.0-20170426024346-49ea2555b6fc/gpgme.go:556:38: could not determine kind of name for C.GPGME_EXPORT_MODE_PKCS12
../../../../pkg/mod/github.com/proglottis/gpgme@v0.0.0-20170426024346-49ea2555b6fc/gpgme.go:555:38: could not determine kind of name for C.GPGME_EXPORT_MODE_RAW
../../../../pkg/mod/github.com/proglottis/gpgme@v0.0.0-20170426024346-49ea2555b6fc/gpgme.go:554:38: could not determine kind of name for C.GPGME_EXPORT_MODE_SECRET
../../../../pkg/mod/github.com/proglottis/gpgme@v0.0.0-20170426024346-49ea2555b6fc/gpgme.go:86:40: could not determine kind of name for C.GPGME_KEYLIST_MODE_WITH_SECRET
../../../../pkg/mod/github.com/proglottis/gpgme@v0.0.0-20170426024346-49ea2555b6fc/gpgme.go:50:30: could not determine kind of name for C.GPGME_PROTOCOL_SPAWN
golang_org/x/crypto/internal/chacha20

Not sure how to fix these.

@proglottis
Copy link
Owner

Thanks for the report. The build normally complains about constants if the gpgme version isn't exactly matched. I haven't decided quite how to solve this yet. I've had #15 open for some time for the same reason, quite tricky with apt to get a good modern version of gpgme that will run all the tests and has all the constants.

This may have changed now. I haven't checked for a while

@keltia
Copy link
Contributor Author

keltia commented Nov 13, 2018

Thanks. It was difficult enough to get the right packages on Travis but I might have different version than expected. This is what I use: https://github.com/keltia/archive/blob/master/.travis.yml

@proglottis
Copy link
Owner

I'm thinking about maybe doing something like gocv (https://github.com/hybridgroup/gocv/blob/master/Makefile). Seems really complicated though

@proglottis
Copy link
Owner

@keltia I've decided to break backwards compat here and remove the constants that are newer than what a typical linux install gets. This repo now has a travis build that at least works on linux/osx

@keltia
Copy link
Contributor Author

keltia commented Nov 27, 2018

Thanks! Will test and report.

@keltia
Copy link
Contributor Author

keltia commented Nov 29, 2018

It works, thanks!

Please take the time to tag a release, it is easier for modules.

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

No branches or pull requests

2 participants