Hi,

I have no clue what is going on. I searched for this error and it
seems a bug caused in gcc that can't
compile some AIX headers. The suggestion was to use the "xlc" compiler
instead of gcc.

Btw, what version of AIX and gcc are you using? I never had this
problem with AIX 5.2 and 5.3..

Thanks,

--
Daniel B. Cid
dcid ( at ) ossec.net

On Thu, Oct 8, 2009 at 2:53 AM, Gags <[email protected]> wrote:
>
> Hi
>
> I am trying to compile ossec 2.0 on AIX box but it fails during the
> compilation. The error received is as follow. Previously I have
> deployed on many AIX boxes but haven't face this problem before. I
> have tried with other version also but the same problem lies
>
> Can any one pls help out
>
> Thanks & Regards
> Gagan
>
>  *** Making os_xml ***
>
>        gcc -DXML_VAR=\"var\" -g -Wall -I../ -I../headers  -
> DDEFAULTDIR=\"/var/ossec\" -DCLIENT  -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 os_xml_writer.c
> In file included from ../headers/shared.h:64,
>                 from os_xml.c:17:
> /usr/include/unistd.h:923: error: expected ')' before '[' token
> /usr/include/unistd.h:924: error: expected declaration specifiers or
> '...' before 'rid_t'
> In file included from ../headers/shared.h:64,
>                 from os_xml_writer.c:18:
> /usr/include/unistd.h:923: error: expected ')' before '[' token
> /usr/include/unistd.h:924: error: expected declaration specifiers or
> '...' before 'rid_t'
> make: 1254-004 The error code from the last command is 1.
>
>
> 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.
>

Reply via email to