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

fix: Flux needs to link to bcrypt on windows on Rust 1.58 #39

Merged
merged 1 commit into from
Jan 19, 2022

Commits on Jan 17, 2022

  1. fix: Flux needs to link to bcrypt on windows on Rust 1.58

    Due to rust-lang/rust#84096 we need to link to bcrypt on windows else we get linker errors.
    
    cc influxdata/flux#4406
    
    https://app.circleci.com/pipelines/github/influxdata/flux/11766/workflows/d1ef0c61-babb-4682-8c74-7087013c873e/jobs/38341
    
    ```
    C:\\Users\\circleci\\AppData\\Local\\go-build\\pkgconfig\\windows_amd64\\lib/libflux-3dd4b4346280d5a830d03b58d109be24cf44fd0ab5964e0113b470e7ba1223ed.a(std-c90c2a9f63fc5684.std.04e7289e-cgu.0.rcgu.o): In function `std::sys::windows::rand::hashmap_random_keys':
    /rustc/02072b482a8b5357f7fb5e5637444ae30e423c40\/library\std\src\sys\windows/rand.rs:10: undefined reference to `BCryptGenRandom'
    /rustc/02072b482a8b5357f7fb5e5637444ae30e423c40\/library\std\src\sys\windows/rand.rs:10: undefined reference to `BCryptGenRandom'
    collect2.exe: error: ld returned 1 exit status
    
    Exited with code exit status 2
    
    ```
    Markus Westerlind committed Jan 17, 2022
    Configuration menu
    Copy the full SHA
    c49781b View commit details
    Browse the repository at this point in the history