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

OS X support #14

Closed
ioerror opened this issue Feb 17, 2013 · 9 comments
Closed

OS X support #14

ioerror opened this issue Feb 17, 2013 · 9 comments

Comments

@ioerror
Copy link
Contributor

ioerror commented Feb 17, 2013

I was about to create a homebrew for xmpp-client but then I noticed that I'm unable to use xmpp-client with either the golang builds in homebrew or with the official signed golang packages.

Here is the error:

go get -v github.com/agl/xmpp-client
github.com/agl/xmpp-client (download)
code.google.com/p/go.crypto (download)
code.google.com/p/go.net (download)
github.com/agl/xmpp (download)
code.google.com/p/go.crypto/otr
code.google.com/p/go.crypto/ssh/terminal
code.google.com/p/go.net/proxy
github.com/agl/xmpp

code.google.com/p/go.crypto/ssh/terminal

/usr/local/Cellar/go/1.0.3/src/pkg/code.google.com/p/go.crypto/ssh/terminal/util.go:27: undefined: syscall.Termios

@agl
Copy link
Owner

agl commented Feb 17, 2013

It works for me. How old is your Go? Termios support for Darwin was added in https://code.google.com/p/go/source/detail?r=b0f36fc20ab2

I believe that Go 1.0.3 should have it, but I'm using HEAD.

@ioerror
Copy link
Contributor Author

ioerror commented Feb 18, 2013

I don't appear to have that change set or if i do, I'm sure unable to use it. :)

I've found that the homebrew golang 1.0.3 doesn't seem to work, nor does the 1.0.3 release from the golang website. I'm currently hacking around with making the brew --HEAD build - strangely, while I can build go from HEAD when I do an hg clone, I can't actually build it from HEAD when I do it with brew.

It sounds to me that until I have HEAD building in brew, I won't be able to add an xmpp-client brew Formula.

The issue with the --HEAD build for anyone wondering is with runtime/cgo:

clang: error: no such file or directory: 'libgcc.a'

I'll hack around for a bit with this and perhaps even open a bug report with the brew folks about golang's --HEAD being broken only in brew...

@ioerror
Copy link
Contributor Author

ioerror commented Feb 18, 2013

I've opened a bug with homebrew: Homebrew/legacy-homebrew#17913

@agl
Copy link
Owner

agl commented Feb 18, 2013

Did you get HEAD building outside of homebrew? Does that work for you if so?

@ioerror
Copy link
Contributor Author

ioerror commented Feb 18, 2013

Adam Langley:

Did you get HEAD building outside of homebrew? Does that work for you if so?

HEAD did build outside of homebrew. I used the same hg tree that failed
in homebrew.

@agl
Copy link
Owner

agl commented Feb 18, 2013

Ah, but did xmpp-client work with your HEAD build, or is there still a general "terminal on OS X" bug hanging around?

@ioerror
Copy link
Contributor Author

ioerror commented Feb 18, 2013

Adam Langley:

Ah, but did xmpp-client work with your HEAD build, or is there still a general "terminal on OS X" bug hanging around?

I didn't install xmpp-client with the HEAD build - I didn't want to
install the HEAD build onto the system without brew; it is a pain to
manage a bunch of different packages without a package manager.

I'll try xmpp-client with the HEAD build without homebrew if we don't
find a way to brew it properly in the next day or so.

@ioerror
Copy link
Contributor Author

ioerror commented Feb 23, 2013

Ok - it now works with the changes I've made in Homebrew/legacy-homebrew#18030 if one uses brew install -v --HEAD go - if they merge the changes, it should work with Homebrew's Go build.

@agl
Copy link
Owner

agl commented Feb 23, 2013

Great, thanks!

@agl agl closed this as completed Feb 23, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants