Skip to content

Errors occur when build #5

@hcyGo

Description

@hcyGo

xxx@ubuntu:~/d3cap$ rustc --version --verbose
rustc 1.33.0 (2aa4c46cf 2019-02-28)
binary: rustc
commit-hash: 2aa4c46cfdd726e97360c2734835aa3515e8c858
commit-date: 2019-02-28
host: x86_64-unknown-linux-gnu
release: 1.33.0
LLVM version: 8.0

xxx@ubuntu:~/d3cap$ git checkout 2018

xxx@ubuntu:~/d3cap$ cargo build
Updating crates.io index
Downloaded crossbeam v0.7.1
Downloaded crossbeam-utils v0.6.5
Downloaded crossbeam-queue v0.1.2
Downloaded crossbeam-epoch v0.7.1
Downloaded crossbeam-deque v0.7.1
Downloaded crossbeam-channel v0.3.8
Compiling arrayvec v0.4.10
Compiling nodrop v0.1.13
Compiling memoffset v0.2.1
Compiling scopeguard v0.3.3
Compiling smallvec v0.6.9
Compiling semver v0.9.0
Compiling crossbeam-utils v0.6.5
Compiling libc v0.2.50
Compiling byteorder v1.3.1
Compiling foreign-types v0.3.2
Compiling serde v1.0.89
Compiling getopts v0.2.18
Compiling fixed_ring v0.0.1 (/home/huangcy/d3cap/src/fixed_ring)
Compiling rustc_version v0.2.3
Compiling crossbeam-queue v0.1.2
Compiling crossbeam-channel v0.3.8
Compiling openssl-sys v0.9.42
Compiling crossbeam-epoch v0.7.1
Compiling time v0.1.42
Compiling pcap v0.0.1 (/home/huangcy/d3cap/src/pcap)
error[E0308]: mismatched types
--> src/pcap/src/pcap.rs:143:9
|
142 | pub fn usec(&self) -> i32 {
| --- expected i32 because of return type
143 | self.0.tv_usec
| ^^^^^^^^^^^^^^ expected i32, found i64

error: aborting due to previous error

For more information about this error, try rustc --explain E0308.
error: Could not compile pcap.

To learn more, run the command again with --verbose.

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