{"action":"created","issue":{"url":"https://api.github.com/repos/prometheus/node_exporter/issues/127","labels_url":"https://api.github.com/repos/prometheus/node_exporter/issues/127/labels{/name}","comments_url":"https://api.github.com/repos/prometheus/node_exporter/issues/127/comments","events_url":"https://api.github.com/repos/prometheus/node_exporter/issues/127/events","html_url":"https://github.com/prometheus/node_exporter/pull/127","id":109399581,"number":127,"title":"Fixed minor compile time error","user":{"login":"kirussel","id":10412408,"avatar_url":"https://avatars.githubusercontent.com/u/10412408?v=3","gravatar_id":"","url":"https://api.github.com/users/kirussel","html_url":"https://github.com/kirussel","followers_url":"https://api.github.com/users/kirussel/followers","following_url":"https://api.github.com/users/kirussel/following{/other_user}","gists_url":"https://api.github.com/users/kirussel/gists{/gist_id}","starred_url":"https://api.github.com/users/kirussel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirussel/subscriptions","organizations_url":"https://api.github.com/users/kirussel/orgs","repos_url":"https://api.github.com/users/kirussel/repos","events_url":"https://api.github.com/users/kirussel/events{/privacy}","received_events_url":"https://api.github.com/users/kirussel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-01T22:48:46Z","updated_at":"2015-10-01T23:21:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/prometheus/node_exporter/pulls/127","html_url":"https://github.com/prometheus/node_exporter/pull/127","diff_url":"https://github.com/prometheus/node_exporter/pull/127.diff","patch_url":"https://github.com/prometheus/node_exporter/pull/127.patch"},"body":"\r\nGood day.  I deleted a line -- that appears to allow this code to compile cleanly.\r\n\r\n````\r\n$ $ uname -a\r\nFreeBSD prod.example.org 10.1-RELEASE FreeBSD 10.1-RELEASE #0 r274401: Tue Nov 11 21:02:49 UTC 2014     root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64\r\n$ gmake GO_VERSION=1.5\r\nGOPATH=/usr/home/prodbin/gocode/src/github.com/prometheus/node_exporter/.build/gopath /usr/local/bin/go get -d\r\ntouch dependencies-stamp\r\nGOPATH=/usr/home/prodbin/gocode/src/github.com/prometheus/node_exporter/.build/gopath /usr/local/bin/go build -ldflags \"-X main.Version=0.11.0\" -o node_exporter\r\n# github.com/prometheus/node_exporter/collector\r\ncc: warning: argument unused during compilation: '-pthread'\r\n# github.com/prometheus/node_exporter/collector\r\n/usr/home/prodbin/gocode/src/github.com/prometheus/node_exporter/.build/gopath/src/github.com/prometheus/node_exporter/collector/filesystem_freebsd.go:20: imported and not used: \"regexp\"\r\nMakefile.COMMON:98: recipe for target 'node_exporter' failed\r\ngmake: *** [node_exporter] Error 2\r\n````"},"comment":{"url":"https://api.github.com/repos/prometheus/node_exporter/issues/comments/144875512","html_url":"https://github.com/prometheus/node_exporter/pull/127#issuecomment-144875512","issue_url":"https://api.github.com/repos/prometheus/node_exporter/issues/127","id":144875512,"user":{"login":"grobie","id":3432,"avatar_url":"https://avatars.githubusercontent.com/u/3432?v=3","gravatar_id":"","url":"https://api.github.com/users/grobie","html_url":"https://github.com/grobie","followers_url":"https://api.github.com/users/grobie/followers","following_url":"https://api.github.com/users/grobie/following{/other_user}","gists_url":"https://api.github.com/users/grobie/gists{/gist_id}","starred_url":"https://api.github.com/users/grobie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grobie/subscriptions","organizations_url":"https://api.github.com/users/grobie/orgs","repos_url":"https://api.github.com/users/grobie/repos","events_url":"https://api.github.com/users/grobie/events{/privacy}","received_events_url":"https://api.github.com/users/grobie/received_events","type":"User","site_admin":false},"created_at":"2015-10-01T23:21:37Z","updated_at":"2015-10-01T23:21:37Z","body":"I just tried that. The problem is the C dependency obviously. I installed go1.4, prepared cross-compilation to GOOS=freebsd, but I can't test/run the code.\r\n\r\n```\r\nGOOS=freebsd go test ./...                                                                                                                                  \r\n# github.com/prometheus/node_exporter/collector\r\n../../go/src/github.com/prometheus/node_exporter/collector/filesystem_common.go:34: undefined: defIgnoredMountPoints\r\n../../go/src/github.com/prometheus/node_exporter/collector/filesystem_common.go:62: undefined: filesystemLabelNames\r\n../../go/src/github.com/prometheus/node_exporter/collector/filesystem_common.go:68: undefined: filesystemLabelNames\r\n../../go/src/github.com/prometheus/node_exporter/collector/filesystem_common.go:74: undefined: filesystemLabelNames\r\n../../go/src/github.com/prometheus/node_exporter/collector/filesystem_common.go:80: undefined: filesystemLabelNames\r\n../../go/src/github.com/prometheus/node_exporter/collector/filesystem_common.go:86: undefined: filesystemLabelNames\r\n../../go/src/github.com/prometheus/node_exporter/collector/filesystem_common.go:100: c.GetStats undefined (type *filesystemCollector has no field or method GetStats)\r\n# github.com/prometheus/node_exporter/collector\r\n../../go/src/github.com/prometheus/node_exporter/collector/filesystem_common.go:34: undefined: defIgnoredMountPoints\r\n../../go/src/github.com/prometheus/node_exporter/collector/filesystem_common.go:62: undefined: filesystemLabelNames\r\n../../go/src/github.com/prometheus/node_exporter/collector/filesystem_common.go:68: undefined: filesystemLabelNames\r\n../../go/src/github.com/prometheus/node_exporter/collector/filesystem_common.go:74: undefined: filesystemLabelNames\r\n../../go/src/github.com/prometheus/node_exporter/collector/filesystem_common.go:80: undefined: filesystemLabelNames\r\n../../go/src/github.com/prometheus/node_exporter/collector/filesystem_common.go:86: undefined: filesystemLabelNames\r\n../../go/src/github.com/prometheus/node_exporter/collector/filesystem_common.go:100: c.GetStats undefined (type *filesystemCollector has no field or method GetStats)\r\n```"}}