odin1314 / yara-project

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

yara 1.5 source will not build #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ran ./configure
2. ran ./make
3.

What is the expected output? What do you see instead?
it is supposed to build instead I received the following:

make  all-recursive
Making all in libyara
make  all-recursive
Making all in regex
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..     
-g -O2 -MT regex-pcre.lo -MD -MP -MF .deps/regex-pcre.Tpo -c -o regex-pcre.lo 
regex-pcre.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT regex-pcre.lo -MD 
-MP -MF .deps/regex-pcre.Tpo -c regex-pcre.c  -fno-common -DPIC -o 
.libs/regex-pcre.o
regex-pcre.c:18:18: error: pcre.h: No such file or directory
regex-pcre.c: In function ‘regex_exec’:
regex-pcre.c:32: error: ‘pcre’ undeclared (first use in this function)
regex-pcre.c:32: error: (Each undeclared identifier is reported only once
regex-pcre.c:32: error: for each function it appears in.)
regex-pcre.c:32: error: expected expression before ‘)’ token
regex-pcre.c:45: error: ‘PCRE_ERROR_NOMEMORY’ undeclared (first use in this 
function)
regex-pcre.c:45: error: ‘PCRE_ERROR_NOSUBSTRING’ undeclared (first use in 
this function)
regex-pcre.c: In function ‘regex_free’:
regex-pcre.c:63: error: ‘pcre’ undeclared (first use in this function)
regex-pcre.c:63: error: expected expression before ‘)’ token
regex-pcre.c:69: error: ‘pcre_extra’ undeclared (first use in this function)
regex-pcre.c:69: error: expected expression before ‘)’ token
regex-pcre.c: In function ‘regex_compile’:
regex-pcre.c:93: error: ‘PCRE_ANCHORED’ undeclared (first use in this 
function)
regex-pcre.c:96: error: ‘PCRE_CASELESS’ undeclared (first use in this 
function)
regex-pcre.c:98: error: ‘pcre’ undeclared (first use in this function)
regex-pcre.c:98: error: expected expression before ‘)’ token
regex-pcre.c:102: error: ‘pcre_extra’ undeclared (first use in this 
function)
regex-pcre.c:102: error: expected expression before ‘)’ token
make[4]: *** [regex-pcre.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

What version of the product are you using? On what operating system?
Yara version 1.5 source
OS: Darwin Macintosh.local 10.7.0 Darwin Kernel Version 10.7.0: Sat Jan 29 
15:17:16 PST 2011; root:xnu-1504.9.37~1/RELEASE_I386 i386

Snow leopard version 10.6.7

Please provide any additional information below.

Original issue reported on code.google.com by freem...@gmail.com on 25 Apr 2011 at 2:18

GoogleCodeExporter commented 9 years ago
Seems that PCRE library is not installed. You should install it before building 
YARA. You can find PCRE here: http://www.pcre.org/ 

Original comment by plus...@gmail.com on 25 Apr 2011 at 11:06

GoogleCodeExporter commented 9 years ago

Original comment by plus...@gmail.com on 27 Jun 2011 at 7:05

GoogleCodeExporter commented 9 years ago
I was able to install the package after the PCRE library was installed.

Original comment by freem...@gmail.com on 27 Jun 2011 at 11:08