Webmasterpals  

Go Back   Webmasterpals > Site Management > Server Administration

Reply
 
Thread Tools Display Modes
  #1  
Old 05-26-2008, 07:24 PM
pbu's Avatar
pbu pbu is offline
Administrator
 
Join Date: Feb 2008
Location: hrwebdir.org
Posts: 1,077
pbu has a reputation beyond reputepbu has a reputation beyond reputepbu has a reputation beyond reputepbu has a reputation beyond reputepbu has a reputation beyond reputepbu has a reputation beyond reputepbu has a reputation beyond reputepbu has a reputation beyond reputepbu has a reputation beyond reputepbu has a reputation beyond reputepbu has a reputation beyond repute
Red face Mod security errors

i am documenting the errors i used to get which installing modsecurity on my centos server, so that others would know how i fixed it!

Quote:
msc_pcre.h:16:18: error: pcre.h: No such file or directory
modsecurity.c: In function 'is_response_status_relevant':
modsecurity.c:316: error: 'PCRE_ERROR_NOMATCH' undeclared (first use in this function)
modsecurity.c:316: error: (Each undeclared identifier is reported only once
modsecurity.c:316: error: for each function it appears in.)
apxs:Error: Command failed with rc=65536
Fix: yum install pcre-devel

------------------------------
Quote:
apxs:Error: Sorry, cannot determine bootstrap symbol name.
apxs:Error: Please specify one with option `-n'.
Fix: Unknown
---------------------
Quote:
msc_xml.h:17:31: error: libxml/xmlschemas.h: No such file or directory
msc_xml.h:18:26: error: libxml/xpath.h: No such file or directory
In file included from modsecurity.h:44,
from mod_security2.c:16:
msc_xml.h:23: error: expected specifier-qualifier-list before 'xmlSAXHandler'
apxs:Error: Command failed with rc=65536
-------------------------------------------
Fix: Unknown. It could be fixed if you do yum install libxml2
---------------------------------------------

Quote:
mlogc.c:36:23: error: curl/curl.h: No such file or directory
mlogc.c:961: error: expected ')' before '*' token
mlogc.c: In function 'logc_init':
mlogc.c:991: error: 'CURL_GLOBAL_ALL' undeclared (first use in this function)
mlogc.c:991: error: (Each undeclared identifier is reported only once
mlogc.c:991: error: for each function it appears in.)
mlogc.c:1032: error: 'CURL' undeclared (first use in this function)
mlogc.c:1032: error: expected expression before ')' token
mlogc.c:1040: error: 'curl' undeclared (first use in this function)
mlogc.c:1046: error: 'CURLOPT_UPLOAD' undeclared (first use in this function)
mlogc.c:1047: error: 'CURLOPT_PUT' undeclared (first use in this function)
mlogc.c:1048: error: 'CURLOPT_ERRORBUFFER' undeclared (first use in this function)
mlogc.c:1049: error: 'CURLOPT_URL' undeclared (first use in this function)
mlogc.c:1050: error: 'CURLOPT_HTTPAUTH' undeclared (first use in this function)
mlogc.c:1050: error: 'CURLAUTH_BASIC' undeclared (first use in this function)
mlogc.c:1051: error: 'CURLOPT_SSL_VERIFYPEER' undeclared (first use in this function)
mlogc.c:1052: error: 'CURLOPT_SSL_VERIFYHOST' undeclared (first use in this function)
mlogc.c:1053: error: 'CURLOPT_CONNECTTIMEOUT' undeclared (first use in this function)
mlogc.c:1054: error: 'CURLOPT_NOSIGNAL' undeclared (first use in this function)
mlogc.c:1055: error: 'CURLOPT_HEADER' undeclared (first use in this function)
mlogc.c:1057: error: 'CURLOPT_WRITEFUNCTION' undeclared (first use in this function)
mlogc.c:1059: error: expected expression before ')' token
mlogc.c: In function 'thread_worker':
mlogc.c:1142: error: 'CURL' undeclared (first use in this function)
mlogc.c:1142: error: 'curl' undeclared (first use in this function)
mlogc.c:1142: error: expected expression before ')' token
mlogc.c:1151: error: 'CURL_ERROR_SIZE' undeclared (first use in this function)
mlogc.c:1273: error: 'CURLcode' undeclared (first use in this function)
mlogc.c:1273: error: expected ';' before 'res'
mlogc.c:1281: error: 'CURLOPT_VERBOSE' undeclared (first use in this function)
mlogc.c:1282: error: 'CURLOPT_DEBUGFUNCTION' undeclared (first use in this function)
mlogc.c:1282: error: 'curl_debugfunction' undeclared (first use in this function)
mlogc.c:1283: error: 'CURLOPT_DEBUGDATA' undeclared (first use in this function)
mlogc.c:1284: error: 'CURLOPT_ERRORBUFFER' undeclared (first use in this function)
mlogc.c:1285: error: 'CURLOPT_USERPWD' undeclared (first use in this function)
mlogc.c:1286: error: 'CURLOPT_WRITEDATA' undeclared (first use in this function)
mlogc.c:1288: warning: assignment makes pointer from integer without a cast
mlogc.c:1289: warning: assignment makes pointer from integer without a cast
mlogc.c:1290: warning: assignment makes pointer from integer without a cast
mlogc.c:1291: error: 'CURLOPT_HTTPHEADER' undeclared (first use in this function)
mlogc.c:1301: error: 'CURLOPT_READDATA' undeclared (first use in this function)
mlogc.c:1302: error: 'CURLOPT_INFILESIZE_LARGE' undeclared (first use in this function)
mlogc.c:1303: error: 'CURLOPT_INFILESIZE' undeclared (first use in this function)
mlogc.c:1309: error: 'res' undeclared (first use in this function)
mlogc.c:1316: error: 'CURLINFO_RESPONSE_CODE' undeclared (first use in this function)
mlogc.c:1347: error: 'CURLINFO_TOTAL_TIME' undeclared (first use in this function)
mlogc.c:1348: error: 'CURLINFO_SIZE_UPLOAD' undeclared (first use in this function)
mlogc.c:1434: error: expected expression before ')' token
mlogc.c: In function 'create_new_worker':
mlogc.c:1457: error: 'CURL' undeclared (first use in this function)
mlogc.c:1457: error: 'curlptr' undeclared (first use in this function)
mlogc.c:1470: error: expected expression before ')' token
chmod: cannot access `mlogc': No such file or directory
Fix: Install the curl library. yum install curl-devel
Reply With Quote
  #2  
Old 05-26-2008, 08:06 PM
pbu's Avatar
pbu pbu is offline
Administrator
 
Join Date: Feb 2008
Location: hrwebdir.org
Posts: 1,077
pbu has a reputation beyond reputepbu has a reputation beyond reputepbu has a reputation beyond reputepbu has a reputation beyond reputepbu has a reputation beyond reputepbu has a reputation beyond reputepbu has a reputation beyond reputepbu has a reputation beyond reputepbu has a reputation beyond reputepbu has a reputation beyond reputepbu has a reputation beyond repute
Default Re: Mod security errors

i tried make mlogc and getting this errors...
Code:
Building dynamically linked mlogc...
/tmp/cc2h9Axk.o: In function `logc_cleanup':
mlogc.c:(.text+0x172a): undefined reference to `curl_global_cleanup'
/tmp/cc2h9Axk.o: In function `logc_init':
mlogc.c:(.text+0x1ae2): undefined reference to `curl_global_init'
mlogc.c:(.text+0x1d71): undefined reference to `curl_easy_init'
mlogc.c:(.text+0x1d8f): undefined reference to `curl_easy_setopt'
mlogc.c:(.text+0x1daa): undefined reference to `curl_easy_setopt'
mlogc.c:(.text+0x1dc5): undefined reference to `curl_easy_setopt'
mlogc.c:(.text+0x1de1): undefined reference to `curl_easy_setopt'
Reply With Quote
  #3  
Old 05-26-2008, 08:20 PM
pbu's Avatar
pbu pbu is offline
Administrator
 
Join Date: Feb 2008
Location: hrwebdir.org
Posts: 1,077
pbu has a reputation beyond reputepbu has a reputation beyond reputepbu has a reputation beyond reputepbu has a reputation beyond reputepbu has a reputation beyond reputepbu has a reputation beyond reputepbu has a reputation beyond reputepbu has a reputation beyond reputepbu has a reputation beyond reputepbu has a reputation beyond reputepbu has a reputation beyond repute
Default Re: Mod security errors

Another error while starting httpd

Quote:
Starting httpd: httpd: Syntax error on line 149 of /etc/httpd/conf/httpd.conf: Cannot load /usr/lib/liblua5.1.so into server: /usr/lib/liblua5.1.so: cannot open shared object file: No such file or directory
Fix: yum install lua-devel and the file name.

Umm! That didnt fix the problem.

i fixed the problem. i uncommented liblua5.1.so and httpd started fine i was able to see the mod_security loaded in test.php file.

LoadFile /usr/lib/libxml2.so
#LoadFile /usr/lib/liblua5.1.so
LoadModule security2_module modules/mod_security2.so
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 12:29 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Webmasterpals.com (c) 2008 - All Rights Reserved