Found a related link:
http://osdir.com/ml/ossec-list/2009-10/msg00041.html (thanks to Daniel
Cid).
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.
OSSEC was compiled fine with AIX 5.2 and 5.3..
On Friday, March 22, 2013 12:10:33 PM UTC-7, Rikk wrote:
If this has been addressed already, I must have missed it in my search. I
am having the following issue while trying to install the agent on aix 6.1:
5- Installing the system
- Running the Makefile
*** Making zlib (by Jean-loup Gailly and Mark Adler) ***
gcc -c -g -Wall -I../../ -I../../headers
-DDEFAULTDIR=\/var/ossec\ -DCLIENT -DUSE_OPENSSL -DAIX -DHIGHFIRST
-DARGV0=\zlib\ -DXML_VAR=\var\ -DOSSECHIDS *.c
ar cru libz.a *.o
ranlib libz.a
cp -pr zlib.h zconf.h ../../headers/
cp -pr libz.a ../
*** Making os_xml ***
gcc -DXML_VAR=\var\ -g -Wall -I../ -I../headers
-DDEFAULTDIR=\/var/ossec\ -DCLIENT -DUSE_OPENSSL -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:924: error: expected ')' before '[' token
/usr/include/unistd.h:925: 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:924: error: expected ')' before '[' token
/usr/include/unistd.h:925: error: expected declaration specifiers or '...'
before 'rid_t'
make: The error code from the last command is 1.
Stop.
Error Making os_xml
make: The error code from the last command is 1.
Stop.
Error 0x5.
Building error. Unable to finish the installation.
And here is the output from rpm -qa:
cdrecord-1.9-7
mkisofs-1.13-4
bzip2-1.0.5-1
expat-devel-2.0.1-2
flex-2.5.4a-6
pkg-config-0.23-1
glib-1.2.10-3
gcc-4.2.0-3
gcc-c++-4.2.0-3
gcc-java-4.2.0-3
gcc-locale-4.2.0-3
readline-6.0-2
libgcrypt-1.4.4-1
libjpeg-6b-6
libjpeg-devel-6b-6
libpng-1.2.32-2
libpng-devel-1.2.32-2
libstdc++-4.2.0-3
libstdc++-devel-4.2.0-3
libxml2-2.6.23-3
libxml2-devel-2.6.23-3
expat-2.0.1-2
freetype2-2.3.9-1
bash-3.0-1
python-docs-2.6.2-1
bash-doc-3.0-1
AIX-rpm-6.1.6.0-6
python-2.6.2-1
python-devel-2.6.2-1
python-tools-2.6.2-1
binutils-2.19.1-1
info-5.0-1
freetype2-devel-2.3.9-1
glib-devel-1.2.10-3
gettext-0.17-1
pcre-8.00-1
readline-devel-6.0-2
gmp-4.3.1-1
libgcc-4.2.4-1
libffi-3.0.11-2
libiconv-1.14-2
glib2-2.30.3-2
libgpg-error-1.7-1
libtasn1-2.2-1
lzo-2.03-1
gnutls-2.8.5-1
xorg-compat-aix-1.0-1
libXpm-3.5.8-1
libXpm-devel-3.5.8-1
zlib-1.2.3-6
zlib-devel-1.2.3-6
Thanks,
Rikk
--
---
You received this message because you are subscribed to the Google Groups
ossec-list group.
To unsubscribe from this group and stop receiving emails from it, send an email
to ossec-list+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.