The user of the MacBook tells me Xcode dev env is installed. Which SDKs are required? Can you tell me what echo $PATH etc. returns at a MacBook where the compilation happens without errors?
On Dec 17, 10:18 pm, "Chuck (MdMonk)" <[email protected]> wrote: > Doesn't look like you have all of the Xcode dev environment installed. Is > the SDK(s) installed? > > -Chuck > > On Thu, Dec 17, 2009 at 12:49 PM, oscar schneider > <[email protected]>wrote: > > > Hi, > > > today I was asked to install an OSSEC agent on a MacBook with MacOS X, > > however it didn't go too well and after answering all questions the > > install.sh script asks I got the following error msgs. > > > cc -c -g -Wall -I../../ -I../../headers -DDEFAULTDIR=\"/var/lib/ > > ossec > > \" -DCLIENT -DDarwin -DHIGHFIRST -DARGV0=\"zlib\" -DXML_VAR=\"var > > \" -DOSSECHIDS *.c > > In file included from crc32.c:29: > > zutil.h:23:22: error: string.h: No such file or directory > > zutil.h:24:22: error: stdlib.h: No such file or directory > > zutil.h:38:23: error: errno.h: No such file or directory > > In file included from crc32.c:36: > > /Developer/usr/bin/../lib/gcc/i686-apple-darwin9/4.0.1/include/ > > deflate.c: In function ‘deflateSetDictionary’: > > deflate.c:339: warning: implicit declaration of function ‘memcpy’ > > deflate.c:339: warning: incompatible implicit declaration of built- > > in > > function ‘memcpy’ > > deflate.c: In function ‘flush_pending’: > > deflate.c:540: warning: incompatible implicit declaration of built- > > in > > function ‘memcpy’ > > deflate.c: In function ‘deflate’: > > deflate.c:817: warning: implicit declaration of function ‘memset’ > > deflate.c:817: warning: incompatible implicit declaration of built- > > in > > function ‘memset’ > > deflate.c: In function ‘deflateCopy’: > > deflate.c:912: warning: incompatible implicit declaration of built- > > in > > function ‘memcpy’ > > deflate.c: In function ‘read_buf’: > > deflate.c:976: warning: incompatible implicit declaration of built- > > in > > function ‘memcpy’ > > deflate.c: In function ‘lm_init’: > > deflate.c:991: warning: incompatible implicit declaration of built- > > in > > function ‘memset’ > > deflate.c: In function ‘fill_window’: > > deflate.c:1295: warning: incompatible implicit declaration of built- > > in > > function ‘memcpy’ > > gzio.c:10:19: error: stdio.h: No such file or directory > > In file included from gzio.c:12: > > zutil.h:23:22: error: string.h: No such file or directory > > zutil.h:24:22: error: stdlib.h: No such file or directory > > zutil.h:38:23: error: errno.h: No such file or directory > > gzio.c:60: error: syntax error before ‘FILE’ > > gzio.c:60: warning: no semicolon at end of struct or union > > > Then many more errors from gzio.c. After that: > > > *** Making os_xml *** > > > gcc -DXML_VAR=\"var\" -g -Wall -I../ -I../headers -DDEFAULTDIR=\"/ > > var/ > > lib/ossec\" -DCLIENT -DDarwin -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 os_xml.c:17: > > ../headers/shared.h:46:23: error: sys/types.h: No such file or > > directory > > ../headers/shared.h:47:22: error: sys/stat.h: No such file or > > directory > > ../headers/shared.h:48:22: error: sys/time.h: No such file or > > directory > > ../headers/shared.h:49:23: error: sys/param.h: No such file or > > directory > > ../headers/shared.h:54:22: error: sys/wait.h: No such file or > > directory > > > Then more errors from os_xml_variable.c and os_xml_writer.c, then > > > make[1]: *** [xml] Error 1 > > > Error Making os_xml > > make: *** [all] Error 1 > > > Error 0x5. > > Building error. Unable to finish the installation. > > > What are the prerequisites for an OSSEC compile, what stuff needs to > > be in the environment variables, what headers/libs need to be > > installed? The compiler used was /Developer/usr/bin/(maybe some more > > subdirs)/gcc > > > Kind regards, > > > oscar
