{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/mig/issues/185","repository_url":"https://api.github.com/repos/mozilla/mig","labels_url":"https://api.github.com/repos/mozilla/mig/issues/185/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/mig/issues/185/comments","events_url":"https://api.github.com/repos/mozilla/mig/issues/185/events","html_url":"https://github.com/mozilla/mig/issues/185","id":135841179,"number":185,"title":"errors when building mig-agent for windows","user":{"login":"zhenyuzhong","id":7787257,"avatar_url":"https://avatars.githubusercontent.com/u/7787257?v=3","gravatar_id":"","url":"https://api.github.com/users/zhenyuzhong","html_url":"https://github.com/zhenyuzhong","followers_url":"https://api.github.com/users/zhenyuzhong/followers","following_url":"https://api.github.com/users/zhenyuzhong/following{/other_user}","gists_url":"https://api.github.com/users/zhenyuzhong/gists{/gist_id}","starred_url":"https://api.github.com/users/zhenyuzhong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhenyuzhong/subscriptions","organizations_url":"https://api.github.com/users/zhenyuzhong/orgs","repos_url":"https://api.github.com/users/zhenyuzhong/repos","events_url":"https://api.github.com/users/zhenyuzhong/events{/privacy}","received_events_url":"https://api.github.com/users/zhenyuzhong/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-02-23T19:38:31Z","updated_at":"2016-02-29T10:59:59Z","closed_at":null,"body":"Hi,\r\n\r\nI came across errors when trying to build mig-agent for windows.\r\n1. It complained about 'vendor/github.com/jvehent/service-go/service_windows.go:4:2: cannot find package \"code.google.com/p/winsvc/eventlog\" in any of: \r\n/home/parallels/.gvm/pkgsets/go1.5/global/src/mig.ninja/mig/vendor/code.google.com/p/winsvc/eventlog (vendor tree)\r\n/home/parallels/.gvm/gos/go1.5/src/code.google.com/p/winsvc/eventlog (from $GOROOT)\r\n...'\r\n\r\nI looked it up, and found that the winsvc package is under a new location: github.com/golang/sys/windows/svc/eventlog\r\n\r\nThus I pulled this package by go get, and made corresponding changes in the source code\r\nlogging_windows.go and vendor/github.com/jvehent/service-go/service_windows.go\r\n\r\nThen I ran make mig-agent AGTCONF=conf/myagent.conf BUILDENV=prod OS=windows ARCH=amd64, and got the following errors:\r\nGOOS=windows GOARCH=amd64 GO15VENDOREXPERIMENT=1 go build  -o bin/windows/amd64/mig-agent-16.02.23.0\".exe\" -ldflags \"-X mig.ninja/mig.Version=16.02.23.0\" mig.ninja/mig/mig-agent\r\nvendor/github.com/mozilla/masche/process/process_c_wrapper.go:9:2: no buildable Go source files in /home/parallels/.gvm/pkgsets/go1.5/global/src/mig.ninja/mig/vendor/github.com/mozilla/masche/cresponse\r\nmodules/memory/memory.go:19:2: C source files not allowed when not using cgo or SWIG: listlibs_windows.c\r\nmodules/memory/memory.go:20:2: C source files not allowed when not using cgo or SWIG: memaccess_windows.c\r\nvendor/github.com/mozilla/masche/listlibs/listlibs.go:6:2: C source files not allowed when not using cgo or SWIG: process_windows.c\r\nmake: *** [mig-agent] Error 1\r\n\r\n\r\nHere is my environment setup: ubuntu 14.04 desktop, go1.5, gcc-4.8.4, both libc6-dev and libc6-dev-i386 are installed.\r\n\r\nPlease kindly look into this.\r\n\r\nbest,\r\nedward\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mozilla/mig/issues/comments/190154355","html_url":"https://github.com/mozilla/mig/issues/185#issuecomment-190154355","issue_url":"https://api.github.com/repos/mozilla/mig/issues/185","id":190154355,"user":{"login":"jvehent","id":415617,"avatar_url":"https://avatars.githubusercontent.com/u/415617?v=3","gravatar_id":"","url":"https://api.github.com/users/jvehent","html_url":"https://github.com/jvehent","followers_url":"https://api.github.com/users/jvehent/followers","following_url":"https://api.github.com/users/jvehent/following{/other_user}","gists_url":"https://api.github.com/users/jvehent/gists{/gist_id}","starred_url":"https://api.github.com/users/jvehent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvehent/subscriptions","organizations_url":"https://api.github.com/users/jvehent/orgs","repos_url":"https://api.github.com/users/jvehent/repos","events_url":"https://api.github.com/users/jvehent/events{/privacy}","received_events_url":"https://api.github.com/users/jvehent/received_events","type":"User","site_admin":false},"created_at":"2016-02-29T10:59:59Z","updated_at":"2016-02-29T10:59:59Z","body":"> 2016/02/24 14:27:06 - - - [error] Init failed: 'initAgent() -> daemonize() -> serviceDeploy() -> Access is denied.'\r\n\r\nThat looks like a bug in the service library. I forked that library a while ago to apply a minor change, and never took the time to merge it upstream. I think we need to finish and merge #186 before this is going to work.\r\n\r\nCan you try with -d to stay in foreground and confirm that the agent is working?"}}