You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a fresh Debian box with the latest version of Yara (3.11) as well as Golang which is 1.14.1. When running go get github.com/hillu/go-yara I get the following output:
go install github.com/hillu/go-yara
# github.com/hillu/go-yara
../go/src/github.com/hillu/go-yara/rule.go:144:8: could not determine kind of name for C.META_TYPE_NULL
../go/src/github.com/hillu/go-yara/rule.go:193:27: could not determine kind of name for C.RULE_GFLAGS_GLOBAL
../go/src/github.com/hillu/go-yara/rule.go:188:27: could not determine kind of name for C.RULE_GFLAGS_PRIVATE
cgo:
gcc errors for preamble:
../go/src/github.com/hillu/go-yara/rule.go: In function 'string_matches':
../go/src/github.com/hillu/go-yara/rule.go:81:36: error: macro "yr_string_matches_foreach" requires 3 arguments, but only 2 given
yr_string_matches_foreach(s, match) {
^
../go/src/github.com/hillu/go-yara/rule.go:81:2: error: 'yr_string_matches_foreach' undeclared (first use in this function); did you mean 'string_matches'?
yr_string_matches_foreach(s, match) {
^~~~~~~~~~~~~~~~~~~~~~~~~
string_matches
../go/src/github.com/hillu/go-yara/rule.go:81:2: note: each undeclared identifier is reported only once for each function it appears in
../go/src/github.com/hillu/go-yara/rule.go:81:27: error: expected ';' before '{' token
yr_string_matches_foreach(s, match) {
^ ~
;
Apparently, you are not using YARA 3.11 but a pre-release version of YARA 4.0.0 from Github (master). If you switch to the version tagged as v3.11.0, you should find that everything builds just fine.
I have a fresh Debian box with the latest version of Yara (3.11) as well as Golang which is 1.14.1. When running
go get github.com/hillu/go-yara
I get the following output:By running
pkg-config
I get the following:Any ideas?
The text was updated successfully, but these errors were encountered: