[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ossec-list] 0.6-1 and Mac OS X



Hi,

When I try to build ossec hids (local) on Mac OS X, I get:

gcc -DXML_VAR=\"var\" -Wall -I../ -I../headers  -DLOCAL -DUSE_OPENSSL
-DDarwin -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:80: error: conflicting types for 'socklen_t'
/usr/include/sys/socket.h:99: error: previous declaration of
'socklen_t' was here
make[1]: *** [xml] Error 1

  Well, that one is easily corrected by commenting out the line #80 in
src/headers/shared.h. But then I get another one:

Making rootcheck
gcc -Wall -I../ -I../headers  -DLOCAL -DUSE_OPENSSL -DDarwin
-DARGV0=\"ossec-rootcheck\" -DXML_VAR=\"var\" -DOSSECHIDS -c *.c
-D_GNU_SOURCE
os_string.c:56:22: error: sys/exec.h: No such file or directory
os_string.c:128: error: invalid application of 'sizeof' to incomplete
type 'EXEC'
os_string.c: In function 'os_string':
os_string.c:188: error: invalid application of 'sizeof' to incomplete
type 'EXEC'
os_string.c:193: error: invalid application of 'sizeof' to incomplete
type 'EXEC'
os_string.c:193: error: dereferencing pointer to incomplete type
os_string.c:193: error: 'OMAGIC' undeclared (first use in this function)
os_string.c:193: error: (Each undeclared identifier is reported only once
os_string.c:193: error: for each function it appears in.)
os_string.c:193: error: dereferencing pointer to incomplete type
os_string.c:193: error: 'NMAGIC' undeclared (first use in this function)
os_string.c:193: error: dereferencing pointer to incomplete type
os_string.c:193: error: 'ZMAGIC' undeclared (first use in this function)
os_string.c:195: error: dereferencing pointer to incomplete type
os_string.c:195: error: 'M_OLDSUN2' undeclared (first use in this function)
os_string.c:195: error: dereferencing pointer to incomplete type
os_string.c:195: error: dereferencing pointer to incomplete type
os_string.c:195: error: invalid application of 'sizeof' to incomplete
type 'struct exec'
os_string.c:195: error: dereferencing pointer to incomplete type
os_string.c:195: error: invalid application of 'sizeof' to incomplete
type 'struct exec'
os_string.c:205: error: dereferencing pointer to incomplete type
os_string.c:205: error: dereferencing pointer to incomplete type
make[1]: *** [rootcheck] Error 1

  Any ideas how to correct this?

--
http://nk99.org/


OSSEC home | Main Index | Thread Index


OSSEC project: www.ossec.net.
Mailling list information: http://www.ossec.net/en/mailing_lists.html.