Thanks Daniel.  I will continue the thread on the dev list.

On 9/19/06, Daniel Cid <[EMAIL PROTECTED]> wrote:
Hi Nick,

It looks like HP-UX doesn't like the uint32_t definition we use. I think that
if you go to src/os_crypto/md5/md5.h and do the following (just like we do
inside the ifdef SOLARIS):

typedef uint32_t u_int32_t;
typedef uint16_t u_int16_t;
typedef uint8_t u_int8_t;

It will work.

*I am cc'ing the ossec-dev, since this topic is more suitable to that list.

Thanks,

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



On 9/19/06, Nick Baronian <[EMAIL PROTECTED]> wrote:
>
> I am trying to install the agent on an HP-UX 11i box (32bit RISC) and
> having some issues.  Has anyone got OSSEC working on an HP-UX system?
>
> The first error I got was regarding select.h, I found out that the
> select function isn't available on my version of HP-UX but time.h will
> work instead (http://devrsrc1.external.hp.com/STKT/impacts/i338.html).
> So I removed the select.h statement in src/headers/shared.h, time.h was
> already being called.
>
> After that I was able to get past the error but now I am stopped at
> os_crypto.  I have MD5 checksum and lib crypto installed on the box but
> I still can't get past the error below.  Does anyone have any clue how
> I get past this and what it means?
>
>  *** Making os_crypto ***
>
>         gcc -Wall -I../../ -I../../headers  -DDEFAULTDIR=\"/var/ossec\"
> -DCLIENT   -DARGV0=\"blowfish_op\" -DXML_VAR=\"var\" -DOSSECHIDS -c
> bf_op.c bf_skey.c bf_enc.c
>         ar cru bf_op.a bf_op.o bf_skey.o bf_enc.o
>         ranlib bf_op.a
>         gcc -Wall -I../../ -I../../headers  -DDEFAULTDIR=\"/var/ossec\"
> -DCLIENT   -DARGV0=\"md5_op\" -DXML_VAR=\"var\" -DOSSECHIDS -c md5.c
> md5_op.c
> In file included from md5.c:19:
> md5.h:33: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'uint32'
> md5.h:36: error: expected specifier-qualifier-list before 'uint32'
> md5.h:45: error: expected ')' before 'buf'
> md5.c: In function 'MD5Init':
> md5.c:49: error: 'struct MD5Context' has no member named 'buf'
> md5.c:50: error: 'struct MD5Context' has no member named 'buf'
> md5.c:51: error: 'struct MD5Context' has no member named 'buf'
> md5.c:52: error: 'struct MD5Context' has no member named 'buf'
> md5.c:54: error: 'struct MD5Context' has no member named 'bits'
> md5.c:55: error: 'struct MD5Context' has no member named 'bits'
> md5.c: In function 'MD5Update':
> md5.c:64: error: 'uint32' undeclared (first use in this function)
> md5.c:64: error: (Each undeclared identifier is reported only once
> md5.c:64: error: for each function it appears in.)
> md5.c:64: error: expected ';' before 't'
> md5.c:68: error: 't' undeclared (first use in this function)
> md5.c:68: error: 'struct MD5Context' has no member named 'bits'
> md5.c:69: error: 'struct MD5Context' has no member named 'bits'
> md5.c:69: error: expected ')' before 'len'
> md5.c:70: error: 'struct MD5Context' has no member named 'bits'
> md5.c:71: error: 'struct MD5Context' has no member named 'bits'
> md5.c:78: error: 'struct MD5Context' has no member named 'in'
> md5.c:87: warning: implicit declaration of function 'MD5Transform'
> md5.c:87: error: 'struct MD5Context' has no member named 'buf'
> md5.c:87: error: expected expression before ')' token
> md5.c:94: error: 'struct MD5Context' has no member named 'in'
> md5.c:96: error: 'struct MD5Context' has no member named 'buf'
> md5.c:96: error: expected expression before ')' token
> md5.c:103: error: 'struct MD5Context' has no member named 'in'
> md5.c: In function 'MD5Final':
> md5.c:116: error: 'struct MD5Context' has no member named 'bits'
> md5.c:120: error: 'struct MD5Context' has no member named 'in'
> md5.c:131: error: 'struct MD5Context' has no member named 'buf'
> md5.c:131: error: 'uint32' undeclared (first use in this function)
> md5.c:131: error: expected expression before ')' token
> md5.c:134: error: 'struct MD5Context' has no member named 'in'
> md5.c:142: error: expected expression before ')' token
> md5.c:142: error: 'struct MD5Context' has no member named 'bits'
> md5.c:143: error: expected expression before ')' token
> md5.c:143: error: 'struct MD5Context' has no member named 'bits'
> md5.c:145: error: 'struct MD5Context' has no member named 'buf'
> md5.c:145: error: expected expression before ')' token
> md5.c:147: error: 'struct MD5Context' has no member named 'buf'
> md5.c: At top level:
> md5.c:170: error: expected ')' before 'buf'
> In file included from md5_op.c:24:
> md5.h:33: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'uint32'
> md5.h:36: error: expected specifier-qualifier-list before 'uint32'
> md5.h:45: error: expected ')' before 'buf'
> *** Error exit code 1
>
> Stop.
> *** Error exit code 1
>
> Stop.
>
> Error Making os_crypto
> *** Error exit code 1
>
> Stop.
> #
>
> Thanks,
> Nick
>
>

Reply via email to