Some how my libc6-dev package had become deinstalled - Im running a cut
down debian system (but not that cut down :-) ) - and this was the
result, maybe you might like to add an extra idiot check :-)
Thanks as always for a great tool.
You are about to start the installation process of the OSSEC HIDS.
You must have a C compiler pre-installed in your system.
If you have any questions or comments, please send an e-mail
to [EMAIL PROTECTED] (or [EMAIL PROTECTED]).
- System: Linux thecla2 2.6.19
- User: root
- Host: thecla2
-- Press ENTER to continue or Ctrl-C to abort. --
- You already have OSSEC installed. Do you want to update it? (y/n): y
- Do you want to update the rules? (y/n): y
2- Setting up the installation environment.
- Installation will be made at /var/ossec .
5- Installing the system
- Running the Makefile
*** Making zlib (by Jean-loup Gailly and Mark Adler) ***
make[1]: Entering directory
`/root/installs/ossec-hids-1.3/src/external/zlib-1.2.3'
gcc -c -g -Wall -I../../ -I../../headers -DDEFAULTDIR=\"/var/ossec\"
-DARGV0=\"zlib\" -DXML_VAR=\"var\" -DOSSECHIDS *.c
In file included from crc32.c:29:
zutil.h:23:22: error: string.h: No such file or directory
zutil.h:24:22: error: stdlib.h: No such file or directory
zutil.h:38:23: error: errno.h: No such file or directory
In file included
from /usr/lib/gcc/i486-linux-gnu/4.1.2/include/syslimits.h:7,
from /usr/lib/gcc/i486-linux-gnu/4.1.2/include/limits.h:11,
from crc32.c:36:
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/limits.h:122:61: error:
limits.h: No such file or directory
In file included from deflate.h:16,
from deflate.c:52:
zutil.h:23:22: error: string.h: No such file or directory
zutil.h:24:22: error: stdlib.h: No such file or directory
zutil.h:38:23: error: errno.h: No such file or directory
deflate.c: In function ‘deflateSetDictionary’:
deflate.c:339: warning: implicit declaration of function ‘memcpy’
deflate.c:339: warning: incompatible implicit declaration of built-in
function ‘memcpy’
deflate.c: In function ‘flush_pending’:
deflate.c:540: warning: incompatible implicit declaration of built-in
function ‘memcpy’
deflate.c: In function ‘deflate’:
deflate.c:817: warning: implicit declaration of function ‘memset’
deflate.c:817: warning: incompatible implicit declaration of built-in
function ‘memset’
deflate.c: In function ‘deflateCopy’:
deflate.c:912: warning: incompatible implicit declaration of built-in
function ‘memcpy’
deflate.c: In function ‘read_buf’:
deflate.c:976: warning: incompatible implicit declaration of built-in
function ‘memcpy’
deflate.c: In function ‘lm_init’:
deflate.c:991: warning: incompatible implicit declaration of built-in
function ‘memset’
deflate.c: In function ‘fill_window’:
deflate.c:1295: warning: incompatible implicit declaration of built-in
function ‘memcpy’
gzio.c:10:19: error: stdio.h: No such file or directory
In file included from gzio.c:12:
zutil.h:23:22: error: string.h: No such file or directory
zutil.h:24:22: error: stdlib.h: No such file or directory
zutil.h:38:23: error: errno.h: No such file or directory
gzio.c:60: error: expected specifier-qualifier-list before ‘FILE’
gzio.c:81: error: expected ‘)’ before ‘*’ token
gzio.c: In function ‘gz_open’:
gzio.c:109: warning: implicit declaration of function ‘malloc’
gzio.c:109: warning: incompatible implicit declaration of built-in
function ‘malloc’
gzio.c:115: error: ‘gz_stream’ has no member named ‘inbuf’
gzio.c:116: error: ‘gz_stream’ has no member named ‘outbuf’
gzio.c:118: error: ‘gz_stream’ has no member named ‘file’
gzio.c:121: error: ‘gz_stream’ has no member named ‘in’
gzio.c:122: error: ‘gz_stream’ has no member named ‘out’
gzio.c:123: error: ‘gz_stream’ has no member named ‘back’
gzio.c:123: error: ‘EOF’ undeclared (first use in this function)
gzio.c:123: error: (Each undeclared identifier is reported only once
gzio.c:123: error: for each function it appears in.)
gzio.c:124: error: ‘gz_stream’ has no member named ‘crc’
gzio.c:125: error: ‘gz_stream’ has no member named ‘msg’
gzio.c:126: error: ‘gz_stream’ has no member named ‘transparent’
gzio.c:128: warning: implicit declaration of function ‘strlen’
gzio.c:128: warning: incompatible implicit declaration of built-in
function ‘strlen’
gzio.c:130: error: ‘gz_stream’ has no member named ‘path’
gzio.c:131: error: ‘gz_stream’ has no member named ‘path’
gzio.c:134: error: ‘gz_stream’ has no member named ‘path’
gzio.c:135: warning: implicit declaration of function ‘strncpy’
gzio.c:135: warning: incompatible implicit declaration of built-in
function ‘strncpy’
gzio.c:135: error: ‘gz_stream’ has no member named ‘path’
gzio.c:137: error: ‘gz_stream’ has no member named ‘mode’
gzio.c:139: error: ‘gz_stream’ has no member named ‘mode’
gzio.c:140: error: ‘gz_stream’ has no member named ‘mode’
gzio.c:153: error: ‘gz_stream’ has no member named ‘mode’
gzio.c:155: error: ‘gz_stream’ has no member named ‘mode’
gzio.c:163: error: ‘gz_stream’ has no member named ‘outbuf’
gzio.c:165: error: ‘gz_stream’ has no member named ‘outbuf’
gzio.c:169: error: ‘gz_stream’ has no member named ‘inbuf’
gzio.c:178: error: ‘gz_stream’ has no member named ‘inbuf’
gzio.c:184: error: ‘errno’ undeclared (first use in this function)
gzio.c:185: error: ‘gz_stream’ has no member named ‘file’
gzio.c:185: warning: implicit declaration of function ‘fopen’
gzio.c:185: error: ‘FILE’ undeclared (first use in this function)
gzio.c:185: error: expected expression before ‘)’ token
gzio.c:187: error: ‘gz_stream’ has no member named ‘file’
gzio.c:190: error: ‘gz_stream’ has no member named ‘mode’
gzio.c:193: warning: implicit declaration of function ‘fprintf’
gzio.c:193: warning: incompatible implicit declaration of built-in
function ‘fprintf’
gzio.c:193: error: ‘gz_stream’ has no member named ‘file’
gzio.c:195: error: ‘gz_stream’ has no member named ‘start’
gzio.c:203: error: ‘gz_stream’ has no member named ‘start’
gzio.c:203: warning: implicit declaration of function ‘ftell’
gzio.c:203: error: ‘gz_stream’ has no member named ‘file’
gzio.c: In function ‘gzdopen’:
gzio.c:231: warning: implicit declaration of function ‘snprintf’
gzio.c:231: warning: incompatible implicit declaration of built-in
function ‘snprintf’
gzio.c: In function ‘gzsetparams’:
gzio.c:246: error: ‘gz_stream’ has no member named ‘mode’
gzio.c:251: error: ‘gz_stream’ has no member named ‘outbuf’
gzio.c:252: warning: implicit declaration of function ‘fwrite’
gzio.c:252: warning: incompatible implicit declaration of built-in
function ‘fwrite’
gzio.c:252: error: ‘gz_stream’ has no member named ‘outbuf’
gzio.c:252: error: ‘gz_stream’ has no member named ‘file’
gzio.c: In function ‘get_byte’:
gzio.c:269: error: ‘EOF’ undeclared (first use in this function)
gzio.c:271: error: ‘errno’ undeclared (first use in this function)
gzio.c:272: warning: implicit declaration of function ‘fread’
gzio.c:272: error: ‘gz_stream’ has no member named ‘inbuf’
gzio.c:272: error: ‘gz_stream’ has no member named ‘file’
gzio.c:275: warning: implicit declaration of function ‘ferror’
gzio.c:275: error: ‘gz_stream’ has no member named ‘file’
gzio.c:278: error: ‘gz_stream’ has no member named ‘inbuf’
gzio.c: In function ‘check_header’:
gzio.c:306: error: ‘gz_stream’ has no member named ‘inbuf’
gzio.c:307: error: ‘errno’ undeclared (first use in this function)
gzio.c:308: error: ‘gz_stream’ has no member named ‘inbuf’
gzio.c:308: error: ‘gz_stream’ has no member named ‘file’
gzio.c:309: error: ‘gz_stream’ has no member named ‘file’
gzio.c:311: error: ‘gz_stream’ has no member named ‘inbuf’
gzio.c:313: error: ‘gz_stream’ has no member named ‘transparent’
gzio.c:321: error: ‘gz_stream’ has no member named ‘transparent’
gzio.c:342: error: ‘EOF’ undeclared (first use in this function)
gzio.c: In function ‘destroy’:
gzio.c:367: error: ‘gz_stream’ has no member named ‘msg’
gzio.c:367: warning: implicit declaration of function ‘free’
gzio.c:367: error: ‘gz_stream’ has no member named ‘msg’
gzio.c:370: error: ‘gz_stream’ has no member named ‘mode’
gzio.c:376: error: ‘gz_stream’ has no member named ‘mode’
gzio.c:380: error: ‘gz_stream’ has no member named ‘file’
gzio.c:380: warning: implicit declaration of function ‘fclose’
gzio.c:380: error: ‘gz_stream’ has no member named ‘file’
gzio.c:388: error: ‘gz_stream’ has no member named ‘inbuf’
gzio.c:388: error: ‘gz_stream’ has no member named ‘inbuf’
gzio.c:389: error: ‘gz_stream’ has no member named ‘outbuf’
gzio.c:389: error: ‘gz_stream’ has no member named ‘outbuf’
gzio.c:390: error: ‘gz_stream’ has no member named ‘path’
gzio.c:390: error: ‘gz_stream’ has no member named ‘path’
gzio.c: In function ‘gzread’:
gzio.c:408: error: ‘gz_stream’ has no member named ‘mode’
gzio.c:417: error: ‘gz_stream’ has no member named ‘back’
gzio.c:417: error: ‘EOF’ undeclared (first use in this function)
gzio.c:418: error: ‘gz_stream’ has no member named ‘back’
gzio.c:421: error: ‘gz_stream’ has no member named ‘back’
gzio.c:422: error: ‘gz_stream’ has no member named ‘out’
gzio.c:424: error: ‘gz_stream’ has no member named ‘last’
gzio.c:432: error: ‘gz_stream’ has no member named ‘transparent’
gzio.c:437: warning: implicit declaration of function ‘memcpy’
gzio.c:437: warning: incompatible implicit declaration of built-in
function ‘memcpy’
gzio.c:446: error: ‘gz_stream’ has no member named ‘file’
gzio.c:449: error: ‘gz_stream’ has no member named ‘in’
gzio.c:450: error: ‘gz_stream’ has no member named ‘out’
gzio.c:456: error: ‘errno’ undeclared (first use in this function)
gzio.c:457: error: ‘gz_stream’ has no member named ‘inbuf’
gzio.c:457: error: ‘gz_stream’ has no member named ‘file’
gzio.c:460: error: ‘gz_stream’ has no member named ‘file’
gzio.c:465: error: ‘gz_stream’ has no member named ‘inbuf’
gzio.c:467: error: ‘gz_stream’ has no member named ‘in’
gzio.c:468: error: ‘gz_stream’ has no member named ‘out’
gzio.c:470: error: ‘gz_stream’ has no member named ‘in’
gzio.c:471: error: ‘gz_stream’ has no member named ‘out’
gzio.c:475: error: ‘gz_stream’ has no member named ‘crc’
gzio.c:475: error: ‘gz_stream’ has no member named ‘crc’
gzio.c:478: error: ‘gz_stream’ has no member named ‘crc’
gzio.c:489: error: ‘gz_stream’ has no member named ‘crc’
gzio.c:495: error: ‘gz_stream’ has no member named ‘crc’
gzio.c:495: error: ‘gz_stream’ has no member named ‘crc’
gzio.c: In function ‘gzungetc’:
gzio.c:526: error: ‘gz_stream’ has no member named ‘mode’
gzio.c:526: error: ‘EOF’ undeclared (first use in this function)
gzio.c:526: error: ‘gz_stream’ has no member named ‘back’
gzio.c:527: error: ‘gz_stream’ has no member named ‘back’
gzio.c:528: error: ‘gz_stream’ has no member named ‘out’
gzio.c:529: error: ‘gz_stream’ has no member named ‘last’
gzio.c:530: error: ‘gz_stream’ has no member named ‘last’
gzio.c: In function ‘gzwrite’:
gzio.c:571: error: ‘gz_stream’ has no member named ‘mode’
gzio.c:580: error: ‘gz_stream’ has no member named ‘outbuf’
gzio.c:581: warning: incompatible implicit declaration of built-in
function ‘fwrite’
gzio.c:581: error: ‘gz_stream’ has no member named ‘outbuf’
gzio.c:581: error: ‘gz_stream’ has no member named ‘file’
gzio.c:587: error: ‘gz_stream’ has no member named ‘in’
gzio.c:588: error: ‘gz_stream’ has no member named ‘out’
gzio.c:590: error: ‘gz_stream’ has no member named ‘in’
gzio.c:591: error: ‘gz_stream’ has no member named ‘out’
gzio.c:594: error: ‘gz_stream’ has no member named ‘crc’
gzio.c:594: error: ‘gz_stream’ has no member named ‘crc’
gzio.c: In function ‘gzprintf’:
gzio.c:632: warning: implicit declaration of function ‘vsnprintf’
gzio.c: In function ‘gzputs’:
gzio.c:702: warning: incompatible implicit declaration of built-in
function ‘strlen’
gzio.c: In function ‘do_flush’:
gzio.c:718: error: ‘gz_stream’ has no member named ‘mode’
gzio.c:726: warning: incompatible implicit declaration of built-in
function ‘fwrite’
gzio.c:726: error: ‘gz_stream’ has no member named ‘outbuf’
gzio.c:726: error: ‘gz_stream’ has no member named ‘file’
gzio.c:730: error: ‘gz_stream’ has no member named ‘outbuf’
gzio.c:734: error: ‘gz_stream’ has no member named ‘out’
gzio.c:736: error: ‘gz_stream’ has no member named ‘out’
gzio.c: In function ‘gzflush’:
gzio.c:759: warning: implicit declaration of function ‘fflush’
gzio.c:759: error: ‘gz_stream’ has no member named ‘file’
gzio.c: In function ‘gzseek’:
gzio.c:784: error: ‘gz_stream’ has no member named ‘mode’
gzio.c:789: error: ‘gz_stream’ has no member named ‘in’
gzio.c:794: error: ‘gz_stream’ has no member named ‘inbuf’
gzio.c:795: error: ‘gz_stream’ has no member named ‘inbuf’
gzio.c:795: warning: incompatible implicit declaration of built-in
function ‘malloc’
gzio.c:796: error: ‘gz_stream’ has no member named ‘inbuf’
gzio.c:797: warning: implicit declaration of function ‘memset’
gzio.c:797: warning: incompatible implicit declaration of built-in
function ‘memset’
gzio.c:797: error: ‘gz_stream’ has no member named ‘inbuf’
gzio.c:803: error: ‘gz_stream’ has no member named ‘inbuf’
gzio.c:808: error: ‘gz_stream’ has no member named ‘in’
gzio.c:815: error: ‘gz_stream’ has no member named ‘out’
gzio.c:819: error: ‘gz_stream’ has no member named ‘transparent’
gzio.c:821: error: ‘gz_stream’ has no member named ‘back’
gzio.c:821: error: ‘EOF’ undeclared (first use in this function)
gzio.c:823: error: ‘gz_stream’ has no member named ‘inbuf’
gzio.c:824: warning: implicit declaration of function ‘fseek’
gzio.c:824: error: ‘gz_stream’ has no member named ‘file’
gzio.c:826: error: ‘gz_stream’ has no member named ‘in’
gzio.c:826: error: ‘gz_stream’ has no member named ‘out’
gzio.c:831: error: ‘gz_stream’ has no member named ‘out’
gzio.c:832: error: ‘gz_stream’ has no member named ‘out’
gzio.c:838: error: ‘gz_stream’ has no member named ‘outbuf’
gzio.c:839: error: ‘gz_stream’ has no member named ‘outbuf’
gzio.c:839: warning: incompatible implicit declaration of built-in
function ‘malloc’
gzio.c:840: error: ‘gz_stream’ has no member named ‘outbuf’
gzio.c:842: error: ‘gz_stream’ has no member named ‘back’
gzio.c:843: error: ‘gz_stream’ has no member named ‘back’
gzio.c:844: error: ‘gz_stream’ has no member named ‘out’
gzio.c:846: error: ‘gz_stream’ has no member named ‘last’
gzio.c:852: error: ‘gz_stream’ has no member named ‘outbuf’
gzio.c:856: error: ‘gz_stream’ has no member named ‘out’
gzio.c:857: warning: control reaches end of non-void function
gzio.c: In function ‘gzrewind’:
gzio.c:867: error: ‘gz_stream’ has no member named ‘mode’
gzio.c:871: error: ‘gz_stream’ has no member named ‘back’
gzio.c:871: error: ‘EOF’ undeclared (first use in this function)
gzio.c:873: error: ‘gz_stream’ has no member named ‘inbuf’
gzio.c:874: error: ‘gz_stream’ has no member named ‘crc’
gzio.c:875: error: ‘gz_stream’ has no member named ‘transparent’
gzio.c:876: error: ‘gz_stream’ has no member named ‘in’
gzio.c:877: error: ‘gz_stream’ has no member named ‘out’
gzio.c:878: error: ‘gz_stream’ has no member named ‘file’
gzio.c:878: error: ‘gz_stream’ has no member named ‘start’
gzio.c: In function ‘gzeof’:
gzio.c:905: error: ‘gz_stream’ has no member named ‘mode’
gzio.c: In function ‘gzdirect’:
gzio.c:918: error: ‘gz_stream’ has no member named ‘mode’
gzio.c:919: error: ‘gz_stream’ has no member named ‘transparent’
gzio.c:920: warning: control reaches end of non-void function
gzio.c: In function ‘putLong’:
gzio.c:926: error: expected declaration specifiers before ‘FILE’
gzio.c:931: warning: implicit declaration of function ‘fputc’
gzio.c: In function ‘getLong’:
gzio.c:949: error: ‘EOF’ undeclared (first use in this function)
gzio.c: In function ‘gzclose’:
gzio.c:965: error: ‘gz_stream’ has no member named ‘mode’
gzio.c:972: error: ‘gz_stream’ has no member named ‘file’
gzio.c:972: error: ‘gz_stream’ has no member named ‘crc’
gzio.c:973: error: ‘gz_stream’ has no member named ‘file’
gzio.c:973: error: ‘gz_stream’ has no member named ‘in’
gzio.c: In function ‘gzerror’:
gzio.c:1007: warning: implicit declaration of function ‘strerror’
gzio.c:1007: error: ‘errno’ undeclared (first use in this function)
gzio.c:1007: warning: pointer/integer type mismatch in conditional
expression
gzio.c:1011: error: ‘gz_stream’ has no member named ‘msg’
gzio.c:1011: error: ‘gz_stream’ has no member named ‘msg’
gzio.c:1012: warning: incompatible implicit declaration of built-in
function ‘strlen’
gzio.c:1012: error: ‘gz_stream’ has no member named ‘path’
gzio.c:1014: error: ‘gz_stream’ has no member named ‘msg’
gzio.c:1014: warning: incompatible implicit declaration of built-in
function ‘malloc’
gzio.c:1015: error: ‘gz_stream’ has no member named ‘msg’
gzio.c:1017: error: ‘gz_stream’ has no member named ‘msg’
gzio.c:1018: warning: incompatible implicit declaration of built-in
function ‘snprintf’
gzio.c:1018: error: ‘gz_stream’ has no member named ‘msg’
gzio.c:1018: error: ‘gz_stream’ has no member named ‘path’
gzio.c:1019: error: ‘gz_stream’ has no member named ‘msg’
gzio.c:1020: warning: control reaches end of non-void function
gzio.c: In function ‘gzclearerr’:
gzio.c:1033: warning: implicit declaration of function ‘clearerr’
gzio.c:1033: error: ‘gz_stream’ has no member named ‘file’
In file included from infback.c:13:
zutil.h:23:22: error: string.h: No such file or directory
zutil.h:24:22: error: stdlib.h: No such file or directory
zutil.h:38:23: error: errno.h: No such file or directory
infback.c: In function ‘inflateBack’:
infback.c:338: warning: implicit declaration of function ‘memcpy’
infback.c:338: warning: incompatible implicit declaration of built-in
function ‘memcpy’
In file included from inffast.c:6:
zutil.h:23:22: error: string.h: No such file or directory
zutil.h:24:22: error: stdlib.h: No such file or directory
zutil.h:38:23: error: errno.h: No such file or directory
In file included from inflate.c:83:
zutil.h:23:22: error: string.h: No such file or directory
zutil.h:24:22: error: stdlib.h: No such file or directory
zutil.h:38:23: error: errno.h: No such file or directory
inflate.c: In function ‘updatewindow’:
inflate.c:350: warning: implicit declaration of function ‘memcpy’
inflate.c:350: warning: incompatible implicit declaration of built-in
function ‘memcpy’
inflate.c:357: warning: incompatible implicit declaration of built-in
function ‘memcpy’
inflate.c: In function ‘inflate’:
inflate.c:688: warning: incompatible implicit declaration of built-in
function ‘memcpy’
inflate.c:826: warning: incompatible implicit declaration of built-in
function ‘memcpy’
inflate.c: In function ‘inflateSetDictionary’:
inflate.c:1197: warning: incompatible implicit declaration of built-in
function ‘memcpy’
inflate.c:1202: warning: incompatible implicit declaration of built-in
function ‘memcpy’
inflate.c: In function ‘inflateCopy’:
inflate.c:1353: warning: incompatible implicit declaration of built-in
function ‘memcpy’
In file included from inftrees.c:6:
zutil.h:23:22: error: string.h: No such file or directory
zutil.h:24:22: error: stdlib.h: No such file or directory
zutil.h:38:23: error: errno.h: No such file or directory
In file included from deflate.h:16,
from trees.c:36:
zutil.h:23:22: error: string.h: No such file or directory
zutil.h:24:22: error: stdlib.h: No such file or directory
zutil.h:38:23: error: errno.h: No such file or directory
In file included from zutil.c:8:
zutil.h:23:22: error: string.h: No such file or directory
zutil.h:24:22: error: stdlib.h: No such file or directory
zutil.h:38:23: error: errno.h: No such file or directory
zutil.c: In function ‘zcalloc’:
zutil.c:306: warning: implicit declaration of function ‘malloc’
zutil.c:306: warning: incompatible implicit declaration of built-in
function ‘malloc’
zutil.c:307: warning: implicit declaration of function ‘calloc’
zutil.c:307: warning: incompatible implicit declaration of built-in
function ‘calloc’
zutil.c: In function ‘zcfree’:
zutil.c:314: warning: implicit declaration of function ‘free’
make[1]: *** [shared] Error 1
make[1]: Leaving directory
`/root/installs/ossec-hids-1.3/src/external/zlib-1.2.3'
make[1]: Entering directory
`/root/installs/ossec-hids-1.3/src/external/zlib-1.2.3'
cp -pr zlib.h zconf.h ../../headers/
cp -pr libz.a ../
cp: cannot stat `libz.a': No such file or directory
make[1]: *** [ossec] Error 1
make[1]: Leaving directory
`/root/installs/ossec-hids-1.3/src/external/zlib-1.2.3'
*** Making os_xml ***
make[1]: Entering directory `/root/installs/ossec-hids-1.3/src/os_xml'
gcc -DXML_VAR=\"var\" -g -Wall -I../ -I../headers -DDEFAULTDIR=
\"/var/ossec\" -DARGV0=\"os_xml\" -DXML_VAR=\"var\" -DOSSECHIDS -c
os_xml.c os_xml_access.c os_xml_node_access.c os_xml_variables.c
os_xml_writer.c
In file included from os_xml.c:18:
../headers/shared.h:29:23: error: sys/types.h: No such file or directory
../headers/shared.h:30:22: error: sys/stat.h: No such file or directory
../headers/shared.h:31:22: error: sys/time.h: No such file or directory
../headers/shared.h:32:23: error: sys/param.h: No such file or directory
../headers/shared.h:37:22: error: sys/wait.h: No such file or directory
../headers/shared.h:41:24: error: sys/select.h: No such file or
directory
../headers/shared.h:44:25: error: sys/utsname.h: No such file or
directory
../headers/shared.h:46:19: error: stdio.h: No such file or directory
../headers/shared.h:47:20: error: unistd.h: No such file or directory
../headers/shared.h:48:20: error: stdlib.h: No such file or directory
../headers/shared.h:49:20: error: string.h: No such file or directory
../headers/shared.h:51:19: error: fcntl.h: No such file or directory
../headers/shared.h:52:20: error: dirent.h: No such file or directory
../headers/shared.h:53:19: error: ctype.h: No such file or directory
../headers/shared.h:54:20: error: signal.h: No such file or directory
../headers/shared.h:58:18: error: glob.h: No such file or directory
../headers/shared.h:59:19: error: netdb.h: No such file or directory
../headers/shared.h:60:24: error: netinet/in.h: No such file or
directory
../headers/shared.h:61:23: error: arpa/inet.h: No such file or directory
../headers/shared.h:62:24: error: sys/socket.h: No such file or
directory
../headers/shared.h:63:20: error: sys/un.h: No such file or directory
../headers/shared.h:69:18: error: time.h: No such file or directory
../headers/shared.h:70:19: error: errno.h: No such file or directory
In file included from ../headers/shared.h:176,
from os_xml.c:18:
../headers/privsep_op.h:24: error: expected ‘)’ before ‘uid’
../headers/privsep_op.h:26: error: expected ‘)’ before ‘gid’
In file included from ../headers/shared.h:185,
from os_xml.c:18:
../headers/file-queue.h:27: error: expected specifier-qualifier-list
before ‘FILE’
In file included from ../headers/file-queue.h:34,
from ../headers/shared.h:185,
from os_xml.c:18:
../headers/read-alert.h:35: error: expected declaration specifiers or
‘...’ before ‘FILE’
In file included from ../headers/shared.h:185,
from os_xml.c:18:
../headers/file-queue.h:35: warning: ‘struct tm’ declared inside
parameter list
../headers/file-queue.h:35: warning: its scope is only this definition
or declaration, which is probably not what you want
../headers/file-queue.h:36: warning: ‘struct tm’ declared inside
parameter list
os_xml.c:34: error: expected ‘)’ before ‘*’ token
os_xml.c:39: error: expected ‘)’ before ‘*’ token
os_xml.c:40: error: expected ‘)’ before ‘*’ token
os_xml.c:46: error: expected ‘)’ before ‘*’ token
os_xml.c: In function ‘xml_error’:
os_xml.c:78: warning: implicit declaration of function ‘memset’
os_xml.c:78: warning: incompatible implicit declaration of built-in
function ‘memset’
os_xml.c:79: warning: implicit declaration of function ‘vsnprintf’
os_xml.c: In function ‘OS_ClearXML’:
os_xml.c:95: warning: implicit declaration of function ‘free’
os_xml.c:107: warning: incompatible implicit declaration of built-in
function ‘memset’
os_xml.c: In function ‘OS_ReadXML’:
os_xml.c:120: error: ‘FILE’ undeclared (first use in this function)
os_xml.c:120: error: (Each undeclared identifier is reported only once
os_xml.c:120: error: for each function it appears in.)
os_xml.c:120: error: ‘fp’ undeclared (first use in this function)
os_xml.c:122: warning: implicit declaration of function ‘fopen’
os_xml.c:131: error: ‘NULL’ undeclared (first use in this function)
os_xml.c:139: warning: incompatible implicit declaration of built-in
function ‘memset’
os_xml.c:144: warning: implicit declaration of function ‘_ReadElem’
os_xml.c:148: warning: implicit declaration of function ‘fclose’
os_xml.c: At top level:
os_xml.c:168: error: expected ‘)’ before ‘*’ token
os_xml.c:202: error: expected ‘)’ before ‘*’ token
os_xml.c: In function ‘_writememory’:
os_xml.c:363: warning: implicit declaration of function ‘realloc’
os_xml.c:364: warning: implicit declaration of function ‘calloc’
os_xml.c:364: warning: incompatible implicit declaration of built-in
function ‘calloc’
os_xml.c:365: warning: implicit declaration of function ‘strncpy’
os_xml.c:365: warning: incompatible implicit declaration of built-in
function ‘strncpy’
os_xml.c:371: warning: assignment makes pointer from integer without a
cast
os_xml.c:375: warning: assignment makes pointer from integer without a
cast
os_xml.c:379: warning: assignment makes pointer from integer without a
cast
os_xml.c:383: warning: assignment makes pointer from integer without a
cast
os_xml.c:391: warning: implicit declaration of function ‘strcasecmp’
os_xml.c: In function ‘_writecontent’:
os_xml.c:402: warning: incompatible implicit declaration of built-in
function ‘calloc’
os_xml.c:403: warning: incompatible implicit declaration of built-in
function ‘strncpy’
os_xml.c: In function ‘_checkmemory’:
os_xml.c:416: warning: implicit declaration of function ‘strcmp’
os_xml.c: At top level:
os_xml.c:431: error: expected ‘)’ before ‘*’ token
os_xml_access.c:17:19: error: stdio.h: No such file or directory
os_xml_access.c:18:20: error: string.h: No such file or directory
os_xml_access.c:19:20: error: stdlib.h: No such file or directory
os_xml_access.c: In function ‘OS_ElementExist’:
os_xml_access.c:37: error: ‘NULL’ undeclared (first use in this
function)
os_xml_access.c:37: error: (Each undeclared identifier is reported only
once
os_xml_access.c:37: error: for each function it appears in.)
os_xml_access.c:46: warning: implicit declaration of function ‘strcmp’
os_xml_access.c: In function ‘OS_RootElementExist’:
os_xml_access.c:74: error: ‘NULL’ undeclared (first use in this
function)
os_xml_access.c: In function ‘_GetElements’:
os_xml_access.c:107: error: ‘NULL’ undeclared (first use in this
function)
os_xml_access.c:114: warning: comparison of distinct pointer types lacks
a cast
os_xml_access.c:128: warning: comparison of distinct pointer types lacks
a cast
os_xml_access.c:130: warning: comparison of distinct pointer types lacks
a cast
os_xml_access.c:132: warning: implicit declaration of function ‘strlen’
os_xml_access.c:132: warning: incompatible implicit declaration of
built-in function ‘strlen’
os_xml_access.c:134: warning: implicit declaration of function ‘realloc’
os_xml_access.c:137: warning: implicit declaration of function ‘calloc’
os_xml_access.c:137: warning: incompatible implicit declaration of
built-in function ‘calloc’
os_xml_access.c:138: warning: comparison of distinct pointer types lacks
a cast
os_xml_access.c:140: warning: implicit declaration of function ‘free’
os_xml_access.c:143: warning: implicit declaration of function ‘strncpy’
os_xml_access.c:143: warning: incompatible implicit declaration of
built-in function ‘strncpy’
os_xml_access.c:149: warning: comparison of distinct pointer types lacks
a cast
os_xml_access.c:179: warning: assignment from incompatible pointer type
os_xml_access.c: In function ‘OS_GetOneContentforElement’:
os_xml_access.c:191: error: ‘NULL’ undeclared (first use in this
function)
os_xml_access.c:191: warning: initialization from incompatible pointer
type
os_xml_access.c:195: warning: passing argument 3 of ‘_GetElementContent’
from incompatible pointer type
os_xml_access.c:197: warning: return from incompatible pointer type
os_xml_access.c:199: warning: comparison of distinct pointer types lacks
a cast
os_xml_access.c:201: warning: incompatible implicit declaration of
built-in function ‘strlen’
os_xml_access.c:204: warning: incompatible implicit declaration of
built-in function ‘calloc’
os_xml_access.c:205: warning: comparison of distinct pointer types lacks
a cast
os_xml_access.c:207: warning: incompatible implicit declaration of
built-in function ‘strncpy’
os_xml_access.c:214: warning: comparison of distinct pointer types lacks
a cast
os_xml_access.c:220: warning: return from incompatible pointer type
os_xml_access.c: In function ‘OS_GetElementContent’:
os_xml_access.c:230: error: ‘NULL’ undeclared (first use in this
function)
os_xml_access.c:230: warning: passing argument 3 of ‘_GetElementContent’
from incompatible pointer type
os_xml_access.c: In function ‘OS_GetContents’:
os_xml_access.c:240: error: ‘NULL’ undeclared (first use in this
function)
os_xml_access.c:245: warning: passing argument 3 of ‘_GetElementContent’
from incompatible pointer type
os_xml_access.c: In function ‘OS_GetAttributeContent’:
os_xml_access.c:257: error: ‘NULL’ undeclared (first use in this
function)
os_xml_access.c:257: warning: initialization from incompatible pointer
type
os_xml_access.c:265: warning: return from incompatible pointer type
os_xml_access.c:267: warning: comparison of distinct pointer types lacks
a cast
os_xml_access.c:269: warning: incompatible implicit declaration of
built-in function ‘strlen’
os_xml_access.c:272: warning: incompatible implicit declaration of
built-in function ‘calloc’
os_xml_access.c:273: warning: comparison of distinct pointer types lacks
a cast
os_xml_access.c:275: warning: incompatible implicit declaration of
built-in function ‘strncpy’
os_xml_access.c:282: warning: comparison of distinct pointer types lacks
a cast
os_xml_access.c:288: warning: return from incompatible pointer type
os_xml_access.c: In function ‘_GetElementContent’:
os_xml_access.c:298: error: ‘NULL’ undeclared (first use in this
function)
os_xml_access.c:324: warning: comparison of distinct pointer types lacks
a cast
os_xml_access.c:337: warning: comparison of distinct pointer types lacks
a cast
os_xml_access.c:339: warning: comparison of distinct pointer types lacks
a cast
os_xml_access.c:354: warning: comparison of distinct pointer types lacks
a cast
os_xml_access.c:357: warning: incompatible implicit declaration of
built-in function ‘strlen’
os_xml_access.c:362: warning: incompatible implicit declaration of
built-in function ‘calloc’
os_xml_access.c:363: warning: comparison of distinct pointer types lacks
a cast
os_xml_access.c:368: warning: incompatible implicit declaration of
built-in function ‘strncpy’
os_xml_access.c:371: warning: comparison of distinct pointer types lacks
a cast
os_xml_access.c:403: warning: assignment from incompatible pointer type
os_xml_node_access.c:17:19: error: stdio.h: No such file or directory
os_xml_node_access.c:18:20: error: string.h: No such file or directory
os_xml_node_access.c:19:20: error: stdlib.h: No such file or directory
os_xml_node_access.c: In function ‘OS_ClearNode’:
os_xml_node_access.c:35: warning: implicit declaration of function
‘free’
os_xml_node_access.c:59: error: ‘NULL’ undeclared (first use in this
function)
os_xml_node_access.c:59: error: (Each undeclared identifier is reported
only once
os_xml_node_access.c:59: error: for each function it appears in.)
os_xml_node_access.c: In function ‘OS_GetElementsbyNode’:
os_xml_node_access.c:79: error: ‘NULL’ undeclared (first use in this
function)
os_xml_node_access.c:101: warning: implicit declaration of function
‘realloc’
os_xml_node_access.c:106: warning: implicit declaration of function
‘calloc’
os_xml_node_access.c:106: warning: incompatible implicit declaration of
built-in function ‘calloc’
os_xml_node_access.c:116: warning: implicit declaration of function
‘strdup’
os_xml_node_access.c:116: warning: incompatible implicit declaration of
built-in function ‘strdup’
os_xml_variables.c:17:19: error: stdio.h: No such file or directory
os_xml_variables.c:18:20: error: string.h: No such file or directory
os_xml_variables.c:19:20: error: stdlib.h: No such file or directory
os_xml_variables.c: In function ‘OS_ApplyVariables’:
os_xml_variables.c:26: error: ‘NULL’ undeclared (first use in this
function)
os_xml_variables.c:26: error: (Each undeclared identifier is reported
only once
os_xml_variables.c:26: error: for each function it appears in.)
os_xml_variables.c:45: warning: implicit declaration of function
‘strcasecmp’
os_xml_variables.c:51: warning: implicit declaration of function
‘snprintf’
os_xml_variables.c:51: warning: incompatible implicit declaration of
built-in function ‘snprintf’
os_xml_variables.c:53: warning: implicit declaration of function
‘realloc’
os_xml_variables.c:57: warning: implicit declaration of function
‘strdup’
os_xml_variables.c:57: warning: incompatible implicit declaration of
built-in function ‘strdup’
os_xml_variables.c:62: warning: implicit declaration of function
‘strncpy’
os_xml_variables.c:62: warning: incompatible implicit declaration of
built-in function ‘strncpy’
os_xml_variables.c:69: warning: incompatible implicit declaration of
built-in function ‘snprintf’
os_xml_variables.c:80: warning: incompatible implicit declaration of
built-in function ‘snprintf’
os_xml_variables.c:86: warning: incompatible implicit declaration of
built-in function ‘snprintf’
os_xml_variables.c:92: warning: incompatible implicit declaration of
built-in function ‘strdup’
os_xml_variables.c:96: warning: incompatible implicit declaration of
built-in function ‘strncpy’
os_xml_variables.c:120: warning: implicit declaration of function
‘strlen’
os_xml_variables.c:120: warning: incompatible implicit declaration of
built-in function ‘strlen’
os_xml_variables.c:125: warning: incompatible implicit declaration of
built-in function ‘strdup’
os_xml_variables.c:130: warning: incompatible implicit declaration of
built-in function ‘snprintf’
os_xml_variables.c:142: warning: implicit declaration of function
‘memset’
os_xml_variables.c:142: warning: incompatible implicit declaration of
built-in function ‘memset’
os_xml_variables.c:180: warning: implicit declaration of function ‘free’
os_xml_variables.c:182: warning: implicit declaration of function
‘calloc’
os_xml_variables.c:182: warning: incompatible implicit declaration of
built-in function ‘calloc’
os_xml_variables.c:187: warning: incompatible implicit declaration of
built-in function ‘snprintf’
os_xml_variables.c:193: warning: incompatible implicit declaration of
built-in function ‘strncpy’
os_xml_variables.c:197: warning: implicit declaration of function
‘strncat’
os_xml_variables.c:197: warning: incompatible implicit declaration of
built-in function ‘strncat’
os_xml_variables.c:213: warning: incompatible implicit declaration of
built-in function ‘snprintf’
os_xml_variables.c:229: warning: incompatible implicit declaration of
built-in function ‘snprintf’
In file included from os_xml_writer.c:18:
../headers/shared.h:29:23: error: sys/types.h: No such file or directory
../headers/shared.h:30:22: error: sys/stat.h: No such file or directory
../headers/shared.h:31:22: error: sys/time.h: No such file or directory
../headers/shared.h:32:23: error: sys/param.h: No such file or directory
../headers/shared.h:37:22: error: sys/wait.h: No such file or directory
../headers/shared.h:41:24: error: sys/select.h: No such file or
directory
../headers/shared.h:44:25: error: sys/utsname.h: No such file or
directory
../headers/shared.h:46:19: error: stdio.h: No such file or directory
../headers/shared.h:47:20: error: unistd.h: No such file or directory
../headers/shared.h:48:20: error: stdlib.h: No such file or directory
../headers/shared.h:49:20: error: string.h: No such file or directory
../headers/shared.h:51:19: error: fcntl.h: No such file or directory
../headers/shared.h:52:20: error: dirent.h: No such file or directory
../headers/shared.h:53:19: error: ctype.h: No such file or directory
../headers/shared.h:54:20: error: signal.h: No such file or directory
../headers/shared.h:58:18: error: glob.h: No such file or directory
../headers/shared.h:59:19: error: netdb.h: No such file or directory
../headers/shared.h:60:24: error: netinet/in.h: No such file or
directory
../headers/shared.h:61:23: error: arpa/inet.h: No such file or directory
../headers/shared.h:62:24: error: sys/socket.h: No such file or
directory
../headers/shared.h:63:20: error: sys/un.h: No such file or directory
../headers/shared.h:69:18: error: time.h: No such file or directory
../headers/shared.h:70:19: error: errno.h: No such file or directory
In file included from ../headers/shared.h:176,
from os_xml_writer.c:18:
../headers/privsep_op.h:24: error: expected ‘)’ before ‘uid’
../headers/privsep_op.h:26: error: expected ‘)’ before ‘gid’
In file included from ../headers/shared.h:185,
from os_xml_writer.c:18:
../headers/file-queue.h:27: error: expected specifier-qualifier-list
before ‘FILE’
In file included from ../headers/file-queue.h:34,
from ../headers/shared.h:185,
from os_xml_writer.c:18:
../headers/read-alert.h:35: error: expected declaration specifiers or
‘...’ before ‘FILE’
In file included from ../headers/shared.h:185,
from os_xml_writer.c:18:
../headers/file-queue.h:35: warning: ‘struct tm’ declared inside
parameter list
../headers/file-queue.h:35: warning: its scope is only this definition
or declaration, which is probably not what you want
../headers/file-queue.h:36: warning: ‘struct tm’ declared inside
parameter list
os_xml_writer.c:35: error: expected ‘)’ before ‘*’ token
os_xml_writer.c:36: error: expected ‘)’ before ‘*’ token
os_xml_writer.c:45: error: expected ‘)’ before ‘*’ token
os_xml_writer.c: In function ‘OS_WriteXML’:
os_xml_writer.c:74: error: ‘FILE’ undeclared (first use in this
function)
os_xml_writer.c:74: error: (Each undeclared identifier is reported only
once
os_xml_writer.c:74: error: for each function it appears in.)
os_xml_writer.c:74: error: ‘fp_in’ undeclared (first use in this
function)
os_xml_writer.c:75: error: ‘fp_out’ undeclared (first use in this
function)
os_xml_writer.c:79: warning: implicit declaration of function ‘fopen’
os_xml_writer.c:90: warning: implicit declaration of function ‘fclose’
os_xml_writer.c:95: warning: implicit declaration of function
‘_WReadElem’
os_xml_writer.c: At top level:
os_xml_writer.c:111: error: expected ‘)’ before ‘*’ token
os_xml_writer.c:162: error: expected ‘)’ before ‘*’ token
make[1]: *** [xml] Error 1
make[1]: Leaving directory `/root/installs/ossec-hids-1.3/src/os_xml'
Error Making os_xml
make: *** [all] Error 1
Error 0x5.
Building error. Unable to finish the installation.