+ Responder ao Tópico



  1. #1

    Padrão Ossec Hids

    iae pessoal, blza ???
    Olha, fui instalar o ossec hids.... mas olha só o q aparece:

    #5- Instalando o sistema
    #- Executando o Makefile
    # *** Making os_xml ***
    #make[1]: Entering directory `/root/ossec-hids-0.8/src/os_xml'
    #gcc -DXML_VAR=\"var\" -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

    #In file included from os_xml.c:18:
    #../headers/shared.h:29:23: sys/types.h: Arquivo ou diretório não encontrado
    #../headers/shared.h:30:22: sys/stat.h: Arquivo ou diretório não encontrado
    #../headers/shared.h:31:22: sys/time.h: Arquivo ou diretório não encontrado
    #../headers/shared.h:35:22: sys/wait.h: Arquivo ou diretório não encontrado
    #../headers/shared.h:36:24: sys/select.h: Arquivo ou diretório não encontrado
    #../headers/shared.h:37:25: sys/utsname.h: Arquivo ou diretório não encontrado
    #../headers/shared.h:39:19: stdio.h: Arquivo ou diretório não encontrado
    #../headers/shared.h:40:20: unistd.h: Arquivo ou diretório não encontrado
    #../headers/shared.h:41:20: stdlib.h: Arquivo ou diretório não encontrado
    #../headers/shared.h:42:20: string.h: Arquivo ou diretório não encontrado
    #../headers/shared.h:44:19: fcntl.h: Arquivo ou diretório não encontrado
    #../headers/shared.h:45:20: dirent.h: Arquivo ou diretório não encontrado
    #../headers/shared.h:46:19: ctype.h: Arquivo ou diretório não encontrado
    #../headers/shared.h:50:19: netdb.h: Arquivo ou diretório não encontrado
    #../headers/shared.h:51:24: netinet/in.h: Arquivo ou diretório não encontrado
    #../headers/shared.h:52:23: arpa/inet.h: Arquivo ou diretório não encontrado
    #../headers/shared.h:53:24: sys/socket.h: Arquivo ou diretório não encontrado
    #../headers/shared.h:54:20: sys/un.h: Arquivo ou diretório não encontrado
    #../headers/shared.h:60:18: time.h: Arquivo ou diretório não encontrado
    #../headers/shared.h:61:19: errno.h: Arquivo ou diretório não encontrado
    #In file included from ../headers/shared.h:140,
    # from ../headers/privsep_op.h:18,
    # from ../headers/shared.h:132,
    # from os_xml.c:18:
    #../headers/file-queue.h:27: error: parse error before "FILE"
    #../headers/file-queue.h:27: warning: no semicolon at end of struct or union
    #../headers/file-queue.h:30: error: parse error before '}' token
    #../headers/file-queue.h:30: warning: type defaults to `int' in declaration of `file_queue'
    #../headers/file-queue.h:30: warning: data definition has no type or storage class
    #In file included from ../headers/file-queue.h:34,
    # from ../headers/shared.h:140,
    # from ../headers/privsep_op.h:18,
    # from ../headers/shared.h:132,
    # from os_xml.c:18:
    #../headers/read-alert.h:35: error: parse error before "FILE"
    #In file included from ../headers/shared.h:140,
    # from ../headers/privsep_op.h:18,
    # from ../headers/shared.h:132,
    # from os_xml.c:18:
    #../headers/file-queue.h:35: error: parse error before '*' token
    #../headers/file-queue.h:36: error: parse error before '*' token
    #In file included from ../headers/shared.h:143,
    # from ../headers/privsep_op.h:18,
    # from ../headers/shared.h:132,
    # from os_xml.c:18:
    #../os_regex/os_regex.h:168:20: string.h: Arquivo ou diretório não encontrado
    #In file included from ../headers/shared.h:132,
    # from os_xml.c:18:
    #../headers/privsep_op.h:24: error: parse error before "uid"
    #../headers/privsep_op.h:26: error: parse error before "gid"
    #os_xml.c:34: error: parse error before '*' token
    #os_xml.c:39: error: parse error before '*' token
    #os_xml.c:40: error: parse error before '*' token
    #os_xml.c:46: error: parse error before '*' token
    #os_xml.c: In function `_xml_fgetc':
    #os_xml.c:49: warning: implicit declaration of function `fgetc'
    #os_xml.c:49: error: `fp' undeclared (first use in this function)
    #os_xml.c:49: error: (Each undeclared identifier is reported only once
    #os_xml.c:49: error: for each function it appears in.)
    #os_xml.c: In function `xml_error':
    #os_xml.c:78: warning: implicit declaration of 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: In function `OS_ReadXML':
    #os_xml.c:120: error: `FILE' undeclared (first use in this function)
    #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:148: warning: implicit declaration of function `fclose'
    #os_xml.c: At top level:
    #os_xml.c:168: error: parse error before '*' token
    #os_xml.c: In function `_oscomment':
    #os_xml.c:171: error: `fp' undeclared (first use in this function)
    #os_xml.c:173: error: `EOF' undeclared (first use in this function)
    #os_xml.c:179: warning: implicit declaration of function `ungetc'
    #os_xml.c: At top level:
    #os_xml.c:202: error: parse error before '*' token
    #os_xml.c: In function `_ReadElem':
    #os_xml.c:218: error: `fp' undeclared (first use in this function)
    #os_xml.c:218: error: `EOF' undeclared (first use in this function)
    #os_xml.c:223: error: `_lxml' undeclared (first use in this function)
    #os_xml.c:272: error: `parent' undeclared (first use in this function)
    #os_xml.c:306: warning: implicit declaration of function `strcmp'
    #os_xml.c:311: warning: implicit declaration of function `strlen'
    #os_xml.c:335: error: `position' undeclared (first use in this function)
    #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:365: warning: implicit declaration of 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: At top level:
    #os_xml.c:431: error: parse error before '*' token
    #os_xml.c: In function `_getattributes':
    #os_xml.c:444: error: `fp' undeclared (first use in this function)
    #os_xml.c:444: error: `EOF' undeclared (first use in this function)
    #os_xml.c:449: error: `_lxml' undeclared (first use in this function)
    #os_xml.c:511: error: `parent' undeclared (first use in this function)
    #os_xml.c: At top level:
    #../headers/file-queue.h:29: error: storage size of `f_status' isn't known
    #os_xml_access.c:17:19: stdio.h: Arquivo ou diretório não encontrado
    #os_xml_access.c:18:20: string.h: Arquivo ou diretório não encontrado#
    #os_xml_access.c:19:20: stdlib.h: Arquivo ou diretório não encontrado
    #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:132: warning: implicit declaration of 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:140: warning: implicit declaration of function `free'
    #os_xml_access.c:143: warning: implicit declaration of function `strncpy'
    #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: In function `OS_GetElementContent':
    #os_xml_access.c:230: error: `NULL' undeclared (first use in this function)
    #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: In function `OS_GetAttributeContent':
    #os_xml_access.c:257: error: `NULL' undeclared (first use in this function)
    #os_xml_access.c: In function `_GetElementContent':
    #os_xml_access.c:298: error: `NULL' undeclared (first use in this function)
    #os_xml_node_access.c:17:19: stdio.h: Arquivo ou diretório não encontrado
    #os_xml_node_access.c:18:20: string.h: Arquivo ou diretório não encontrado
    #os_xml_node_access.c:19:20: stdlib.h: Arquivo ou diretório não encontrado
    #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:116: warning: implicit declaration of function `strdup'
    #os_xml_node_access.c:116: warning: assignment makes pointer from integer without a cast
    #os_xml_node_access.c:126: warning: assignment makes pointer from integer without a cast
    #os_xml_node_access.c:148: warning: assignment makes pointer from integer without a cast
    #os_xml_node_access.c:149: warning: assignment makes pointer from integer without a cast
    #os_xml_variables.c:17:19: stdio.h: Arquivo ou diretório não encontrado
    #os_xml_variables.c:18:20: string.h: Arquivo ou diretório não encontrado
    #os_xml_variables.c:19:20: stdlib.h: Arquivo ou diretório não encontrado
    #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:41: warning: implicit declaration of function `strcasecmp'
    #os_xml_variables.c:47: warning: implicit declaration of function `snprintf'
    #os_xml_variables.c:49: warning: implicit declaration of function `realloc'
    #os_xml_variables.c:53: warning: implicit declaration of function `calloc'
    #os_xml_variables.c:53: warning: implicit declaration of function `strlen'
    #os_xml_variables.c:58: warning: implicit declaration of function `strcpy'
    #os_xml_variables.c:120: warning: implicit declaration of function `strdup'
    #os_xml_variables.c:120: warning: assignment makes pointer from integer without a cast
    #os_xml_variables.c:135: warning: implicit declaration of function `memset'
    #os_xml_variables.c:172: warning: implicit declaration of function `strncat'
    #os_xml_variables.c:209: warning: implicit declaration of function `free'
    #make[1]: ** [xml] Erro 1
    #make[1]: Leaving directory `/root/ossec-hids-0.8/src/os_xml'

    #Error Making os_xml
    #make: ** [all] Erro 1
    #0x0000 - Internal error for 0x5-build

  2. #2
    sinistrow
    Visitante

    Padrão Re: Ossec Hids

    Parece que voce nao tem as bibliotecas C instaladas.
    Qual distribuicao voce esta usando?

    Qual o resultado do seguinte comando?

    ln -la /usr/include/sys/*

    Nunca tinha visto esse erro antes...

  3. #3

    Padrão Re: Ossec Hids

    Eu uso o CL 10
    No comando q vc passou ali, vc quis dizer ls -la /usr/include/sys/*...né ??
    quando digito ls -la /usr/include/sys/* dá o erro:
    #ls: /usr/include/sys/*: Arquivo ou diretório não encontrado

    minha bibliotecas C talvez realmente nao estejam instaladas.... vc sabe quais sao ??



  4. #4
    sinistrow
    Visitante

    Padrão Re: Ossec Hids

    Eu nao uso conectiva 10, entao nao posso afirmar corretamente. Procure
    por algum pacote chamado glibc ou algo parecido... Talvez alguem aqui
    que use conective possa ajudar...

    abracos,

    Daniel