I see an issue between GCC and AIX that is breaking the compilation. See
this link
http://unix.derkeiler.com/Mailing-Lists/AIX-L/2005-06/0175.html for an
explanation. the resolution proposed there is to install GCC from
source. 

Hope this Helps

Rick

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED]
On Behalf Of Gagan bhatia
Sent: Monday, November 19, 2007 8:23 AM
To: [EMAIL PROTECTED]
Subject: [ossec-list] AIX agent installation Problem
Importance: Low

 

Dear Mailing list

 

I am trying to install the HIDS agent on test server of AIX 5.2 with
gcc. The problem faced was that the agent installtion was not
successful. The agent installation was with held in between generating
errors & warning. 

 

Prior to this I have tried agent deployment on Fedora Core 6 which
resulted in perfect installation and eventing. 

 

The installation prompts are pasted below

 

Any one have any idea regarding the particular problem. Looking forward
for your kind help

 

Thanks & Regards

Gags

 

 

5- Installing the system
 - Running the Makefile

 *** Making zlib (by Jean-loup Gailly and Mark Adler)  ***
        gcc -c -g -Wall -I../../ -I../../headers
-DDEFAULTDIR=\"/tmp/sriram\"  -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=\"/tmp/sriram\"  -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 
        ar cru os_xml.a os_xml.o os_xml_access.o os_xml_node_access.o
os_xml_variables.o os_xml_writer.o
        ranlib os_xml.a


 *** Making os_regex ***

        gcc -g -Wall -I../ -I../headers  -DDEFAULTDIR=\"/tmp/sriram\"
-DAIX -DHIGHFIRST   -DARGV0=\"os_regex\" -DXML_VAR=\"var\" -DOSSECHIDS
-c *.c -Wall
In file included from os_match_compile.c:19: 
os_regex_internal.h:38: warning: redefinition of `uchar'
/opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2/include/sys/types
.h:485: warning: `uchar' previously declared here
In file included from os_match_execute.c:18: 
os_regex_internal.h:38: warning: redefinition of `uchar'
/opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2/include/sys/types
.h:485: warning: `uchar' previously declared here
In file included from os_match_free_pattern.c:18: 
os_regex_internal.h:38: warning: redefinition of `uchar'
/opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2/include/sys/types
.h:485: warning: `uchar' previously declared here
In file included from os_regex_compile.c:19: 
os_regex_internal.h:38: warning: redefinition of `uchar'
/opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2/include/sys/types
.h:485: warning: `uchar' previously declared here
In file included from os_regex_execute.c:18: 
os_regex_internal.h:38: warning: redefinition of `uchar'
/opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2/include/sys/types
.h:485: warning: `uchar' previously declared here
In file included from os_regex_free_pattern.c:18: 
os_regex_internal.h:38: warning: redefinition of `uchar'
/opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2/include/sys/types
.h:485: warning: `uchar' previously declared here
In file included from os_regex_free_substrings.c:18: 
os_regex_internal.h:38: warning: redefinition of `uchar'
/opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2/include/sys/types
.h:485: warning: `uchar' previously declared here
In file included from os_regex_match.c:17: 
os_regex_internal.h:38: warning: redefinition of `uchar'
/opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2/include/sys/types
.h:485: warning: `uchar' previously declared here
In file included from os_regex_str.c:16: 
os_regex_internal.h:38: warning: redefinition of `uchar'
/opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2/include/sys/types
.h:485: warning: `uchar' previously declared here
In file included from os_regex_strbreak.c:16: 
os_regex_internal.h:38: warning: redefinition of `uchar'
/opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2/include/sys/types
.h:485: warning: `uchar' previously declared here
        ar cru os_regex.a *.o 
        ranlib os_regex.a


 *** Making os_net ***

        gcc -g -Wall -I../ -I../headers  -DDEFAULTDIR=\"/tmp/sriram\"
-DAIX -DHIGHFIRST   -DARGV0=\"os_net\" -DXML_VAR=\"var\" -DOSSECHIDS -c
os_net.c
        ar cru os_net.a os_net.o 
        ranlib os_net.a


 *** Making os_crypto ***

        gcc -g -Wall -I../../ -I../../headers
-DDEFAULTDIR=\"/tmp/sriram\"  -DAIX -DHIGHFIRST
-DARGV0=\"blowfish_op\" -DXML_VAR=\"var\" -DOSSECHIDS -c bf_op.c
bf_skey.c bf_enc.c 
bf_op.c:28: warning: redefinition of `uchar'
/opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2/include/sys/types
.h:485: warning: `uchar' previously declared here
        ar cru bf_op.a bf_op.o bf_skey.o bf_enc.o 
        ranlib bf_op.a
        gcc -g -Wall -I../../ -I../../headers
-DDEFAULTDIR=\"/tmp/sriram\"  -DAIX -DHIGHFIRST   -DARGV0=\"md5_op\"
-DXML_VAR=\"var\" -DOSSECHIDS -c md5.c md5_op.c 
        ar cru md5_op.a md5_op.o md5.o
        ranlib md5_op.a
        gcc -g -Wall -I../../ -I../../headers
-DDEFAULTDIR=\"/tmp/sriram\"  -DAIX -DHIGHFIRST   -DARGV0=\"sha1_op\"
-DXML_VAR=\"var\" -DOSSECHIDS -c sha1_op.c 
        ar cru sha1_op.a sha1_op.o
        ranlib sha1_op.a
        gcc -g -Wall -I../../ -I../../headers
-DDEFAULTDIR=\"/tmp/sriram\"  -DAIX -DHIGHFIRST
-DARGV0=\"md5_sha1_op\" -DXML_VAR=\"var\" -DOSSECHIDS -c ../md5/md5.c
md5_sha1_op.c 
        ar cru md5_op.a md5_sha1_op.o ../md5/md5.o
        ranlib md5_op.a
        gcc -g -Wall -I../../ -I../../headers
-DDEFAULTDIR=\"/tmp/sriram\"  -DAIX -DHIGHFIRST   -DARGV0=\"shared\"
-DXML_VAR=\"var\" -DOSSECHIDS -c *.c 
        ar cru shared.a *.o
        ranlib shared.a
        ar cru os_crypto.a blowfish/bf_op.o blowfish/bf_skey.o
blowfish/bf_enc.o md5/md5_op.o md5/md5.o sha1/sha1_op.o
md5_sha1/md5_sha1_op.o shared/*.o
        ranlib os_crypto.a 


 *** Making shared ***

        gcc -c -g -Wall -I../ -I../headers  -DDEFAULTDIR=\"/tmp/sriram\"
-DAIX -DHIGHFIRST   -DARGV0=\"shared-libs\" -DXML_VAR=\"var\"
-DOSSECHIDS *.c
In file included from pthreads_op.c:15: 
/usr/include/pthread.h:652: error: parse error before '*' token
/usr/include/pthread.h:655: error: parse error before '*' token
/usr/include/pthread.h:658: error: parse error before '*' token 
/usr/include/pthread.h:661: error: parse error before '*' token
/usr/include/pthread.h:664: error: parse error before '*' token
/usr/include/pthread.h:672: error: parse error before '*' token 
/usr/include/pthread.h:675: error: parse error before '*' token
/usr/include/pthread.h:678: error: parse error before '*' token
/usr/include/pthread.h:681: error: parse error before '*' token 
/usr/include/pthread.h:689: error: parse error before '*' token
/usr/include/pthread.h:693: error: parse error before '*' token
/usr/include/pthread.h:696: error: parse error before '*' token 
make: 1254-004 The error code from the last command is 1.


Stop.

Error Making shared
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