Today compiling KPNG i ran into
+++ hack/go-list-local-mods
++ CGO_ENABLED=1
++ go test ./api/... ./backends/ebpf/... ./backends/iptables/... ./backends/ipvs-as-sink/... ./backends/nft/... ./backends/userspacelin/... ./backends/windows/kernelspace/... ./backends/windows/userspace/... ./client/... ./cmd/... ./examples/iptables-extip/... ./examples/pipe-exec/... ./examples/print-state/... ./examples/userspace-proxier/... ./from-k8s/... ./server/...
? sigs.k8s.io/kpng/api/globalv1 [no test files]
ok sigs.k8s.io/kpng/api/localv1 0.030s
? sigs.k8s.io/kpng/backends/ebpf [no test files]
# sigs.k8s.io/kpng/backends/ipvs-as-sink.test
/snap/go/10008/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/usr/bin/ld: cannot find -lnl-genl-3: No such file or directory
/usr/bin/ld: cannot find -lnl-genl-3: No such file or directory
collect2: error: ld returned 1 exit status
? sigs.k8s.io/kpng/backends/iptables [no test files]
? sigs.k8s.io/kpng/backends/iptables/util [no test files]
FAIL sigs.k8s.io/kpng/backends/ipvs-as-sink [build failed]
? sigs.k8s.io/kpng/backends/ipvs-as-sink/exec [no test files]
? sigs.k8s.io/kpng/backends/ipvs-as-sink/util [no test files]
ok sigs.k8s.io/kpng/backends/nft 0.012s
? sigs.k8s.io/kpng/backends/userspacelin [no test files]
? sigs.k8s.io/kpng/backends/windows/kernelspace [no test files]
The fix was
sudo apt install libnl-genl-3-dev
I have no idea why but ithink its related to the CGO IPVS deps !
Just a note bc this took me... forever to figure out. Thanks to this post here https://askubuntu.com/questions/861742/getting-error-cannot-find-lnl-genl-3-while-running-make i eventually got it working :)
No comments:
Post a Comment