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

github.com/shirou/gopsutil/host/host_darwin_cgo.go:9:11: fatal error: 'include/smc.c' file not found #919

Closed
1 task
mredencom opened this issue Aug 13, 2020 · 1 comment

Comments

@mredencom
Copy link

Describe the bug
[A clear and concise description of what the bug is.]

To Reproduce

// #cgo LDFLAGS: -framework IOKit
// #include <stdio.h>
// #include <string.h>
// #include "include/smc.c"

Expected behavior

github.com/shirou/gopsutil/host

vendor/github.com/shirou/gopsutil/host/host_darwin_cgo.go:9:11: fatal error: 'include/smc.c' file not found
#include "include/smc.c"
^~~~~~~~~~~~~~~
1 error generated.
Environment (please complete the following information):

  • Mac OS: [Darwin bogon 19.4.0 Darwin Kernel Version 19.4.0: Wed Mar 4 22:28:40 PST 2020; root:xnu-6153.101.6~15/RELEASE_X86_64 x86_64

Additional context
go 1.15

@Lomanic
Copy link
Collaborator

Lomanic commented Aug 13, 2020

Upgrade gopsutil, this is fixed since #889

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

No branches or pull requests

2 participants