Comments (4)
@dmc5179 that's a pain.
You probably need to revert this https://github.com/proglottis/gpgme/pull/35/files
I'm not sure what we could do as a permanent solution. It seems some systems require pkg-config and others require LD_FLAGS to be set manually.
from gpgme.
Well one option would be to use the version before I changed the build -- https://pkg.go.dev/github.com/proglottis/[email protected]
from gpgme.
@proglottis Thanks for your quick response. Switching to that version does get me past the pkgconfig error but ends with a different error below. I'm afraid this might be one of those rabbit holes that doesn't end and its just not going to run on RHEL 7 without a lot of work.
vendor/github.com/proglottis/gpgme/data.go:187:12: could not determine kind of name for C.gogpgme_data_seek
vendor/github.com/proglottis/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/proglottis/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);
Assuming that this is just a rabbit hole then we can close this issue.
from gpgme.
@dmc5179 it does sound like a bit of a rabbit hole. Seems your version of gpgme is very old.
In any case I found this comment that might help with that specific error Azure/ARO-RP#301 (comment)
No guarantees here though. It's possible we're using other types/constants/functions newer than your version of gpgme as well.
Ultimately I don't think there's a way to support all versions of gpgme via CGO without having separate libraries.
from gpgme.
Related Issues (12)
- Issues with building on Windows HOT 13
- Finding Keys on Windows HOT 3
- Does not build on Travis-CI [Linux] HOT 6
- tag official releases HOT 2
- Decrypt test fails with "No Data". HOT 4
- Linking with older versions of GPGME should use the -lgpgme-pthread library HOT 2
- compilation terminated HOT 1
- macOS `fatal error: 'gpgme.h' file not found` HOT 2
- lb: library not found for -lassuan HOT 15
- could not import C (cgo preprocessing failed)) HOT 2
- Does not build against older gpgme versions HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gpgme.