In dcid/ossec-hids/src/headers/defs.h, the __version  macro has been 
changed from "v.2.6" to the following:
#define __version   "v2012-08"

Take a look at your defs.h to see if there are multiple lines of 
#define __version.

On Tuesday, August 14, 2012 7:07:13 AM UTC-7, Peter M Abraham wrote:
>
> Good day:
>
> I pulled the updates from https://bitbucket.org/dcid/ossec-hids and tried 
> to do a recompile via ./install.sh and y for update and y for rules.
>
> Here is the error I receive:
>
>     - Installation will be made at  /var/ossec .
>
> 5- Installing the system
>  - Running the Makefile
> INFO: Little endian set.
>
>  *** Making zlib (by Jean-loup Gailly and Mark Adler)  *** 
> make[1]: Entering directory `/root/ossec-hids/src/external/zlib-1.2.3'
> gcc -c -g -Wall -I../../ -I../../headers  -DDEFAULTDIR=\"/var/ossec\" 
> -DUSE_OPENSSL -DUSEINOTIFY    -DARGV0=\"zlib\" -DXML_VAR=\"var\" 
> -DOSSECHIDS *.c
> ar cru libz.a *.o 
> ranlib libz.a
> make[1]: Leaving directory `/root/ossec-hids/src/external/zlib-1.2.3'
> make[1]: Entering directory `/root/ossec-hids/src/external/zlib-1.2.3'
> cp -pr zlib.h zconf.h ../../headers/
> cp -pr libz.a ../
> make[1]: Leaving directory `/root/ossec-hids/src/external/zlib-1.2.3'
>
>
>
>  *** Making os_xml *** 
>
> make[1]: Entering directory `/root/ossec-hids/src/os_xml'
> gcc -DXML_VAR=\"var\" -g -Wall -I../ -I../headers  
> -DDEFAULTDIR=\"/var/ossec\" -DUSE_OPENSSL -DUSEINOTIFY    
> -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 ../headers/shared.h:93,
>                  from os_xml.c:17:
> ../headers/defs.h:54: error: expected identifier or â(â before â<<â token
> In file included from ../headers/shared.h:93,
>                  from os_xml.c:17:
> ../headers/defs.h:58:1: warning: "__name" redefined
> ../headers/defs.h:55:1: warning: this is the location of the previous 
> definition
> ../headers/defs.h:59:1: warning: "__version" redefined
> ../headers/defs.h:56:1: warning: this is the location of the previous 
> definition
> In file included from ../headers/shared.h:93,
>                  from os_xml_writer.c:19:
> ../headers/defs.h:54: error: expected identifier or â(â before â<<â token
> In file included from ../headers/shared.h:93,
>                  from os_xml_writer.c:19:
> ../headers/defs.h:58:1: warning: "__name" redefined
> ../headers/defs.h:55:1: warning: this is the location of the previous 
> definition
> ../headers/defs.h:59:1: warning: "__version" redefined
> ../headers/defs.h:56:1: warning: this is the location of the previous 
> definition
> make[1]: *** [xml] Error 1
> make[1]: Leaving directory `/root/ossec-hids/src/os_xml'
>
> Error Making os_xml
> make: *** [all] Error 1
>
>  Error 0x5.
>  Building error. Unable to finish the installation.
>
>
>
> This is on a CentoS 5.8 64-bit machine.
>
> Please advise on how to fix.
>
> Thank you.
>
>

Reply via email to