Skip to content

make oc fails on macOS 26.1 #2136

@dronenb

Description

@dronenb

Platform: macOS
Version (output of sws_vers -ProductVersion): 26.1

Issue

even after installing dependencies via brew install gpgme heimdall, I get the following when running make oc:

go build -mod=vendor -tags 'include_gcs include_oss containers_image_openpgp gssapi' -ldflags "-X github.com/openshift/oc/pkg/version.versionFromGit="v4.2.0-alpha.0-2809-g1c5f490" -X github.com/openshift/oc/pkg/version.commitFromGit="1c5f490b7" -X github.com/openshift/oc/pkg/version.gitTreeState="clean" -X github.com/openshift/oc/pkg/version.buildDate="2025-11-07T19:18:37Z" -X k8s.io/component-base/version.gitMajor="1" -X k8s.io/component-base/version.gitMinor="34" -X k8s.io/component-base/version.gitVersion="v1.34.1" -X k8s.io/component-base/version.gitCommit="1c5f490b7" -X k8s.io/component-base/version.buildDate="2025-11-07T19:18:35Z" -X k8s.io/component-base/version.gitTreeState="clean" -X k8s.io/client-go/pkg/version.gitVersion="v4.2.0-alpha.0-2809-g1c5f490" -X k8s.io/client-go/pkg/version.gitCommit="1c5f490b7" -X k8s.io/client-go/pkg/version.buildDate="2025-11-07T19:18:35Z" -X k8s.io/client-go/pkg/version.gitTreeState="clean"" github.com/openshift/oc/cmd/oc
# github.com/apcera/gssapi
vendor/github.com/apcera/gssapi/name.go:213:9: could not determine what C.wrap_gss_canonicalize_name refers to
cgo: 
cc errors for preamble:
vendor/github.com/apcera/gssapi/name.go:90:2: error: unknown type name 'gss_const_name_t'
   90 |         gss_const_name_t input_name,
      |         ^
vendor/github.com/apcera/gssapi/name.go:95:16: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   95 |                 OM_uint32 *, gss_const_name_t, const gss_OID, gss_name_t *)
      |                              ^
      |                              int
2 errors generated.

make: *** [build] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions