I am trying to get ossec-hids-0.9-3 on some AIX 5.2 boxes but I'm having problems.
When I run the install I get the following messages:
___________________________________________________________________
5- Installing the system
- Running the Makefile
*** Making zlib (by Jean-loup Gailly and Mark Adler) ***
cc -c -Wall -I../../ -I../../headers -DDEFAULTDIR=\"/var/ossec\" -DCLIENT -DUSE_OPENSSL -DAIX -DHIGHFIRST -DARGV0=\"zlib\" -DXML_VAR=\"var\" -DOSSECHIDS *.c
cc: 1501-210 command option Wall contains an incorrect subargument
make: 1254-004 The error code from the last command is 40.
Stop.
cp -pr zlib.h zconf.h ../../headers/
cp -pr libz.a ../
cp: libz.a: A file or directory in the path name does not exist.
make: 1254-004 The error code from the last command is 1.
Stop.
*** Making os_xml ***
cc -DXML_VAR=\"var\" -Wall -I../ -I../headers -DDEFAULTDIR=\"/var/ossec\" -DCLIENT -DUSE_OPENSSL -DAIX -DHIGHFIRST -DARGV0=\"os_xml\" -DXML_VAR=\"var\" -DOSSECHIDS -c os_xml.c os_xml_access.c os_xml_node_access.c os_xml_variables.c
cc: 1501-210 command option Wall contains an incorrect subargument
make: 1254-004 The error code from the last command is 40.
Stop.
Error Making os_xml
make: 1254-004 The error code from the last command is 1.
Stop.
Error 0x5.
Building error. Unable to finish the installation.
___________________________________________________________________
I'm not a Unix guru, but I figured that the compiler didn't like the "-Wall" flag, so I edited the ossec-hids-0.9-3/src/Config.Make file to remove the "-Wall" flag and then edited ossec-hids-0.93/src/os_regex/Makefile to remove the "flag" switch and ran the install.sh again. It appeared to get past those errors but now gave a whole lot of errors looking like :
________________________________________________________________
"os_regex_internal.h", line 525.57: 1506-026 (S) Number of initializers cannot be greater than the number of aggregate members.
"os_regex_internal.h", line 525.65: 1506-026 (S) Number of initializers cannot be greater than the number of aggregate members.
"os_regex_internal.h", line 527.2: 1506-277 (S) Syntax error: possible missing ',' or '}'?
"os_regex_strbreak.c", line 23.38: 1506-045 (S) Undeclared identifier str.
"os_regex_strbreak.c", line 23.47: 1506-045 (S) Undeclared identifier size.
"os_regex_strbreak.c", line 25.9: 1506-045 (S) Undeclared identifier count.
"os_regex_strbreak.c", line 36.35: 1506-026 (S) Number of initializers cannot be greater than the number of aggregate members.
"os_regex_strbreak.c", line 36.49: 1506-277 (S) Syntax error: possible missing ',' or '}'?
"os_regex_strbreak.c", line 41.15: 1506-026 (S) Number of initializers cannot be greater than the number of aggregate members.
"os_regex_strbreak.c", line 47.9: 1506-045 (S) Undeclared identifier ret.
"os_regex_strbreak.c": 1506-026 (S) Number of initializers cannot be greater than the number of aggregate members.
"os_regex_strbreak.c", line 47.22: 1506-277 (S) Syntax error: possible missing ',' or '}'?
"os_regex_strbreak.c", line 55.9: 1506-045 (S) Undeclared identifier i.
"os_regex_strbreak.c": 1506-026 (S) Number of initializers cannot be greater than the number of aggregate members.
"os_regex_strbreak.c": 1506-026 (S) Number of initializers cannot be greater than the number of aggregate members.
"os_regex_strbreak.c", line 58.56: 1506-277 (S) Syntax error: possible missing ',' or '}'?
"os_regex_strbreak.c", line 62.22: 1506-026 (S) Number of initializers cannot be greater than the number of aggregate members.
"os_regex_strbreak.c", line 67.32: 1506-026 (S) Number of initializers cannot be greater than the number of aggregate members.
"os_regex_strbreak.c": 1506-026 (S) Number of initializers cannot be greater than the number of aggregate members.
"os_regex_strbreak.c", line 67.13: 1506-277 (S) Syntax error: possible missing ',' or '}'?
make: 1254-004 The error code from the last command is 1.
Stop.
Error Making os_regex
make: 1254-004 The error code from the last command is 1.
Stop.
Error 0x5.
Building error. Unable to finish the installation.
__________________________________________________________________
How can I get this thing installed under AIX? It worked perfectly on my CentOS and Ubuntu linux boxes, but no luck with AIX. Even windows went smoothly.
Help!
__________________________________________________
Do You Yahoo!?
Tired of spam?
Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
