Code Monkey home page Code Monkey logo

Comments (4)

proglottis avatar proglottis commented on July 18, 2024

@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.

proglottis avatar proglottis commented on July 18, 2024

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.

dmc5179 avatar dmc5179 commented on July 18, 2024

@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.

proglottis avatar proglottis commented on July 18, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.