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

Oracle plugin does not compile #59

Closed
rafale0n opened this issue Nov 25, 2024 · 1 comment
Closed

Oracle plugin does not compile #59

rafale0n opened this issue Nov 25, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@rafale0n
Copy link

Hi there, fantastic project, thank you for creating it!

I am testing all of the available features on it and I am struggling to get it compiled on linux amd64 with a following command:

cargo build --release -F oracle

Following is returned after that:

└─$ cargo build --release -F oracle
  Downloaded async-once-cell v0.4.4
  Downloaded sibyl v0.6.16
  Downloaded 2 crates (183.9 KB) in 2.01s
warning: ambiguous wide pointer comparison, the comparison includes metadata which may not be expected
   --> crates/rust-url/percent_encoding/src/lib.rs:466:35
    |
466 |                     debug_assert!(raw_utf8 == &*bytes as *const [u8]);
    |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: `#[warn(ambiguous_wide_pointer_comparisons)]` on by default
help: use `std::ptr::addr_eq` or untyped pointers to only compare their addresses
    |
466 |                     debug_assert!(std::ptr::addr_eq(raw_utf8, &*bytes as *const [u8]));
    |                                   ++++++++++++++++++        ~                       +
help: use explicit `std::ptr::eq` method to compare metadata and addresses
    |
466 |                     debug_assert!(std::ptr::eq(raw_utf8, &*bytes as *const [u8]));
    |                                   +++++++++++++        ~                       +

warning: `percent-encoding` (lib) generated 1 warning
warning: ambiguous wide pointer comparison, the comparison includes metadata which may not be expected
   --> crates/rust-url/form_urlencoded/src/lib.rs:414:35
    |
414 |                     debug_assert!(raw_utf8 == &*bytes as *const [u8]);
    |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: `#[warn(ambiguous_wide_pointer_comparisons)]` on by default
help: use `std::ptr::addr_eq` or untyped pointers to only compare their addresses
    |
414 |                     debug_assert!(std::ptr::addr_eq(raw_utf8, &*bytes as *const [u8]));
    |                                   ++++++++++++++++++        ~                       +
help: use explicit `std::ptr::eq` method to compare metadata and addresses
    |
414 |                     debug_assert!(std::ptr::eq(raw_utf8, &*bytes as *const [u8]));
    |                                   +++++++++++++        ~                       +

warning: `form_urlencoded` (lib) generated 1 warning
warning: `percent-encoding` (lib) generated 1 warning (1 duplicate)
warning: `form_urlencoded` (lib) generated 1 warning (1 duplicate)
   Compiling sibyl v0.6.16
   Compiling async-once-cell v0.4.4
   Compiling legba v0.9.0 (/home/kali/Desktop/legba)
error[E0609]: no field `host` on type `&oracle::Oracle`
  --> src/plugins/oracle/mod.rs:62:23
   |
62 |                 &self.host,
   |                       ^^^^ unknown field
   |
   = note: available field is: `database`

error[E0061]: this function takes 1 argument but 3 arguments were supplied
  --> src/plugins/oracle/mod.rs:60:26
   |
60 |               Ok(Some(vec![Loot::from(
   |                            ^^^^^^^^^^
61 |                   "oracle",
   |                   -------- expected `Loot`, found `&str`
62 |                   &self.host,
   |                   ---------- unexpected argument #2
63 | /                 [
64 | |                     ("username".to_owned(), creds.username.to_owned()),
65 | |                     ("password".to_owned(), creds.password.to_owned()),
66 | |                 ],
   | |_________________- unexpected argument #3 of type `[(std::string::String, std::string::String); 2]`
   |
note: associated function defined here
  --> /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/convert/mod.rs:585:8
help: remove the extra arguments
   |
61 -                 "oracle",
61 +                 /* loot::Loot */,
   |

Some errors have detailed explanations: E0061, E0609.
For more information about an error, try `rustc --explain E0061`.
error: could not compile `legba` (bin "legba") due to 2 previous errors

Any pointers in the right direction ? Normal release compiles just fine.

Best
R

@evilsocket evilsocket added the bug Something isn't working label Dec 18, 2024
@evilsocket evilsocket self-assigned this Dec 18, 2024
@evilsocket
Copy link
Owner

thanks for reporting! the issue has been fixed and you should be able to compile the plugin now given you have installed the Oracle libraries

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants