Skip to content

error installing firefox-profile-switcher-connector on arch linux #122

@wigiwee

Description

@wigiwee
warning: unused import: `Component`
 --> src/config.rs:3:17
  |
3 | use std::path::{Component, PathBuf};
  |                 ^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

warning: unused import: `crate::process::get_parent_proc_path`
 --> src/config.rs:8:5
  |
8 | use crate::process::get_parent_proc_path;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: unused imports: `NATIVE_RESP_ID_EVENT` and `NativeResponse`
 --> src/ipc.rs:4:26
  |
4 | use crate::native_resp::{NATIVE_RESP_ID_EVENT, NativeResponse, NativeResponseEvent, NativeResponseProfileListProfileEntry, write_native_event};
  |                          ^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^

warning: unused variable: `sec`
   --> src/profiles.rs:234:29
    |
234 |                 if let Some(sec) = sec {
    |                             ^^^ help: if this is intentional, prefix it with an underscore: `_sec`
    |
    = note: `#[warn(unused_variables)]` on by default

warning: unused variable: `reset`
  --> src/ipc.rs:27:42
   |
27 | fn get_ipc_socket_name(profile_id: &str, reset: bool) -> io::Result<String> {
   |                                          ^^^^^ help: if this is intentional, prefix it with an underscore: `_reset`

warning: unused variable: `e`
  --> src/process.rs:83:17
   |
83 |             Err(e) => return Err(ForkBrowserProcError::BinaryNotFound)
   |                 ^ help: if this is intentional, prefix it with an underscore: `_e`

warning: unused variable: `child`
   --> src/process.rs:102:63
    |
102 |                         Ok(nix::sys::wait::WaitStatus::Exited(child, 0)) => Ok(()),
    |                                                               ^^^^^ help: if this is intentional, prefix it with an underscore: `_child`

warning: unused variable: `e`
   --> src/process.rs:103:25
    |
103 |                         e => Err(ForkBrowserProcError::BadExitCode)
    |                         ^ help: if this is intentional, prefix it with an underscore: `_e`

warning: unused variable: `e`
   --> src/process.rs:116:33
    |
116 | ...                   Err(e) => 1
    |                           ^ help: if this is intentional, prefix it with an underscore: `_e`

warning: field `0` is never read
  --> src/options.rs:26:19
   |
26 |     OpenFileError(io::Error),
   |     ------------- ^^^^^^^^^
   |     |
   |     field in this variant
   |
   = note: `WriteGlobalOptionsError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
   = note: `#[warn(dead_code)]` on by default
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
   |
26 -     OpenFileError(io::Error),
26 +     OpenFileError(()),
   |

warning: field `0` is never read
  --> src/options.rs:27:20
   |
27 |     WriteFileError(serde_json::Error)
   |     -------------- ^^^^^^^^^^^^^^^^^
   |     |
   |     field in this variant
   |
   = note: `WriteGlobalOptionsError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
   |
27 -     WriteFileError(serde_json::Error)
27 +     WriteFileError(())
   |

warning: field `0` is never read
  --> src/profiles.rs:54:14
   |
54 |     IniError(ini::Error),
   |     -------- ^^^^^^^^^^
   |     |
   |     field in this variant
   |
   = note: `ReadProfilesError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
   |
54 -     IniError(ini::Error),
54 +     IniError(()),
   |

warning: field `0` is never read
  --> src/profiles.rs:55:22
   |
55 |     AvatarStoreError(io::Error),
   |     ---------------- ^^^^^^^^^
   |     |
   |     field in this variant
   |
   = note: `ReadProfilesError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
   |
55 -     AvatarStoreError(io::Error),
55 +     AvatarStoreError(()),
   |

warning: field `0` is never read
  --> src/profiles.rs:56:26
   |
56 |     BadAvatarStoreFormat(serde_json::Error),
   |     -------------------- ^^^^^^^^^^^^^^^^^
   |     |
   |     field in this variant
   |
   = note: `ReadProfilesError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
   |
56 -     BadAvatarStoreFormat(serde_json::Error),
56 +     BadAvatarStoreFormat(()),
   |

warning: field `0` is never read
  --> src/profiles.rs:57:23
   |
57 |     OptionsStoreError(io::Error),
   |     ----------------- ^^^^^^^^^
   |     |
   |     field in this variant
   |
   = note: `ReadProfilesError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
   |
57 -     OptionsStoreError(io::Error),
57 +     OptionsStoreError(()),
   |

warning: field `0` is never read
  --> src/profiles.rs:58:27
   |
58 |     BadOptionsStoreFormat(serde_json::Error)
   |     --------------------- ^^^^^^^^^^^^^^^^^
   |     |
   |     field in this variant
   |
   = note: `ReadProfilesError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
   |
58 -     BadOptionsStoreFormat(serde_json::Error)
58 +     BadOptionsStoreFormat(())
   |

warning: field `0` is never read
   --> src/profiles.rs:156:19
    |
156 |     WriteIniError(io::Error),
    |     ------------- ^^^^^^^^^
    |     |
    |     field in this variant
    |
    = note: `WriteProfilesError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
    |
156 -     WriteIniError(io::Error),
156 +     WriteIniError(()),
    |

warning: field `0` is never read
   --> src/profiles.rs:157:25
    |
157 |     OpenAvatarFileError(io::Error),
    |     ------------------- ^^^^^^^^^
    |     |
    |     field in this variant
    |
    = note: `WriteProfilesError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
    |
157 -     OpenAvatarFileError(io::Error),
157 +     OpenAvatarFileError(()),
    |

warning: field `0` is never read
   --> src/profiles.rs:158:26
    |
158 |     WriteAvatarFileError(serde_json::Error),
    |     -------------------- ^^^^^^^^^^^^^^^^^
    |     |
    |     field in this variant
    |
    = note: `WriteProfilesError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
    |
158 -     WriteAvatarFileError(serde_json::Error),
158 +     WriteAvatarFileError(()),
    |

warning: field `0` is never read
   --> src/profiles.rs:159:26
    |
159 |     OpenOptionsFileError(io::Error),
    |     -------------------- ^^^^^^^^^
    |     |
    |     field in this variant
    |
    = note: `WriteProfilesError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
    |
159 -     OpenOptionsFileError(io::Error),
159 +     OpenOptionsFileError(()),
    |

warning: field `0` is never read
   --> src/profiles.rs:160:27
    |
160 |     WriteOptionsFileError(serde_json::Error)
    |     --------------------- ^^^^^^^^^^^^^^^^^
    |     |
    |     field in this variant
    |
    = note: `WriteProfilesError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
    |
160 -     WriteOptionsFileError(serde_json::Error)
160 +     WriteOptionsFileError(())
    |

warning: associated function `error_with_dbg_str` is never used
  --> src/native_resp.rs:60:12
   |
45 | impl NativeResponse {
   | ------------------- associated function in this implementation
...
60 |     pub fn error_with_dbg_str(msg: &str, err: String) -> NativeResponse {
   |            ^^^^^^^^^^^^^^^^^^

warning: field `0` is never read
   --> src/ipc.rs:146:24
    |
146 |     SerializationError(serde_cbor::Error),
    |     ------------------ ^^^^^^^^^^^^^^^^^
    |     |
    |     field in this variant
    |
    = note: `IpcError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
    |
146 -     SerializationError(serde_cbor::Error),
146 +     SerializationError(()),
    |

warning: field `0` is never read
   --> src/ipc.rs:147:13
    |
147 |     IoError(io::Error),
    |     ------- ^^^^^^^^^
    |     |
    |     field in this variant
    |
    = note: `IpcError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
    |
147 -     IoError(io::Error),
147 +     IoError(()),
    |

warning: field `0` is never read
   --> src/ipc.rs:148:18
    |
148 |     NetworkError(nng::Error)
    |     ------------ ^^^^^^^^^^
    |     |
    |     field in this variant
    |
    = note: `IpcError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
    |
148 -     NetworkError(nng::Error)
148 +     NetworkError(())
    |

warning: field `error_message` is never read
  --> src/process.rs:30:17
   |
30 |     ForkError { error_message: String },
   |     ---------   ^^^^^^^^^^^^^
   |     |
   |     field in this variant
   |
   = note: `ForkBrowserProcError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis

warning: variants `ProcessLaunchError`, `MSIXProcessLaunchError`, and `COMError` are never constructed
  --> src/process.rs:31:5
   |
28 | pub enum ForkBrowserProcError {
   |          -------------------- variants in this enum
...
31 |     ProcessLaunchError(io::Error),
   |     ^^^^^^^^^^^^^^^^^^
32 |     MSIXProcessLaunchError { error_message: String },
   |     ^^^^^^^^^^^^^^^^^^^^^^
...
35 |     COMError { error_message: String }
   |     ^^^^^^^^
   |
   = note: `ForkBrowserProcError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis

warning: field `0` is never read
   --> src/process.rs:165:27
    |
165 |     NoCrashReporterEnvVar(VarError),
    |     --------------------- ^^^^^^^^
    |     |
    |     field in this variant
    |
    = note: `GetParentProcError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
    |
165 -     NoCrashReporterEnvVar(VarError),
165 +     NoCrashReporterEnvVar(()),
    |

warning: variants `LinuxOpenCurProcFailed`, `LinuxFailedToParsePidString`, `LinuxCouldNotFindPPid`, and `LinuxResolveParentExeFailed` are never constructed
   --> src/process.rs:166:5
    |
164 | pub enum GetParentProcError {
    |          ------------------ variants in this enum
165 |     NoCrashReporterEnvVar(VarError),
166 |     LinuxOpenCurProcFailed(io::Error),
    |     ^^^^^^^^^^^^^^^^^^^^^^
167 |     LinuxFailedToParsePidString(String),
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
168 |     LinuxCouldNotFindPPid,
    |     ^^^^^^^^^^^^^^^^^^^^^
169 |     LinuxResolveParentExeFailed(io::Error)
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: `GetParentProcError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis

warning: field `data_dir` is never read
  --> src/main.rs:64:13
   |
57 |     pub struct AppState {
   |                -------- field in this struct
...
64 |         pub data_dir: PathBuf
   |             ^^^^^^^^
   |
   = note: `AppState` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis

warning: unused `Result` that must be used
  --> src/main.rs:87:5
   |
87 |     fs::create_dir_all(pref_dir);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: this `Result` may be an `Err` variant, which should be handled
   = note: `#[warn(unused_must_use)]` on by default
help: use `let _ = ...` to ignore the resulting value
   |
87 |     let _ = fs::create_dir_all(pref_dir);
   |     +++++++

warning: unused `Result` that must be used
  --> src/main.rs:88:5
   |
88 |     fs::create_dir_all(data_dir);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: this `Result` may be an `Err` variant, which should be handled
help: use `let _ = ...` to ignore the resulting value
   |
88 |     let _ = fs::create_dir_all(data_dir);
   |     +++++++

warning: unused `Result` that must be used
   --> src/native_resp.rs:134:5
    |
134 |     handle.write_u32::<NativeEndian>(serialized.len() as u32);
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this `Result` may be an `Err` variant, which should be handled
help: use `let _ = ...` to ignore the resulting value
    |
134 |     let _ = handle.write_u32::<NativeEndian>(serialized.len() as u32);
    |     +++++++

warning: unused `Result` that must be used
   --> src/native_resp.rs:135:5
    |
135 |     handle.write_all(&serialized);
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this `Result` may be an `Err` variant, which should be handled
help: use `let _ = ...` to ignore the resulting value
    |
135 |     let _ = handle.write_all(&serialized);
    |     +++++++

warning: unused `Result` that must be used
   --> src/native_resp.rs:136:5
    |
136 |     handle.flush();
    |     ^^^^^^^^^^^^^^
    |
    = note: this `Result` may be an `Err` variant, which should be handled
help: use `let _ = ...` to ignore the resulting value
    |
136 |     let _ = handle.flush();
    |     +++++++

warning: unused `Result` that must be used
   --> src/ipc.rs:130:25
    |
130 |                         fork_browser_proc(app_state, cur_profile, Some(url));
    |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this `Result` may be an `Err` variant, which should be handled
help: use `let _ = ...` to ignore the resulting value
    |
130 |                         let _ = fork_browser_proc(app_state, cur_profile, Some(url));
    |                         +++++++

warning: unused `Result` that must be used
   --> src/ipc.rs:163:9
    |
163 |         conn.set_opt::<SendTimeout>(Some(Duration::from_millis(500)));
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this `Result` may be an `Err` variant, which should be handled
help: use `let _ = ...` to ignore the resulting value
    |
163 |         let _ = conn.set_opt::<SendTimeout>(Some(Duration::from_millis(500)));
    |         +++++++

warning: unused `Result` that must be used
   --> src/ipc.rs:164:9
    |
164 |         conn.set_opt::<RecvTimeout>(Some(Duration::from_millis(3000)));
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this `Result` may be an `Err` variant, which should be handled
help: use `let _ = ...` to ignore the resulting value
    |
164 |         let _ = conn.set_opt::<RecvTimeout>(Some(Duration::from_millis(3000)));
    |         +++++++

warning: unused `Result` that must be used
   --> src/ipc.rs:169:9
    |
169 |         conn.send(Message::from(&serialized));
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this `Result` may be an `Err` variant, which should be handled
help: use `let _ = ...` to ignore the resulting value
    |
169 |         let _ = conn.send(Message::from(&serialized));
    |         +++++++

warning: unused `Result` that must be used
   --> src/ipc.rs:193:9
    |
193 |         send_ipc_cmd(app_state, &profile.id, IPCCommand::UpdateProfileList);
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this `Result` may be an `Err` variant, which should be handled
help: use `let _ = ...` to ignore the resulting value
    |
193 |         let _ = send_ipc_cmd(app_state, &profile.id, IPCCommand::UpdateProfileList);
    |         +++++++

warning: unused `Result` that must be used
   --> src/ipc.rs:200:9
    |
200 |         send_ipc_cmd(app_state, &profile.id, IPCCommand::UpdateOptions);
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this `Result` may be an `Err` variant, which should be handled
help: use `let _ = ...` to ignore the resulting value
    |
200 |         let _ = send_ipc_cmd(app_state, &profile.id, IPCCommand::UpdateOptions);
    |         +++++++

warning: unused `Result` that must be used
   --> src/ipc.rs:208:13
    |
208 |             send_ipc_cmd(app_state, &profile.id, IPCCommand::CloseManager);
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this `Result` may be an `Err` variant, which should be handled
help: use `let _ = ...` to ignore the resulting value
    |
208 |             let _ = send_ipc_cmd(app_state, &profile.id, IPCCommand::CloseManager);
    |             +++++++

warning: unused `Result` that must be used
  --> src/cmd/initialize.rs:67:17
   |
67 |                 write_profiles(&app_state.config, &app_state.config_dir, profiles);
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: this `Result` may be an `Err` variant, which should be handled
help: use `let _ = ...` to ignore the resulting value
   |
67 |                 let _ = write_profiles(&app_state.config, &app_state.config_dir, profiles);
   |                 +++++++

warning: unused `Result` that must be used
   --> src/cmd/create_profile.rs:147:33
    |
147 | ...                   fs::create_dir_all(extension_parent_dir);
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this `Result` may be an `Err` variant, which should be handled
help: use `let _ = ...` to ignore the resulting value
    |
147 |                                 let _ = fs::create_dir_all(extension_parent_dir);
    |                                 +++++++

warning: unused `Result` that must be used
  --> src/cmd/delete_profile.rs:35:5
   |
35 |     fs::remove_dir_all(profile_path);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: this `Result` may be an `Err` variant, which should be handled
help: use `let _ = ...` to ignore the resulting value
   |
35 |     let _ = fs::remove_dir_all(profile_path);
   |     +++++++

error: linking with `cc` failed: exit status: 1
  |
  = note:  "cc" "-m64" "/tmp/rustcFb3Q6J/symbols.o" "<17 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/home/happypotter/.cache/yay/firefox-profile-switcher-connector/src/firefox-profile-switcher-connector-0.1.1/target/release/deps/{libnix-349caf6319f44bba.rlib,libbitflags-6cb50f5f93fc1e78.rlib,libnng-4f9ecb05227bf49b.rlib,libnng_sys-5286e1c0f3d27d25.rlib,libbyteorder-fe1236858c6c5398.rlib,libserde_cbor-3fd77c7a451a939e.rlib,libhalf-a8097935a59fd133.rlib,librand-973bbbcc837fadff.rlib,librand_chacha-092622f07475ad95.rlib,libppv_lite86-fbdf223c1bde1b16.rlib,librand_core-881c1512728f4fe4.rlib,liburl-95352ae9d6a491ee.rlib,libidna-7684b5afafbcadcd.rlib,libunicode_normalization-4b84548abdcceb2e.rlib,libtinyvec-c06d1c592cc45847.rlib,libtinyvec_macros-ad2ed4bccd75b092.rlib,libunicode_bidi-e04704408144d535.rlib,libform_urlencoded-b3be1f416faa2d7f.rlib,libpercent_encoding-a3864b8174795fe1.rlib,libmatches-55e858941b2d2264.rlib,libfern-614660134eaf8475.rlib,liblog-6bba169e53d59750.rlib,libulid-a88cfc0cedf24d61.rlib,librand-21e5fba4c761ca7b.rlib,librand_xorshift-74861268a73fd5d0.rlib,librand_pcg-f0a04284155ab025.rlib,librand_hc-3d65eb6e8918340e.rlib,librand_chacha-bfbfd404263a9569.rlib,librand_isaac-8b1fda48f4e76e64.rlib,librand_core-61c78ae8b3b8afe4.rlib,librand_os-04c592b689c67624.rlib,librand_jitter-9aef33239a9b0773.rlib,librand_core-b2e4b5f7a57fc7d9.rlib,libchrono-c24427690147ffad.rlib,libnum_integer-1397251fc7a0a359.rlib,libnum_traits-fa04d49a4d361ad5.rlib,libtime-f8da3391fb9ed514.rlib,liblazy_static-eea62293f57dc93c.rlib,libdata_encoding-5e29956bb9393b2c.rlib,libring-8d540eef0a0e8595.rlib,libspin-d3f9a094a109ba6c.rlib,libuntrusted-b6133b7a71b61551.rlib,libcfg_if-050bee3267108012.rlib,libfs2-c566a9d393bc2ecd.rlib,libdirectories-e92b40d2c547dc29.rlib,libdirs_sys-b91ac2b81f1b1426.rlib,libserde_json-ed656ca676225946.rlib,libryu-d196e11b4abde6b5.rlib,libitoa-a37df29d1a2ace65.rlib,libserde-516f4dbc42cb3206.rlib,libini-d1b7ea00554bdfb6.rlib,libordered_multimap-8e376f75d03afbe2.rlib,libhashbrown-24c7affc8cda7b15.rlib,libahash-d5a02b23a8b5dccc.rlib,libgetrandom-6f1e4e4cef87e683.rlib,liblibc-c92d5ec6281c5e3b.rlib,libonce_cell-6c0c099ac496b7f3.rlib,libdlv_list-b22f8027230a0618.rlib,libcfg_if-c9458e3260e73beb.rlib}.rlib" "<sysroot>/lib64/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,libcfg_if-*,liblibc-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustcFb3Q6J/raw-dylibs" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/happypotter/.cache/yay/firefox-profile-switcher-connector/src/firefox-profile-switcher-connector-0.1.1/target/release/build/nng-sys-374bd8dd1be8e40a/out/lib" "-L" "/home/happypotter/.cache/yay/firefox-profile-switcher-connector/src/firefox-profile-switcher-connector-0.1.1/target/release/build/nng-sys-374bd8dd1be8e40a/out/lib64" "-L" "/home/happypotter/.cache/yay/firefox-profile-switcher-connector/src/firefox-profile-switcher-connector-0.1.1/target/release/build/ring-c4cdb8b4d9920110/out" "-L" "<sysroot>/lib64/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/happypotter/.cache/yay/firefox-profile-switcher-connector/src/firefox-profile-switcher-connector-0.1.1/target/release/deps/firefox_profile_switcher_connector-2c895a467207ae29" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-Wl,--strip-debug" "-nodefaultlibs"
  = note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note: /usr/bin/ld: /home/happypotter/.cache/yay/firefox-profile-switcher-connector/src/firefox-profile-switcher-connector-0.1.1/target/release/deps/firefox_profile_switcher_connector-2c895a467207ae29.firefox_profile_switcher_connector.7cbb2e90bf5d587-cgu.03.rcgu.o: in function `nng::socket::Socket::send':
          /home/happypotter/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nng-1.0.1/src/socket.rs:286:(.text._ZN34firefox_profile_switcher_connector3ipc9setup_ipc17h4384258f203da6b6E+0x2bf): undefined reference to `nng_sendmsg'
          /usr/bin/ld: /home/happypotter/.cache/yay/firefox-profile-switcher-connector/src/firefox-profile-switcher-connector-0.1.1/target/release/deps/firefox_profile_switcher_connector-2c895a467207ae29.firefox_profile_switcher_connector.7cbb2e90bf5d587-cgu.03.rcgu.o: in function `nng::options::private::HasOpts::setopt_ms':
          /home/happypotter/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nng-1.0.1/src/options/private.rs:184:(.text._ZN34firefox_profile_switcher_connector3ipc12send_ipc_cmd17h6f61c7fa4708fb0aE.llvm.8485584295374613391+0x17d): undefined reference to `nng_socket_set_ms'
          /usr/bin/ld: /home/happypotter/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nng-1.0.1/src/options/private.rs:184:(.text._ZN34firefox_profile_switcher_connector3ipc12send_ipc_cmd17h6f61c7fa4708fb0aE.llvm.8485584295374613391+0x1a0): undefined reference to `nng_socket_set_ms'
          /usr/bin/ld: /home/happypotter/.cache/yay/firefox-profile-switcher-connector/src/firefox-profile-switcher-connector-0.1.1/target/release/deps/firefox_profile_switcher_connector-2c895a467207ae29.firefox_profile_switcher_connector.7cbb2e90bf5d587-cgu.03.rcgu.o: in function `nng::socket::Socket::send':
          /home/happypotter/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nng-1.0.1/src/socket.rs:286:(.text._ZN34firefox_profile_switcher_connector3ipc12send_ipc_cmd17h6f61c7fa4708fb0aE.llvm.8485584295374613391+0x27f): undefined reference to `nng_sendmsg'
          /usr/bin/ld: /home/happypotter/.cache/yay/firefox-profile-switcher-connector/src/firefox-profile-switcher-connector-0.1.1/target/release/deps/libnng-4f9ecb05227bf49b.rlib(nng-4f9ecb05227bf49b.nng.74f77b8955f29e69-cgu.0.rcgu.o): in function `nng::socket::Inner::close':
          /home/happypotter/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nng-1.0.1/src/socket.rs:639:(.text._ZN5alloc4sync16Arc$LT$T$C$A$GT$9drop_slow17h97b060bfeac3bc96E+0x17): undefined reference to `nng_close'
          /usr/bin/ld: /home/happypotter/.cache/yay/firefox-profile-switcher-connector/src/firefox-profile-switcher-connector-0.1.1/target/release/deps/libnng-4f9ecb05227bf49b.rlib(nng-4f9ecb05227bf49b.nng.74f77b8955f29e69-cgu.0.rcgu.o): in function `nng::message::Message::as_mut_slice':
          /home/happypotter/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nng-1.0.1/src/message.rs:130:(.text._ZN3nng7message7Message12as_mut_slice17h9d8f7ecce4f00b67E+0xf): undefined reference to `nng_msg_body'
          /usr/bin/ld: /home/happypotter/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nng-1.0.1/src/message.rs:131:(.text._ZN3nng7message7Message12as_mut_slice17h9d8f7ecce4f00b67E+0x1b): undefined reference to `nng_msg_len'
          /usr/bin/ld: /home/happypotter/.cache/yay/firefox-profile-switcher-connector/src/firefox-profile-switcher-connector-0.1.1/target/release/deps/libnng-4f9ecb05227bf49b.rlib(nng-4f9ecb05227bf49b.nng.74f77b8955f29e69-cgu.0.rcgu.o): in function `<nng::message::Message as core::ops::drop::Drop>::drop':
          /home/happypotter/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nng-1.0.1/src/message.rs:234:(.text._ZN63_$LT$nng..message..Message$u20$as$u20$core..ops..drop..Drop$GT$4drop17hc86594304ce714f9E+0xa): undefined reference to `nng_msg_free'
          /usr/bin/ld: /home/happypotter/.cache/yay/firefox-profile-switcher-connector/src/firefox-profile-switcher-connector-0.1.1/target/release/deps/libnng-4f9ecb05227bf49b.rlib(nng-4f9ecb05227bf49b.nng.74f77b8955f29e69-cgu.0.rcgu.o): in function `<nng::message::Message as core::convert::From<&[u8]>>::from':
          /home/happypotter/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nng-1.0.1/src/message.rs:264:(.text._ZN98_$LT$nng..message..Message$u20$as$u20$core..convert..From$LT$$RF$alloc..vec..Vec$LT$u8$GT$$GT$$GT$4from17h6f0ddda5c15c0a1cE+0x26): undefined reference to `nng_msg_alloc'
          /usr/bin/ld: /home/happypotter/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nng-1.0.1/src/message.rs:273:(.text._ZN98_$LT$nng..message..Message$u20$as$u20$core..convert..From$LT$$RF$alloc..vec..Vec$LT$u8$GT$$GT$$GT$4from17h6f0ddda5c15c0a1cE+0x3c): undefined reference to `nng_msg_body'
          /usr/bin/ld: /home/happypotter/.cache/yay/firefox-profile-switcher-connector/src/firefox-profile-switcher-connector-0.1.1/target/release/deps/libnng-4f9ecb05227bf49b.rlib(nng-4f9ecb05227bf49b.nng.74f77b8955f29e69-cgu.0.rcgu.o): in function `nng::message::Message::as_slice':
          /home/happypotter/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nng-1.0.1/src/message.rs:119:(.text._ZN65_$LT$nng..message..Message$u20$as$u20$core..ops..deref..Deref$GT$5deref17h21d80c17b1abd9ceE+0xf): undefined reference to `nng_msg_body'
          /usr/bin/ld: /home/happypotter/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nng-1.0.1/src/message.rs:120:(.text._ZN65_$LT$nng..message..Message$u20$as$u20$core..ops..deref..Deref$GT$5deref17h21d80c17b1abd9ceE+0x1b): undefined reference to `nng_msg_len'
          /usr/bin/ld: /home/happypotter/.cache/yay/firefox-profile-switcher-connector/src/firefox-profile-switcher-connector-0.1.1/target/release/deps/libnng-4f9ecb05227bf49b.rlib(nng-4f9ecb05227bf49b.nng.74f77b8955f29e69-cgu.0.rcgu.o): in function `<nng::message::Message as core::convert::From<&[u8]>>::from':
          /home/happypotter/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nng-1.0.1/src/message.rs:264:(.text._ZN92_$LT$nng..message..Message$u20$as$u20$core..convert..From$LT$$u5b$u8$u3b$$u20$1$u5d$$GT$$GT$4from17hc8783b6538ea1c08E+0x20): undefined reference to `nng_msg_alloc'
          /usr/bin/ld: /home/happypotter/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nng-1.0.1/src/message.rs:273:(.text._ZN92_$LT$nng..message..Message$u20$as$u20$core..convert..From$LT$$u5b$u8$u3b$$u20$1$u5d$$GT$$GT$4from17hc8783b6538ea1c08E+0x36): undefined reference to `nng_msg_body'
          /usr/bin/ld: /home/happypotter/.cache/yay/firefox-profile-switcher-connector/src/firefox-profile-switcher-connector-0.1.1/target/release/deps/libnng-4f9ecb05227bf49b.rlib(nng-4f9ecb05227bf49b.nng.74f77b8955f29e69-cgu.4.rcgu.o): in function `nng::socket::Inner::close':
          /home/happypotter/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nng-1.0.1/src/socket.rs:639:(.text._ZN4core3ptr68drop_in_place$LT$alloc..sync..ArcInner$LT$nng..socket..Inner$GT$$GT$17h651a2f0d63b2d65bE+0x15): undefined reference to `nng_close'
          /usr/bin/ld: /home/happypotter/.cache/yay/firefox-profile-switcher-connector/src/firefox-profile-switcher-connector-0.1.1/target/release/deps/libnng-4f9ecb05227bf49b.rlib(nng-4f9ecb05227bf49b.nng.74f77b8955f29e69-cgu.4.rcgu.o): in function `nng::socket::Socket::new':
          /home/happypotter/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nng-1.0.1/src/socket.rs:62:(.text._ZN3nng6socket6Socket3new17h151dde345ece0214E+0x2d): undefined reference to `nng_bus0_open'
          /usr/bin/ld: /home/happypotter/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nng-1.0.1/src/socket.rs:66:(.text._ZN3nng6socket6Socket3new17h151dde345ece0214E+0x44): undefined reference to `nng_pull0_open'
          /usr/bin/ld: /home/happypotter/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nng-1.0.1/src/socket.rs:71:(.text._ZN3nng6socket6Socket3new17h151dde345ece0214E+0x5b): undefined reference to `nng_sub0_open'
          /usr/bin/ld: /home/happypotter/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nng-1.0.1/src/socket.rs:64:(.text._ZN3nng6socket6Socket3new17h151dde345ece0214E+0x6e): undefined reference to `nng_pair1_open'
          /usr/bin/ld: /home/happypotter/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nng-1.0.1/src/socket.rs:65:(.text._ZN3nng6socket6Socket3new17h151dde345ece0214E+0x81): undefined reference to `nng_pub0_open'
          /usr/bin/ld: /home/happypotter/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nng-1.0.1/src/socket.rs:69:(.text._ZN3nng6socket6Socket3new17h151dde345ece0214E+0x91): undefined reference to `nng_req0_open'
          /usr/bin/ld: /home/happypotter/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nng-1.0.1/src/socket.rs:63:(.text._ZN3nng6socket6Socket3new17h151dde345ece0214E+0xa1): undefined reference to `nng_pair0_open'
          /usr/bin/ld: /home/happypotter/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nng-1.0.1/src/socket.rs:67:(.text._ZN3nng6socket6Socket3new17h151dde345ece0214E+0xb1): undefined reference to `nng_push0_open'
          /usr/bin/ld: /home/happypotter/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nng-1.0.1/src/socket.rs:68:(.text._ZN3nng6socket6Socket3new17h151dde345ece0214E+0xc1): undefined reference to `nng_rep0_open'
          /usr/bin/ld: /home/happypotter/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nng-1.0.1/src/socket.rs:72:(.text._ZN3nng6socket6Socket3new17h151dde345ece0214E+0xd1): undefined reference to `nng_surveyor0_open'
          /usr/bin/ld: /home/happypotter/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nng-1.0.1/src/socket.rs:70:(.text._ZN3nng6socket6Socket3new17h151dde345ece0214E+0xf3): undefined reference to `nng_respondent0_open'
          /usr/bin/ld: /home/happypotter/.cache/yay/firefox-profile-switcher-connector/src/firefox-profile-switcher-connector-0.1.1/target/release/deps/libnng-4f9ecb05227bf49b.rlib(nng-4f9ecb05227bf49b.nng.74f77b8955f29e69-cgu.4.rcgu.o): in function `nng::socket::Socket::dial':
          /home/happypotter/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nng-1.0.1/src/socket.rs:126:(.text._ZN3nng6socket6Socket4dial17hdce2110ac2270487E+0x57): undefined reference to `nng_dial'
          /usr/bin/ld: /home/happypotter/.cache/yay/firefox-profile-switcher-connector/src/firefox-profile-switcher-connector-0.1.1/target/release/deps/libnng-4f9ecb05227bf49b.rlib(nng-4f9ecb05227bf49b.nng.74f77b8955f29e69-cgu.4.rcgu.o): in function `nng::socket::Socket::listen':
          /home/happypotter/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nng-1.0.1/src/socket.rs:165:(.text._ZN3nng6socket6Socket6listen17h6f0a33aa2106b122E+0x57): undefined reference to `nng_listen'
          /usr/bin/ld: /home/happypotter/.cache/yay/firefox-profile-switcher-connector/src/firefox-profile-switcher-connector-0.1.1/target/release/deps/libnng-4f9ecb05227bf49b.rlib(nng-4f9ecb05227bf49b.nng.74f77b8955f29e69-cgu.4.rcgu.o): in function `nng::socket::Socket::recv':
          /home/happypotter/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nng-1.0.1/src/socket.rs:245:(.text._ZN3nng6socket6Socket4recv17hf83191c180bccccbE+0x1f): undefined reference to `nng_recvmsg'
          /usr/bin/ld: /home/happypotter/.cache/yay/firefox-profile-switcher-connector/src/firefox-profile-switcher-connector-0.1.1/target/release/deps/libring-8d540eef0a0e8595.rlib(ring-8d540eef0a0e8595.ring.1bef5ceaa09ee89f-cgu.13.rcgu.o): in function `ring::cpu::features::{{closure}}':
          /home/happypotter/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ring-0.16.19/src/cpu.rs:46:(.text._ZN4ring6digest7Context3new17h586da2a57d596b92E+0x56): undefined reference to `GFp_cpuid_setup'
          /usr/bin/ld: /home/happypotter/.cache/yay/firefox-profile-switcher-connector/src/firefox-profile-switcher-connector-0.1.1/target/release/deps/libring-8d540eef0a0e8595.rlib(sha256-x86_64-elf.o): in function `GFp_sha256_block_data_order':
          /home/happypotter/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ring-0.16.19/pregenerated/sha256-x86_64-elf.S:21:(.text+0x3): undefined reference to `GFp_ia32cap_P'
          /usr/bin/ld: /home/happypotter/.cache/yay/firefox-profile-switcher-connector/src/firefox-profile-switcher-connector-0.1.1/target/release/deps/firefox_profile_switcher_connector-2c895a467207ae29: hidden symbol `GFp_ia32cap_P' isn't defined
          /usr/bin/ld: final link failed: bad value
          collect2: error: ld returned 1 exit status
          
  = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
  = note: use the `-l` flag to specify native libraries to link
  = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib)

warning: `firefox_profile_switcher_connector` (bin "firefox_profile_switcher_connector") generated 45 warnings
error: could not compile `firefox_profile_switcher_connector` (bin "firefox_profile_switcher_connector") due to 1 previous error; 45 warnings emitted
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: firefox-profile-switcher-connector-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
firefox-profile-switcher-connector - exit status 4
Image

is there anything i am missing out??? let me know

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions