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

Build fails #6

Open
gentoo90 opened this issue Dec 21, 2015 · 5 comments
Open

Build fails #6

gentoo90 opened this issue Dec 21, 2015 · 5 comments

Comments

@gentoo90
Copy link

$ cargo build
    Updating registry `https://github.com/rust-lang/crates.io-index`
   Compiling pkg-config v0.3.6
   Compiling libc v0.1.12
   Compiling bitflags v0.3.3
   Compiling libc v0.2.4
   Compiling secret-sys v0.2.0 (file:///home/user/projects/rust/secret-rs)
   Compiling gio-sys v0.2.1
   Compiling gobject-sys v0.2.1
   Compiling glib-sys v0.2.1
   Compiling glib v0.0.7
secret-sys/src/lib.rs:6:17: 6:23 error: unresolved import `glib::ffi::GError`. Could not find `ffi` in `glib` [E0432]
secret-sys/src/lib.rs:6 use glib::ffi::{GError, GType, GList, gboolean, gsize, gpointer, GHashTable};
                                        ^~~~~~
secret-sys/src/lib.rs:6:17: 6:23 help: run `rustc --explain E0432` to see a detailed explanation
secret-sys/src/lib.rs:6:25: 6:30 error: unresolved import `glib::ffi::GType`. Could not find `ffi` in `glib` [E0432]
secret-sys/src/lib.rs:6 use glib::ffi::{GError, GType, GList, gboolean, gsize, gpointer, GHashTable};
                                                ^~~~~
secret-sys/src/lib.rs:6:25: 6:30 help: run `rustc --explain E0432` to see a detailed explanation
secret-sys/src/lib.rs:6:32: 6:37 error: unresolved import `glib::ffi::GList`. Could not find `ffi` in `glib` [E0432]
secret-sys/src/lib.rs:6 use glib::ffi::{GError, GType, GList, gboolean, gsize, gpointer, GHashTable};
                                                       ^~~~~
secret-sys/src/lib.rs:6:32: 6:37 help: run `rustc --explain E0432` to see a detailed explanation
secret-sys/src/lib.rs:6:39: 6:47 error: unresolved import `glib::ffi::gboolean`. Could not find `ffi` in `glib` [E0432]
secret-sys/src/lib.rs:6 use glib::ffi::{GError, GType, GList, gboolean, gsize, gpointer, GHashTable};
                                                              ^~~~~~~~
secret-sys/src/lib.rs:6:39: 6:47 help: run `rustc --explain E0432` to see a detailed explanation
secret-sys/src/lib.rs:6:49: 6:54 error: unresolved import `glib::ffi::gsize`. Could not find `ffi` in `glib` [E0432]
secret-sys/src/lib.rs:6 use glib::ffi::{GError, GType, GList, gboolean, gsize, gpointer, GHashTable};
                                                                        ^~~~~
secret-sys/src/lib.rs:6:49: 6:54 help: run `rustc --explain E0432` to see a detailed explanation
secret-sys/src/lib.rs:6:56: 6:64 error: unresolved import `glib::ffi::gpointer`. Could not find `ffi` in `glib` [E0432]
secret-sys/src/lib.rs:6 use glib::ffi::{GError, GType, GList, gboolean, gsize, gpointer, GHashTable};
                                                                               ^~~~~~~~
secret-sys/src/lib.rs:6:56: 6:64 help: run `rustc --explain E0432` to see a detailed explanation
secret-sys/src/lib.rs:6:66: 6:76 error: unresolved import `glib::ffi::GHashTable`. Could not find `ffi` in `glib` [E0432]
secret-sys/src/lib.rs:6 use glib::ffi::{GError, GType, GList, gboolean, gsize, gpointer, GHashTable};
                                                                                         ^~~~~~~~~~
secret-sys/src/lib.rs:6:66: 6:76 help: run `rustc --explain E0432` to see a detailed explanation
error: aborting due to 7 previous errors
Could not compile `secret-sys`.
@nicokoch
Copy link
Owner

Sorry for not responding for so long, I was busy with work.

Just a heads up, I will be working on getting this compile again during the next week (With maybe some structural reworks, this crate is from back when I was new to rust).

@gentoo90
Copy link
Author

Maybe you should take a look at https://github.com/gtk-rs/sys which is autogenerated.
I was able to generate and build libsecret bindings after adding conf/gir-secret.toml

[options]
work_mode = "sys"
library = "Secret"
version = "1"
min_cfg_version = "0.18"
external_libraries = [
   "GLib",
   "GObject",
   "Gio",
]

I didn't test it though.

@antoyo
Copy link

antoyo commented Nov 29, 2016

I started a binding for libsecret using gir to autogenerate as much code as possible.
Here it is.
Perhaps we could work together to have only one library (if you are still interested to maintain it)?

@slothyrulez
Copy link

Same issue here

@penguin359
Copy link

I found that glib::fii disappeared for several releases of glib and I had to directly use the glib-sys crate for a bit. The glib::fii module once again is visible, but there are several other regressions causing compilation errors. I have fixed those and put them in PR #10. That should fix the ability to use this crate again and appears to be working. I'll take a look at gir, but I am currently investigating using bindgen to generate the FFI bindings in future releases.

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

5 participants