aerospike / php-client

Aerospike Client for PHP 8
https://aerospike.github.io/php-client/
9 stars 2 forks source link

facing aerospike manager building issue in latest #47

Open piyush-bansal1989 opened 1 day ago

piyush-bansal1989 commented 1 day ago

Hi Team

I'm facing following the issues when builing the aerospike connection manager from 1.1.0 relase.

`go build -ldflags="-X 'main.version=1.1.0'" -o asld -v . github.com/aerospike/php-client/asld/proto

github.com/aerospike/php-client/asld/proto

proto/asld_kvs_grpc.pb.go:19:16: undefined: grpc.SupportPackageIsVersion9 proto/asld_kvs_grpc.pb.go:140:85: undefined: grpc.ServerStreamingClient proto/asld_kvs_grpc.pb.go:141:87: undefined: grpc.ServerStreamingClient proto/asld_kvs_grpc.pb.go:462:104: undefined: grpc.ServerStreamingClient proto/asld_kvs_grpc.pb.go:479:28: undefined: grpc.ServerStreamingClient proto/asld_kvs_grpc.pb.go:498:29: undefined: grpc.ServerStreamingClient proto/asld_kvs_grpc.pb.go:583:35: undefined: grpc.ServerStreamingServer proto/asld_kvs_grpc.pb.go:584:37: undefined: grpc.ServerStreamingServer proto/asld_kvs_grpc.pb.go:1282:28: undefined: grpc.ServerStreamingServer proto/asld_kvs_grpc.pb.go:1293:29: undefined: grpc.ServerStreamingServer proto/asld_kvs_grpc.pb.go:462:104: too many errors make: *** [Makefile:27: run] Error 1 `

following are the latest version installed protoc-gen-go-grpc 1.5.1 protoc-gen-go v1.35.1

Screenshot from 2024-10-17 05-19-34

khaf commented 13 hours ago

Hi Piyush, you don't need to delete the proto files. Just run the build command after a fresh pull:

go build -ldflags="-X 'main.version=1.1.0'" -o asld -v .

Keep in mind that the version should match the Rust build, otherwise you will not be able to connect from the PHP.