-
Notifications
You must be signed in to change notification settings - Fork 18k
Tip is not building on Mac OS X 10.8 (conflicting types for uuid_t) #3874
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
Labels
Comments
So I just learned how to use Mercurial's bisect command. The first bad revision is: changeset: 13764:f0b8f8a81cab user: Ian Lance Taylor <[email protected]> date: Thu Jul 26 23:21:41 2012 -0700 summary: misc/cgo/test: add test for issue #3871: cgo setgid hang on GNU/Linux Which makes sense, given the failure. |
Does http://golang.org/cl/6446060 fix the problem for you? Labels changed: added priority-asap, removed priority-triage. |
/usr/include/unistd.h:676: error: previous declaration of 'uuid_t' was here: #ifndef _UUID_T #define _UUID_T typedef __darwin_uuid_t uuid_t; #endif /* _UUID_T */ Where __darwin_uuid_t can be found in /usr/include/sys/_types.h: typedef unsigned char __darwin_uuid_t[16]; vs. in basic.go typedef unsigned char uuid_t[20]; Nathan. |
Hi Ian. Unfortunately it is still failing with the same error even after applying hg clpatch 6446060. Despite that typedef being there way back when (https://code.google.com/p/go/source/detail?r=4ca56208569c). hg status M misc/cgo/test/basic.go M misc/cgo/test/cgo_test.go A misc/cgo/test/cgo_linux_test.go A misc/cgo/test/setgid_linux.go |
Jens, there is a working patch for this issue, which I imagine will be merged to tip real-soon-now. Based on the code, I don't imagine it's specific to 10.8 or 10.7, but if you want to test it and have the code review plugin setup for Mecurial (http://golang.org/doc/contribute.html), just run: hg clpatch 6446060 My one remaining concern is that darwin defined uuid_t as 16 characters whereas Go defines it as 20, as above. That strikes me as a bit odd, though isn't the cause of this issue. |
Patch from mikioh (http://golang.org/cl/6455057/) works fine. |
This issue was closed by revision f7f91a0. Status changed to Fixed. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: