Compiling on the Windows 2012 VM

Hi, I've been trying to compile and run the packetbeat source on the win2012 vm that is on the repository but I can't seem to get it right. It compiles ok with the go build command but when I try to run packetbeat.exe -devices I get the following exception.

PS C:\dev\LogStack\beats\packetbeat> .\packetbeat.exe -devices Exception 0xc0000005 0x0 0x2781566 0x10f7c98 PC=0x10f7c98 signal arrived during external code execution,0x19b7160, 0x0) ??:0 +0x3c, 0x0, 0x0, 0x0, 0x0) C:/Gopath/src/ +0xf1, 0x0, 0x0, 0x0, 0x0, 0x0) C:/Gopath/src/ +0x7c, 0x0, 0x0) C:/Gopath/src/ +0x6c, 0xc08247c780, 0x0, 0x0) C:/Gopath/src/ +0x39, 0x0, 0x0) C:/Gopath/src/ +0xb5*Beat).handleFlags(0xc08247c780, 0x0, 0x0) C:/Gopath/src/ +0x4ca*Beat).launch(0xc08247c780, 0xe2fef8, 0x0, 0x0) C:/Gopath/src/ +0x4c, 0xa, 0x0, 0x0, 0xe2fef8, 0x0, 0x0) C:/Gopath/src/ +0x6e main.main() C:/Gopath/src/ +0x4e

I'm compiling and running inside the VM.

Which golang version did you use?

I'm using the one in the VM, I think is 1.5.3.

I think there is an issue with the winpcap developer pack. IIRC, it only contains a 32-bit lib. We had to perform some workarounds to build it for 64-bit. So if you set GOARCH=386 before running go build it might work. This will build a 32-bit binary.

Thanks for the fast reply.

Will try later today and post back the results.

It is working now, following the work around.


This topic was automatically closed after 21 days. New replies are no longer allowed.