Skip to content

Fix the systemstat crate

error[E0432]: unresolved imports `libc::getifaddrs`, `libc::freeifaddrs`, `libc::ifaddrs`
 --> /home/ribbon/.cargo/registry/src/index.crates.io-6f17d22bba15001f/systemstat-0.2.3/src/platform/unix.rs:2:19
  |
2 | ...t, getifaddrs, freeifaddrs, ifaddrs, sockaddr, sockaddr_in6, AF...
  |       ^^^^^^^^^^  ^^^^^^^^^^^  ^^^^^^^ no `ifaddrs` in the root
  |       |           |
  |       |           no `freeifaddrs` in the root
  |       no `getifaddrs` in the root

error[E0432]: unresolved import `self::platform::PlatformImpl`
  --> /home/ribbon/.cargo/registry/src/index.crates.io-6f17d22bba15001f/systemstat-0.2.3/src/lib.rs:23:9
   |
23 | pub use self::platform::PlatformImpl as System;
   |         ^^^^^^^^^^^^^^^^------------^^^^^^^^^^
   |         |               |
   |         |               help: a similar name exists in the module: `Platform`
   |         no `PlatformImpl` in `platform`
   |
note: found an item that was configured out
  --> /home/ribbon/.cargo/registry/src/index.crates.io-6f17d22bba15001f/systemstat-0.2.3/src/platform/mod.rs:8:24
   |
8  | pub use self::windows::PlatformImpl;
   |                        ^^^^^^^^^^^^
note: found an item that was configured out
  --> /home/ribbon/.cargo/registry/src/index.crates.io-6f17d22bba15001f/systemstat-0.2.3/src/platform/mod.rs:24:24
   |
24 | pub use self::freebsd::PlatformImpl;
   |                        ^^^^^^^^^^^^
   = note: the item is gated behind the `freebsd` feature
note: found an item that was configured out
  --> /home/ribbon/.cargo/registry/src/index.crates.io-6f17d22bba15001f/systemstat-0.2.3/src/platform/mod.rs:29:24
   |
29 | pub use self::openbsd::PlatformImpl;
   |                        ^^^^^^^^^^^^
   = note: the item is gated behind the `openbsd` feature
note: found an item that was configured out
  --> /home/ribbon/.cargo/registry/src/index.crates.io-6f17d22bba15001f/systemstat-0.2.3/src/platform/mod.rs:34:23
   |
34 | pub use self::netbsd::PlatformImpl;
   |                       ^^^^^^^^^^^^
   = note: the item is gated behind the `netbsd` feature
note: found an item that was configured out
  --> /home/ribbon/.cargo/registry/src/index.crates.io-6f17d22bba15001f/systemstat-0.2.3/src/platform/mod.rs:39:22
   |
39 | pub use self::macos::PlatformImpl;
   |                      ^^^^^^^^^^^^
   = note: the item is gated behind the `macos` feature
note: found an item that was configured out
  --> /home/ribbon/.cargo/registry/src/index.crates.io-6f17d22bba15001f/systemstat-0.2.3/src/platform/mod.rs:44:22
   |
44 | pub use self::linux::PlatformImpl;
   |                      ^^^^^^^^^^^^

error[E0412]: cannot find type `PlatformMemory` in this scope
   --> /home/ribbon/.cargo/registry/src/index.crates.io-6f17d22bba15001f/systemstat-0.2.3/src/data.rs:328:26
    |
328 |     pub platform_memory: PlatformMemory,
    |                          ^^^^^^^^^^^^^^ not found in this scope

error[E0412]: cannot find type `PlatformSwap` in this scope
   --> /home/ribbon/.cargo/registry/src/index.crates.io-6f17d22bba15001f/systemstat-0.2.3/src/data.rs:364:24
    |
364 |     pub platform_swap: PlatformSwap,
    |                        ^^^^^^^^^^^^ not found in this scope