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

I couldn't use with the new yara 3.5 #4

Closed
blacktop opened this issue Aug 4, 2016 · 3 comments
Closed

I couldn't use with the new yara 3.5 #4

blacktop opened this issue Aug 4, 2016 · 3 comments

Comments

@blacktop
Copy link

blacktop commented Aug 4, 2016

+ export CGO_CFLAGS=-I/usr/local/includeBuilding info Go binary...

+ export CGO_LDFLAGS=-L/usr/local/lib
+ go version
go version go1.6.3 linux/amd64
+ go get
# github.com/hillu/go-yara
../../hillu/go-yara/rules-callback.c: In function 'rules_callback':
../../hillu/go-yara/rules-callback.c:40:76: error: 'YR_MATCH {aka struct _YR_MATCH}' has no member named 'length'
         addString(user_data, string->identifier, m->offset, m->data, (int)m->length);
@hillu
Copy link
Owner

hillu commented Aug 7, 2016

Ah well, the API changed in 89a305f91de07ebfbeaf56a228140e10f27a8623, just a few weeks ago. Thanks for spotting this.

@hillu hillu closed this as completed in 8fe4492 Aug 8, 2016
@hillu
Copy link
Owner

hillu commented Aug 8, 2016

@blacktop could you please verify that my commit actually fixes your problem? Thanks.

@blacktop
Copy link
Author

blacktop commented Aug 9, 2016

it worked perfectly! thank you!! 👍

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

2 participants