Cgboal / SonarSearch

A rapid API for the Project Sonar dataset
MIT License
641 stars 96 forks source link

Error when building SonarSearch #58

Open tanmyid opened 1 year ago

tanmyid commented 1 year ago

Hi, i try to compile SonarSearch on Ubuntu 20.04.4 LTS x86_64 an get error like below : tanio@vmi798622:~/tools/SonarSearch$ make go build -o bin/sonar2crobat ./cmd/sonar2crobat go: downloading github.com/Cgboal/DomainParser v0.0.0-20210827145802-99068439e39f go: downloading github.com/json-iterator/go v1.1.11 go: downloading github.com/brotherpowers/ipsubnet v0.0.0-20170914094241-30bc98f0a5b1 go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd go: downloading github.com/modern-go/reflect2 v1.0.1 go build -o bin/crobat2index ./cmd/crobat2index go build -tags=go_json -o bin/crobat-server ./cmd/crobat-server go: downloading github.com/spf13/viper v1.8.1 go: downloading google.golang.org/grpc v1.40.0 go: downloading github.com/golang/protobuf v1.5.2 go: downloading google.golang.org/protobuf v1.27.1 go: downloading github.com/gin-gonic/gin v1.7.4 go: downloading github.com/go-redis/redis/v8 v8.11.3 go: downloading github.com/fsnotify/fsnotify v1.4.9 go: downloading github.com/hashicorp/hcl v1.0.0 go: downloading github.com/magiconair/properties v1.8.5 go: downloading github.com/mitchellh/mapstructure v1.4.1 go: downloading github.com/pelletier/go-toml v1.9.3 go: downloading github.com/spf13/afero v1.6.0 go: downloading github.com/spf13/jwalterweatherman v1.1.0 go: downloading github.com/spf13/cast v1.3.1 go: downloading github.com/spf13/pflag v1.0.5 go: downloading github.com/subosito/gotenv v1.2.0 go: downloading gopkg.in/ini.v1 v1.62.0 go: downloading gopkg.in/yaml.v2 v2.4.0 go: downloading golang.org/x/net v0.0.0-20210428140749-89ef3d95e781 go: downloading google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c go: downloading golang.org/x/sys v0.0.0-20210823070655-63515b42dcdf go: downloading github.com/gin-contrib/sse v0.1.0 go: downloading github.com/mattn/go-isatty v0.0.13 go: downloading github.com/cespare/xxhash/v2 v2.1.1 go: downloading github.com/cespare/xxhash v1.1.0 go: downloading github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f go: downloading golang.org/x/text v0.3.7 go: downloading github.com/go-playground/validator/v10 v10.9.0 go: downloading github.com/ugorji/go/codec v1.2.6 go: downloading github.com/ugorji/go v1.2.6 go: downloading github.com/go-playground/universal-translator v0.18.0 go: downloading github.com/leodido/go-urn v1.2.1 go: downloading golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 go: downloading github.com/go-playground/locales v0.14.0 github.com/cgboal/sonarsearch/cmd/crobat-server/grpc cmd/crobat-server/grpc/server.go:77:25: unknown field 'IPv4' in struct literal of type "github.com/cgboal/sonarsearch/proto".Domain cmd/crobat-server/grpc/server.go:100:25: unknown field 'IPv4' in struct literal of type "github.com/cgboal/sonarsearch/proto".Domain make: *** [Makefile:4: build] Error 2

any fix??