Skip to content
This repository has been archived by the owner on Mar 21, 2021. It is now read-only.

compiling this in some go versions leads to "WSAStartup failed" message #1

Open
phryneas opened this issue Feb 18, 2018 · 1 comment

Comments

@phryneas
Copy link

Hi there,
I've tried this from WSL Ubuntu 16.04 with go1.6.2 linux/amd64 as well as from Windows with go1.8.1 windows/386.

mkdir npiperelay
cd npiperelay/
export GOPATH=$(pwd)
go get -d github.com/NZSmartie/npiperelay
GOOS=windows go build -o /mnt/c/Users/weber.VOSDOM/bin/npiperelay.exe github.com/NZSmartie/npiperelay
ln -s /mnt/c/Users/weber.VOSDOM/bin/npiperelay.exe ~/bin/npiperelay.exe

Then I downloaded https://github.com/NZSmartie/npiperelay/raw/master/scripts/gpg-relay and fixed paths to match my environment.

When I now run

./gpg-relay &
cat encryptedFile | gpg2 -d 

I get

2018/02/18 01:00:33 ConnectEx: Either the application has not called WSAStartup, or WSAStartup failed.
2018/02/18 01:00:33 ConnectEx: Either the application has not called WSAStartup, or WSAStartup failed.
2018/02/18 01:00:33 ConnectEx: Either the application has not called WSAStartup, or WSAStartup failed.
gpg: can't connect to the agent: End of file

Using the pre-built binary from releases works just fine.

PS: I've installed go1.9.4 linux/amd64 from ppa:gophers/archive - that seems to work.

I'm not really sure what to make of this. If you want to debug it, I'm here to do some tests for you.
Otherwise, I guess... just add some information to the README?

@horenmar
Copy link

horenmar commented Nov 8, 2018

Ran into the same problem.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants