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

undefined: keychain.NewItem when building for Linux from macOS #92

Open
MuweiHe opened this issue Jan 10, 2023 · 2 comments
Open

undefined: keychain.NewItem when building for Linux from macOS #92

MuweiHe opened this issue Jan 10, 2023 · 2 comments

Comments

@MuweiHe
Copy link

MuweiHe commented Jan 10, 2023

Hello! I see Linux support is mentioned in readme, but when I try to build for Linux, I'm seeing many undefined errors. Is Linux support official? Thank you!

Saw a few other discussions using xgo: https://github.com/karalabe/xgo, and using different build files for different os: #14. Is this package only meant to be called in darwin, and not supposed to be called in other os? How to make it work like mentioned in readme, communicates to a provider of the DBUS SecretService spec like gnome-keyring or ksecretservice.?

@MuweiHe MuweiHe closed this as not planned Won't fix, can't repro, duplicate, stale Jan 10, 2023
@MuweiHe MuweiHe reopened this Jan 11, 2023
@MuweiHe MuweiHe changed the title undefined: keychain.NewItem in Linux system undefined: keychain.NewItem when building for Linux from macOS Jan 11, 2023
@chyroc
Copy link

chyroc commented Feb 16, 2023

add env: CGO_ENABLED=1

@unkaktus
Copy link

@chyroc this will work compiling for macOS, but not cross-compiling for Linux. The Cgo deps require the same build and target platforms (e.g. glibc).

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

3 participants