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 freebsd compilation error #420

Open
yjqg6666 opened this issue Oct 24, 2024 · 1 comment · May be fixed by #421
Open

fix freebsd compilation error #420

yjqg6666 opened this issue Oct 24, 2024 · 1 comment · May be fixed by #421

Comments

@yjqg6666
Copy link

I have compilation error on FreeBSD 14.1 when run pip install mitmproxy. mitmproxy depends on mitmproxy-rs which depends on boringtun.

OS: FreeBSD 14.1-RELEASE-p5
Arch: amd64
Rustc: rustc 1.81.0 (f54dd915b 2024-09-02)

Compiling boringtun v0.6.0 (https://github.com/cloudflare/boringtun?rev=e3252d9c4f4c8fc628995330f45369effd4660a1#e3252d9c)
error[E0599]: no associated item named CLOCK_BOOTTIME found for struct ClockId in the current scope
--> /home/user/.cargo/git/checkouts/boringtun-379ccad4d4acd372/e3252d9/boringtun/src/sleepyinstant/unix.rs:9:36
9 | const CLOCK_ID: ClockId = ClockId::CLOCK_BOOTTIME;
| ^^^^^^^^^^^^^^ associated item not found in ClockId
|
help: there is an associated constant CLOCK_UPTIME with a similar name
|
9 | const CLOCK_ID: ClockId = ClockId::CLOCK_UPTIME;

Related issue: mitmproxy/mitmproxy#6378, #386 #29.

yjqg6666 added a commit to yjqg6666/boringtun that referenced this issue Oct 24, 2024
@yjqg6666 yjqg6666 linked a pull request Oct 24, 2024 that will close this issue
@yjqg6666
Copy link
Author

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.

1 participant