Skip to content

Building on Windows fails #298

@pressing-buttons

Description

@pressing-buttons

Not sure if this is intended to work, but pgcat cannot be built on Windows 10.

If Windows is not a supported Platform, then please closed the issue.

Steps to reproduce the behavior:

  1. clone the pgcat git repository
  2. open a command line in that directory
  3. run cargo build --release

Compiling fails with:

warning: use of deprecated function `base64::decode`: Use Engine::decode
  --> src\scram.rs:84:34
   |
84 |         let salt = match base64::decode(&server_message.salt) {
   |                                  ^^^^^^
   |
   = note: `#[warn(deprecated)]` on by default

warning: use of deprecated function `base64::encode`: Use Engine::encode
   --> src\scram.rs:114:35
    |
114 |         let cbind_input = base64::encode(&cbind_input);
    |                                   ^^^^^^

warning: use of deprecated function `base64::encode`: Use Engine::encode
   --> src\scram.rs:152:58
    |
152 |         match write!(&mut self.message, ",p={}", base64::encode(&*client_proof)) {
    |                                                          ^^^^^^

warning: use of deprecated function `base64::decode`: Use Engine::decode
   --> src\scram.rs:164:38
    |
164 |         let verifier = match base64::decode(&final_message.value) {
    |                                      ^^^^^^

warning: `pgcat` (lib) generated 4 warnings
error[E0432]: unresolved import `tokio::signal::unix`
  --> src\main.rs:53:13
   |
53 |     signal::unix::{signal as unix_signal, SignalKind},
   |             ^^^^ could not find `unix` in `signal`

For more information about this error, try `rustc --explain E0432`.
warning: `pgcat` (bin "pgcat") generated 4 warnings (4 duplicates)
error: could not compile `pgcat` due to previous error; 4 warnings emitted

Using cargo 1.66.1 (ad779e08b 2023-01-10)

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions