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

Update dependencies to solve build error #258

Closed
giggio opened this issue Oct 10, 2022 · 2 comments
Closed

Update dependencies to solve build error #258

giggio opened this issue Oct 10, 2022 · 2 comments

Comments

@giggio
Copy link

giggio commented Oct 10, 2022

It seems Rust 64 has created an error when building socket2. This is causing this package to not build.

To know more, see:
NixOS/nixpkgs#194845

Maybe a cargo update is enough to update the dependencies cache but maybe trust-dns-resolver, the dependency bringing socket2 needs an update.

Update: I have confirmed that running cargo update fixes the build. Submitting a new version with the updated Cargo.lock should be enough.

@giggio
Copy link
Author

giggio commented Oct 10, 2022

This is the build log:

~/p/bandwhich on  main 🤷1 is 📦 v0.20.0 via 🦀 v1.64.0                                                                                          at 10:05:31
!✖1 ❯ cargo build
    Updating git repository `https://github.com/tailhook/resolv-conf`
  Downloaded resolv-conf v0.7.0
  Downloaded serde_derive v1.0.102
  Downloaded 2 crates (67.0 KB) in 1.50s
   Compiling libc v0.2.76
   Compiling cfg-if v0.1.9
   Compiling proc-macro2 v1.0.6
   Compiling unicode-xid v0.2.0
   Compiling syn v1.0.11
   Compiling log v0.4.8
   Compiling memchr v2.2.1
   Compiling lazy_static v1.4.0
   Compiling rustc-serialize v0.3.24
   Compiling term v0.4.6
   Compiling unicode-xid v0.0.3
   Compiling bitflags v0.5.0
   Compiling maybe-uninit v2.0.0
   Compiling autocfg v0.1.7
   Compiling cc v1.0.47
   Compiling bitflags v1.2.1
   Compiling regex-syntax v0.6.12
   Compiling proc-macro-nested v0.1.3
   Compiling unicode-segmentation v1.6.0
   Compiling slab v0.4.2
   Compiling getrandom v0.1.13
   Compiling smallvec v1.0.0
   Compiling futures-core v0.3.1
   Compiling futures-sink v0.3.1
   Compiling glob v0.2.11
   Compiling matches v0.1.8
   Compiling ppv-lite86 v0.2.6
   Compiling pnet_base v0.26.0
   Compiling futures-task v0.3.1
   Compiling failure_derive v0.1.6
   Compiling futures-io v0.3.1
   Compiling serde v1.0.102
   Compiling pin-utils v0.1.0-alpha.4
   Compiling arc-swap v0.4.3
   Compiling unicode-width v0.1.8
   Compiling crc32fast v1.2.0
   Compiling scopeguard v1.0.0
   Compiling rustc-demangle v0.1.16
   Compiling bytes v0.5.0
   Compiling pin-project-lite v0.1.1
   Compiling match_cfg v0.1.0
   Compiling quick-error v1.2.2
   Compiling byteorder v1.3.2
   Compiling percent-encoding v2.1.0
   Compiling fnv v1.0.6
   Compiling libflate_lz77 v1.0.0
   Compiling ansi_term v0.11.0
   Compiling pnet v0.26.0
   Compiling adler32 v1.2.0
   Compiling strsim v0.8.0
   Compiling rle-decode-fast v1.0.1
   Compiling vec_map v0.8.1
   Compiling linked-hash-map v0.5.2
   Compiling hex v0.4.2
   Compiling cassowary v0.3.0
   Compiling bandwhich v0.20.0 (/home/giggio/p/bandwhich)
   Compiling thread_local v0.3.6
   Compiling num-traits v0.2.8
   Compiling num-integer v0.1.41
   Compiling heck v0.3.1
   Compiling futures-channel v0.3.1
   Compiling backtrace-sys v0.1.32
   Compiling unicode-bidi v0.3.4
   Compiling pnet_macros_support v0.26.0
   Compiling c2-chacha v0.2.3
   Compiling syntex_pos v0.42.0
   Compiling textwrap v0.11.0
   Compiling lock_api v0.3.4
   Compiling resolv-conf v0.7.0
   Compiling lru-cache v0.1.2
   Compiling log v0.3.9
   Compiling smallvec v0.6.13
   Compiling aho-corasick v0.7.6
   Compiling libflate v1.0.2
   Compiling unicode-normalization v0.1.9
   Compiling syntex_errors v0.42.0
   Compiling iovec v0.1.4
   Compiling net2 v0.2.33
   Compiling parking_lot_core v0.7.2
   Compiling mio v0.7.0
   Compiling signal-hook-registry v1.2.1
   Compiling pnet_sys v0.26.0
   Compiling socket2 v0.3.11
   Compiling time v0.1.42
   Compiling atty v0.2.13
   Compiling hostname v0.3.1
   Compiling quote v1.0.2
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
   --> /home/giggio/.cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.3.11/src/sockaddr.rs:156:9
    |
156 |         mem::transmute::<SocketAddrV4, sockaddr_in>(v4);
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: source type: `SocketAddrV4` (48 bits)
    = note: target type: `sockaddr_in` (128 bits)

For more information about this error, try `rustc --explain E0512`.
error: could not compile `socket2` due to previous error
warning: build failed, waiting for other jobs to finish...

@cyqsimon
Copy link
Collaborator

Fixed in #273. See also #275.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants