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

freebsd build failure #2773

Closed
yjqg6666 opened this issue Jul 2, 2024 · 1 comment
Closed

freebsd build failure #2773

yjqg6666 opened this issue Jul 2, 2024 · 1 comment

Comments

@yjqg6666
Copy link
Contributor

yjqg6666 commented Jul 2, 2024

Describe the bug
git checkout v0.32.5 && go build

vendor/github.com/knqyf263/go-rpmdb/pkg/ndb/ndb.go:99:8: undefined: syscallFlock
vendor/github.com/knqyf263/go-rpmdb/pkg/ndb/ndb.go:99:37: undefined: syscallLOCK_SH
vendor/github.com/knqyf263/go-rpmdb/pkg/ndb/ndb.go:135:6: undefined: syscallFlock
vendor/github.com/knqyf263/go-rpmdb/pkg/ndb/ndb.go:135:38: undefined: syscallLOCK_UN

Theses errors have been fixed by this bugfix knqyf263/go-rpmdb#53 which has been included in version go-rpmdb v0.1.1.

Versions (please complete the following information):

  • OS: FreeBSD 14
  • K9s: v0.32.5

** solution
go mod why -m github.com/knqyf263/go-rpmdb shows this module is introduced by syft.
This commit has the bugfix version. The commit has been included in syft versions v1.8.0 v1.7.0 v1.6.0 v1.5.0.
Upgrading syft to at least v1.5.0 or recent v1.8.0 will fix this error.

yjqg6666 added a commit to yjqg6666/k9s that referenced this issue Jul 3, 2024
fix build error:
  vendor/github.com/knqyf263/go-rpmdb/pkg/ndb/ndb.go:99:8: undefined: syscallFlock
  vendor/github.com/knqyf263/go-rpmdb/pkg/ndb/ndb.go:99:37: undefined: syscallLOCK_SH
  vendor/github.com/knqyf263/go-rpmdb/pkg/ndb/ndb.go:135:6: undefined: syscallFlock
  vendor/github.com/knqyf263/go-rpmdb/pkg/ndb/ndb.go:135:38: undefined: syscallLOCK_UN
Related to issue knqyf263/go-rpmdb#53.
derailed pushed a commit that referenced this issue Jul 7, 2024
fix build error:
  vendor/github.com/knqyf263/go-rpmdb/pkg/ndb/ndb.go:99:8: undefined: syscallFlock
  vendor/github.com/knqyf263/go-rpmdb/pkg/ndb/ndb.go:99:37: undefined: syscallLOCK_SH
  vendor/github.com/knqyf263/go-rpmdb/pkg/ndb/ndb.go:135:6: undefined: syscallFlock
  vendor/github.com/knqyf263/go-rpmdb/pkg/ndb/ndb.go:135:38: undefined: syscallLOCK_UN
Related to issue knqyf263/go-rpmdb#53.
@yjqg6666
Copy link
Contributor Author

yjqg6666 commented Jul 8, 2024

Resolved by #2775 .

@yjqg6666 yjqg6666 closed this as completed Jul 8, 2024
rm-hull added a commit to rm-hull/k9s that referenced this issue Aug 12, 2024
* 'master' of github.com:derailed/k9s: (169 commits)
  fix: align build image Go version with go.mod (derailed#2812)
  Bump github.com/docker/docker (derailed#2816)
  Bump golangci/golangci-lint-action from 6.0.1 to 6.1.0 (derailed#2813)
  Add comment about Escape keybinding (derailed#2817)
  proper handle OwnerReference for manually created job (derailed#2772)
  [derailed#2773] fix freebsd build failure (derailed#2775)
  install copyright file into correct location (derailed#2780)
  fix status for completed pods in workload view (derailed#2729)
  update deps
  [Maint] Bump grype rev
  K9s/release v0.32.5 (derailed#2740)
  --- (derailed#2707)
  fix view sorting being reset (derailed#2736)
  use policy/v1 instead of policy/v1beta1 (derailed#2732)
  Bump alpine from 3.19.1 to 3.20.0 (derailed#2721)
  fix: jump to namespaceless owner reference (derailed#2718)
  feat: Add plugins for argo-rollouts (derailed#2711)
  Bump golangci/golangci-lint-action from 5.1.0 to 6.0.1 (derailed#2702)
  allow jumping to the owner of the resource (derailed#2700)
  fix: job color based on failures (derailed#2686) (derailed#2698)
  ...
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

1 participant