-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Black CryptoKnight wrote: > Thanks Ahmet. I'll try replacing cc with gcc in the makefiles and see > what happens.
Wouldn't it be easier/better to do something like the following (I don't know what shell you're using, so this is the Bourne equivalent)? # export CC=/path/to/gcc # ./install.sh (ossec install script) # export CC=/path/to/xlc If you have some reason to keep xlc as the default compiler, the above should work nicely for you. If not, then you could just set CC=/path/to/gcc globally (.profile, etc.). > > */ahmet ozturk <[EMAIL PROTECTED]>/* wrote: > > > Hi, > > Please be sure that you are using gcc instead of xlc on AIX. "cc" is a > link to > xlc on your system as I understood your error messages. Since I don't > have > AIX 5.2 anymore, I couldn't test new version on it, however it should > work > if you compile with gcc. > > Best Regards, > > Ahmet Ozturk (I'm back :). > > ------------------- > Black CryptoKnight wrote: > > Hi, > > > > 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! > > - -- gentux echo "hfouvyyAhnbjm/dpn" | perl -pe 's/(.)/chr(ord($1)-1)/ge' gentux's gpg fingerprint ==> 5495 0388 67FF 0B89 1239 D840 4CF0 39E2 18D3 4A9E -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFO9+nTPA54hjTSp4RAk2lAJ996XHD5tur0c/86K24m65ZHr8I5gCfcKYB VQbh0K0ZpJqeynYnxogeBhI= =pPLN -----END PGP SIGNATURE-----
