Skip to content

syscall: Setuid undefined on aix #67651

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

Closed
tenox7 opened this issue May 26, 2024 · 1 comment
Closed

syscall: Setuid undefined on aix #67651

tenox7 opened this issue May 26, 2024 · 1 comment
Assignees
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. OS-AIX

Comments

@tenox7
Copy link

tenox7 commented May 26, 2024

Go version

go version go1.22.3 darwin/arm64

Output of go env in your module/workspace:

GO111MODULE=''
GOARCH='arm64'
GOBIN=''
GOCACHE='/Users/tenox/Library/Caches/go-build'
GOENV='/Users/tenox/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='arm64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMODCACHE='/Users/tenox/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='darwin'
GOPATH='/Users/tenox/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/darwin_arm64'
GOVCS=''
GOVERSION='go1.22.3'
GCCGO='gccgo'
AR='ar'
CC='clang'
CXX='clang++'
CGO_ENABLED='1'
GOMOD='/Users/tenox/Code/aixsuid/go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/mm/vms_5fl93xsdj9038v77jfx80000gn/T/go-build1570473514=/tmp/go-build -gno-record-gcc-switches -fno-common'

What did you do?

package main

import "syscall"

func main() {
	syscall.Setgid(1)
	syscall.Setuid(1)
}

What did you see happen?

$ GOOS=aix GOARCH=ppc64 go build .
# suid
./suid.go:7:10: undefined: syscall.Setuid

What did you expect to see?

build ok

note this problem is only for Setuid, Setgid seems fine

@seankhliao seankhliao changed the title aix undefined: syscall.Setuid syscall: Setuid undefined on aix May 26, 2024
@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label May 26, 2024
@mauri870 mauri870 self-assigned this May 26, 2024
@gopherbot
Copy link
Contributor

Change https://go.dev/cl/588119 mentions this issue: syscall: add Setuid for aix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. OS-AIX
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants