Nmap Development mailing list archives
pcre found but not found
From: Tim Rupp <tarupp () fnal gov>
Date: Fri, 04 May 2007 09:39:34 -0500
Hey all, So while compiling nmap 4.21 Aplha 4 on RHEL 4.4 checking pcre.h usability... no checking pcre.h presence... no checking for pcre.h... no checking pcre/pcre.h usability... yes checking pcre/pcre.h presence... yes checking for pcre/pcre.h... yes checking for pcre_version in -lpcre... yes and then making g++ -c -Iliblua -Ilibdnet-stripped/include -g -O2 -Wall -Ilibpcap -Inbase -Insock/include -DHAVE_CONFIG_H -DNMAP_VERSION=\"4.21ALPHA4\" -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://insecure.org\" -DNMAP_PLATFORM=\"i686-pc-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" nse_pcrelib.cc -o nse_pcrelib.o nse_pcrelib.cc:17:18: pcre.h: No such file or directory nse_pcrelib.cc:90: error: ISO C++ forbids declaration of `pcre' with no type nse_pcrelib.cc:90: error: expected `;' before '*' token nse_pcrelib.cc:91: error: ISO C++ forbids declaration of `pcre_extra' with no type nse_pcrelib.cc:91: error: expected `;' before '*' token nse_pcrelib.cc: In function `const unsigned char* Lpcre_maketables(lua_State*, int)': nse_pcrelib.cc:111: error: `pcre_maketables' was not declared in this scope nse_pcrelib.cc:111: warning: unused variable 'pcre_maketables' nse_pcrelib.cc: In function `int Lpcre_comp(lua_State*)': nse_pcrelib.cc:138: error: 'struct pcre2' has no member named 'extra' nse_pcrelib.cc:141: error: 'struct pcre2' has no member named 'pr' nse_pcrelib.cc:141: error: `pcre_compile' was not declared in this scope nse_pcrelib.cc:142: error: 'struct pcre2' has no member named 'pr' nse_pcrelib.cc:148: error: 'struct pcre2' has no member named 'extra' nse_pcrelib.cc:148: error: 'struct pcre2' has no member named 'pr' nse_pcrelib.cc:148: error: `pcre_study' was not declared in this scope nse_pcrelib.cc:151: error: 'struct pcre2' has no member named 'pr' nse_pcrelib.cc:151: error: 'struct pcre2' has no member named 'extra' nse_pcrelib.cc:151: error: `PCRE_INFO_CAPTURECOUNT' was not declared in this scope nse_pcrelib.cc:151: error: `pcre_fullinfo' was not declared in this scope nse_pcrelib.cc:141: warning: unused variable 'pcre_compile' nse_pcrelib.cc:148: warning: unused variable 'pcre_study' nse_pcrelib.cc:151: warning: unused variable 'PCRE_INFO_CAPTURECOUNT' nse_pcrelib.cc:151: warning: unused variable 'pcre_fullinfo' nse_pcrelib.cc: In function `void Lpcre_push_substrings(lua_State*, const char*, pcre2*)': nse_pcrelib.cc:189: error: 'struct pcre2' has no member named 'pr' nse_pcrelib.cc:189: error: 'struct pcre2' has no member named 'extra' nse_pcrelib.cc:189: error: `PCRE_INFO_NAMECOUNT' was not declared in this scope nse_pcrelib.cc:189: error: `pcre_fullinfo' was not declared in this scope nse_pcrelib.cc:192: error: 'struct pcre2' has no member named 'pr' nse_pcrelib.cc:192: error: 'struct pcre2' has no member named 'extra' nse_pcrelib.cc:192: error: `PCRE_INFO_NAMETABLE' was not declared in this scope nse_pcrelib.cc:193: error: 'struct pcre2' has no member named 'pr' nse_pcrelib.cc:193: error: 'struct pcre2' has no member named 'extra' nse_pcrelib.cc:193: error: `PCRE_INFO_NAMEENTRYSIZE' was not declared in this scope nse_pcrelib.cc:189: warning: unused variable 'PCRE_INFO_NAMECOUNT' nse_pcrelib.cc:192: warning: unused variable 'PCRE_INFO_NAMETABLE' nse_pcrelib.cc:193: warning: unused variable 'PCRE_INFO_NAMEENTRYSIZE' nse_pcrelib.cc: In function `int Lpcre_match_generic(lua_State*, void (*)(lua_State*, const char*, pcre2*))': nse_pcrelib.cc:246: error: 'struct pcre2' has no member named 'pr' nse_pcrelib.cc:246: error: 'struct pcre2' has no member named 'extra' nse_pcrelib.cc:247: error: `pcre_exec' was not declared in this scope nse_pcrelib.cc:247: warning: unused variable 'pcre_exec' nse_pcrelib.cc: In function `int Lpcre_gmatch(lua_State*)': nse_pcrelib.cc:284: error: 'struct pcre2' has no member named 'pr' nse_pcrelib.cc:284: error: 'struct pcre2' has no member named 'extra' nse_pcrelib.cc:285: error: `pcre_exec' was not declared in this scope nse_pcrelib.cc:285: warning: unused variable 'pcre_exec' nse_pcrelib.cc: In function `int Lpcre_gc(lua_State*)': nse_pcrelib.cc:307: error: 'struct pcre2' has no member named 'pr' nse_pcrelib.cc:307: error: 'struct pcre2' has no member named 'pr' nse_pcrelib.cc:307: error: `pcre_free' was not declared in this scope nse_pcrelib.cc:307: warning: unused variable 'pcre_free' nse_pcrelib.cc:308: error: 'struct pcre2' has no member named 'extra' nse_pcrelib.cc:308: error: 'struct pcre2' has no member named 'extra' nse_pcrelib.cc:308: error: `pcre_free' was not declared in this scope nse_pcrelib.cc:308: warning: unused variable 'pcre_free' nse_pcrelib.cc:309: error: `pcre_free' was not declared in this scope nse_pcrelib.cc:309: warning: unused variable 'pcre_free' nse_pcrelib.cc: In function `int Lpcre_vers(lua_State*)': nse_pcrelib.cc:321: error: `pcre_version' was not declared in this scope nse_pcrelib.cc:321: warning: unused variable 'pcre_version' nse_pcrelib.cc: At global scope: nse_pcrelib.cc:327: error: `PCRE_CASELESS' was not declared in this scope nse_pcrelib.cc:328: error: `PCRE_MULTILINE' was not declared in this scope nse_pcrelib.cc:329: error: `PCRE_DOTALL' was not declared in this scope nse_pcrelib.cc:330: error: `PCRE_EXTENDED' was not declared in this scope nse_pcrelib.cc:331: error: `PCRE_ANCHORED' was not declared in this scope nse_pcrelib.cc:332: error: `PCRE_DOLLAR_ENDONLY' was not declared in this scope nse_pcrelib.cc:333: error: `PCRE_EXTRA' was not declared in this scope nse_pcrelib.cc:334: error: `PCRE_NOTBOL' was not declared in this scope nse_pcrelib.cc:335: error: `PCRE_NOTEOL' was not declared in this scope nse_pcrelib.cc:336: error: `PCRE_UNGREEDY' was not declared in this scope nse_pcrelib.cc:337: error: `PCRE_NOTEMPTY' was not declared in this scope nse_pcrelib.cc:338: error: `PCRE_UTF8' was not declared in this scope make: *** [nse_pcrelib.o] Error 1 I think the nse_pcrelib.cc is missing the following declaration #ifdef HAVE_PCRE_PCRE_H # include <pcre/pcre.h> #else # include <pcre.h> #endif Instead it just has #include <pcre.h> Not sure if this has been reported yet. Thanks, Tim _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- pcre found but not found Tim Rupp (May 04)