mustangV / yara-project

Automatically exported from code.google.com/p/yara-project
Apache License 2.0
0 stars 0 forks source link

Unable to compile Yara 1.6 under Cygwin #62

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Download yara 1.6; run 'configure'.
2. Run 'make'

What is the expected output? What do you see instead?

Expect to have Yara compile with no issues. Build fails with errors:

/bin/sh ./libtool --tag=CC    --mode=compile gcc -DHAVE_CONFIG_H -I.      -g 
-O2 -MT proc.lo -MD -MP -MF .deps/proc.Tpo -c -o proc.lo proc.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -g -O2 -MT proc.lo -MD -MP -MF 
.deps/proc.Tpo -c proc.c  -DDLL_EXPORT -DPIC -o .libs/proc.o
proc.c:120:24: fatal error: sys/ptrace.h: No such file or directory
compilation terminated.
Makefile:392: recipe for target `proc.lo' failed
make[4]: *** [proc.lo] Error 1
make[4]: Leaving directory `/cygdrive/c/Users/user/Downloads/yara-1.6/libyara'
Makefile:437: recipe for target `all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/cygdrive/c/Users/user/Downloads/yara-1.6/libyara'
Makefile:269: recipe for target `all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory `/cygdrive/c/Users/user/Downloads/yara-1.6/libyara'
Makefile:365: recipe for target `all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/Users/user/Downloads/yara-1.6'
Makefile:195: recipe for target `all' failed
make: *** [all] Error 2

What version of the product are you using? On what operating system?

Environment: CYGWIN_NT-6.1-WOW64 HOSTNAME 1.7.16(0.262/5/3) 2012-07-20 22:55 
i686 Cygwin  // Windows 7

Yara 1.6 (yara-python-1.6.tar.gz)

Please provide any additional information below.

Suspected relation to 
http://code.google.com/p/yara-project/issues/detail?id=25. Tried various ways 
of adding #include for /usr/include/w32api/windef.h in libyara/proc.c (perhaps 
incorrectly) and could not successfully compile.

Original issue reported on code.google.com by phatbuck...@gmail.com on 1 Sep 2012 at 1:34

GoogleCodeExporter commented 8 years ago
i get the same error trying to compile yara-1.7

Original comment by adime...@gmail.com on 11 Jul 2013 at 11:37