Skip to content

Instantly share code, notes, and snippets.

@amdprophet
Created December 17, 2019 23:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amdprophet/dd43352ec6ceb7ca90b49c0938875fd5 to your computer and use it in GitHub Desktop.
Save amdprophet/dd43352ec6ceb7ca90b49c0938875fd5 to your computer and use it in GitHub Desktop.
x/sys changes: https://github.com/sensu/sys/commit/87f248f2c08c11b3880f9244904f353a4252fb32
➜ sensu-go git:(solaris-gccgo) go build -compiler gccgo ./cmd/sensu-agent
# golang.org/x/sys/unix
In file included from /usr/include/sys/select.h:27,
from /usr/include/sys/types.h:665,
from /usr/include/string.h:15,
from cgo-gcc-prolog:31:
/usr/include/sys/time.h:378:5: error: conflicting types for 'adjtime'
378 | int adjtime(struct timeval *, struct timeval *);
| ^~~~~~~
../go/pkg/mod/golang.org/x/sys@v0.0.0-20191113165036-4c7a9d0fe056/unix/zsyscall_solaris_amd64_gccgo.go:34:5: note: previous declaration of 'adjtime' was here
34 | int adjtime(uintptr_t, uintptr_t);
| ^~~~~~~
In file included from /usr/include/sys/select.h:27,
from /usr/include/sys/types.h:665,
from /usr/include/string.h:15,
from cgo-gcc-prolog:31:
/usr/include/sys/time.h:379:5: error: conflicting types for 'futimesat'
379 | int futimesat(int, const char *, const struct timeval *);
| ^~~~~~~~~
../go/pkg/mod/golang.org/x/sys@v0.0.0-20191113165036-4c7a9d0fe056/unix/zsyscall_solaris_amd64_gccgo.go:23:5: note: previous declaration of 'futimesat' was here
23 | int futimesat(int, uintptr_t, uintptr_t);
| ^~~~~~~~~
In file included from /usr/include/sys/select.h:27,
from /usr/include/sys/types.h:665,
from /usr/include/string.h:15,
from cgo-gcc-prolog:31:
/usr/include/sys/time.h:386:5: error: conflicting types for 'utimes'
386 | int utimes(const char *, const struct timeval *);
| ^~~~~~
../go/pkg/mod/golang.org/x/sys@v0.0.0-20191113165036-4c7a9d0fe056/unix/zsyscall_solaris_amd64_gccgo.go:20:5: note: previous declaration of 'utimes' was here
20 | int utimes(uintptr_t, uintptr_t);
| ^~~~~~
In file included from /usr/include/sys/select.h:27,
from /usr/include/sys/types.h:665,
from /usr/include/string.h:15,
from cgo-gcc-prolog:31:
/usr/include/sys/time.h:427:5: error: conflicting types for 'gettimeofday'
427 | int gettimeofday(struct timeval *);
| ^~~~~~~~~~~~
../go/pkg/mod/golang.org/x/sys@v0.0.0-20191113165036-4c7a9d0fe056/unix/zsyscall_solaris_amd64_gccgo.go:67:5: note: previous declaration of 'gettimeofday' was here
67 | int gettimeofday(uintptr_t);
| ^~~~~~~~~~~~
In file included from /usr/include/sys/time.h:447,
from /usr/include/sys/select.h:27,
from /usr/include/sys/types.h:665,
from /usr/include/string.h:15,
from cgo-gcc-prolog:31:
/usr/include/time.h:169:12: error: conflicting types for 'nanosleep'
169 | extern int nanosleep(const struct timespec *, struct timespec *);
| ^~~~~~~~~
../go/pkg/mod/golang.org/x/sys@v0.0.0-20191113165036-4c7a9d0fe056/unix/zsyscall_solaris_amd64_gccgo.go:87:5: note: previous declaration of 'nanosleep' was here
87 | int nanosleep(uintptr_t, uintptr_t);
| ^~~~~~~~~
In file included from /usr/include/sys/types.h:665,
from /usr/include/string.h:15,
from cgo-gcc-prolog:31:
/usr/include/sys/select.h:133:12: error: conflicting types for 'select'
133 | extern int select(int, fd_set *_RESTRICT_KYWD, fd_set *_RESTRICT_KYWD,
| ^~~~~~
../go/pkg/mod/golang.org/x/sys@v0.0.0-20191113165036-4c7a9d0fe056/unix/zsyscall_solaris_amd64_gccgo.go:101:5: note: previous declaration of 'select' was here
101 | int select(int, uintptr_t, uintptr_t, uintptr_t, uintptr_t);
| ^~~~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment