-
-
Notifications
You must be signed in to change notification settings - Fork 112
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
Compile simple-yara.go when it's copied to another directory with yara 3.9.0 #69
Comments
I tried |
|
@fieldsplum So, I tried to replicate your error using a Debian/buster chroot environment (as that's what seems to be the base of your installation). You don't need to explicitly set CGO_CFLAGS and CGO_LDFLAGS, those are picked up by Not sure how you installed go 1.14, but go 1.11 which can be installed using apt ( |
I downloaded
If I don't set CGO_CFLAGS and CGO_LDFLAGS:
|
If you don't set CGO_CFLAGS and CGO_LDFLAGS, you get the error mesage that I fixed in the 1.3.0 release I pushed last night. Please check if upgrading to that version fixes the issue for you. My best guess is that setting CGO_CFLAGS might have caused the C compiler (the preprocessor, really) to read a different limits.h. This happens when autogenerating the CGO interface code, before the Go code is compiled. (Unfortunately |
Doesn't work. I will change libyara to 3.11, then have a try . |
Right. Set the appropriate build tag as described in the Build Tags section of the README. |
Setting |
Cool. I suppose, we can close the issue then. |
I copied _examples/simple-yara/simple-yara.go to another directory for testing.
/usr/include/limits.h exists, I checked /usr/include/yara.h, it includes
#include "yara/utils.h"
/usr/include/yara.h includes
#include <limits.h>
I can't find the reason.
The text was updated successfully, but these errors were encountered: