*** Making zlib (by Jean-loup Gailly and Mark Adler) ***I have all required build tools installed (binutils, make, gcc, build-essentiel)
make[1]: Entering directory `/root/ossec-hids-2.8.1/src/external'
cd zlib-1.2.8/; ./configure; make libz.a;
Checking for gcc...
Checking for shared library support...
Building shared library libz.so.1.2.8 with gcc.
Checking for off64_t... No.
Checking for fseeko... No.
Checking for strerror... No.
Checking for unistd.h... No.
Checking for stdarg.h... Yes.
Checking whether to use vs[n]printf() or s[n]printf()... using s[n]printf().
Checking for snprintf() in stdio.h... No.
 WARNING: snprintf() not found, falling back to sprintf(). zlib
 can build but will be open to possible buffer-overflow security
 vulnerabilities.
Checking for return value of sprintf()... No.
 WARNING: apparently sprintf() does not return a value. zlib
 can build but will be open to possible string-format security vulnerabilities.
Checking for attribute(visibility) support... Yes.
make[2]: Entering directory `/root/ossec-hids-2.8.1/src/external/zlib-1.2.8'
gcc -O3Â -DNO_FSEEKO -DNO_STRERROR -DNO_snprintf -DHAS_sprintf_void -DHAVE_HIDDENÂ Â -c -o adler32.o adler32.c
In file included from /usr/include/limits.h:25:0,
                from /usr/lib/gcc/x86_64-linux-gnu/4.8/include-fixed/limits.h:168,
                from /usr/lib/gcc/x86_64-linux-gnu/4.8/include-fixed/syslimits.h:7,
                from /usr/lib/gcc/x86_64-linux-gnu/4.8/include-fixed/limits.h:34,
                from zconf.h:395,
                from zlib.h:34,
                from zutil.h:22,
                from adler32.c:8:
/usr/include/features.h:374:25: fatal error: sys/cdefs.h: No such file or directory
 # include <sys/cdefs.h>
                        ^
compilation terminated.
make[2]: *** [adler32.o] Error 1
make[2]: Leaving directory `/root/ossec-hids-2.8.1/src/external/zlib-1.2.8'
make[1]: *** [libz.a] Error 2
make[1]: Leaving directory `/root/ossec-hids-2.8.1/src/external'
Error Making zlib
make: *** [all] Error 1
 Error 0x5.
 Building error. Unable to finish the installation.
Ok, so it looks like your processes aren't starting up properly. Did you check the ossec.log?
Run: `/var/ossec/bin/ossec-logtest -t`
On Feb 24, 2015 6:48 PM, "'C0nfus1i0n' via ossec-list" <ossec...@googlegroups.com> wrote:
>
> ossec.log only shows that one set of errors (posted in my previous reply).
>
> Output of `/var/ossec/bin/ossec-logtest -t`:
>
> 2015/02/24 18:39:06 ossec-testrule: INFO: Reading local decoder file.
>
Try an upgrade installation.