<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#99ffff" text="#000000">
<font face="Courier New, Courier, monospace">Still don't work. Theres a
guy on the nagios list that is having the exact same problem.<br>
<br>
</font>Hey folks..
<br>
<br>
Anyone have successfully compiled Nagios and the plugins for AIX 5.x ?
<br>
<br>
I tried the ./configure and works perfectly with no error and tried to
compile, but got this error:
<br>
<br>
# make all
<br>
cd ./base && make
<br>
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c broker.c
<br>
In file included from ../include/config.h:220,
<br>
from broker.c:26:
<br>
/usr/include/pthread.h:652: error: parse error before '*' token
<br>
/usr/include/pthread.h:655: error: parse error before '*' token
<br>
/usr/include/pthread.h:658: error: parse error before '*' token
<br>
/usr/include/pthread.h:661: error: parse error before '*' token
<br>
/usr/include/pthread.h:664: error: parse error before '*' token
<br>
/usr/include/pthread.h:672: error: parse error before '*' token
<br>
/usr/include/pthread.h:675: error: parse error before '*' token
<br>
/usr/include/pthread.h:678: error: parse error before '*' token
<br>
/usr/include/pthread.h:681: error: parse error before '*' token
<br>
/usr/include/pthread.h:689: error: parse error before '*' token
<br>
/usr/include/pthread.h:693: error: parse error before '*' token
<br>
/usr/include/pthread.h:696: error: parse error before '*' token
<br>
make: 1254-004 The error code from the last command is 1.
<br>
<br>
<br>
Stop.
<br>
make: 1254-004 The error code from the last command is 2.
<br>
<br>
<br>
Stop.
<br>
<br>
<br>
Thanks
<br>
<br>
Sébastien Roy
<br>
<font face="Courier New, Courier, monospace"><br>
<br>
<br>
I installed gcc, gcc++ libgcc libstdc libstdc-devel and the pth rpms
with no problems.<br>
I even rebooted the partition.<br>
<br>
Here's what happens when I try to run make all:<br>
<br>
root@f2sys1<br>
(1719)[/usr/local/sbin/nagios-2.0b3]# make all <br>
cd ./base && make<br>
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c broker.c<br>
In file included from ../include/config.h:220,<br>
from broker.c:26:<br>
/usr/include/pthread.h:652: error: parse error before '*' token<br>
<br>
<br>
</font>Weird thing now is that the failure is happening on line 652 and
before I installed all these rpms it was happening on 582!?!?!?!?<br>
<font face="Courier New, Courier, monospace"><br>
root@f2sys1<br>
(1721)[/usr/local/sbin/nagios-2.0b3]# lslpp -L | grep gcc<br>
gcc 3.3.2-5 C R GNU Compiler
Collection<br>
gcc-c++ 3.3.2-5 C R C++ support for GCC
(/bin/rpm)<br>
libgcc 3.3.2-5 C R GCC compiler dynamic
runtime<br>
root@f2sys1<br>
(1722)[/usr/local/sbin/nagios-2.0b3]# lslpp -L | grep stdc<br>
libstdc++ 3.3.2-5 C R G++ compiler dynamic
runtime<br>
libstdc++-devel 3.3.2-5 C R Include files and
libraries<br>
root@f2sys1<br>
(1736)[/usr/local/sbin/nagios-2.0b3]# lslpp -L |grep pth<br>
bos.rte.libpthreads 5.3.0.20 C F libpthreads Library<br>
pth 1.4.0-2 C R GNU Pth - GNU
Portable<br>
pth-devel 1.4.0-2 C R GNU Pth - GNU
Portable Threads<br>
<br>
</font><br>
I did indeed use LIBS=-lpthread ./configure (but I have no idea what
the first of the command does).<br>
<br>
<br>
<br>
o.decorse via ibm-aix-l wrote:
<blockquote
cite="midLYRIS-6012778-19795370-2005.06.23-12.57.04--kklein9%23uky.edu@groups.ittoolbox.com"
type="cite">
<pre wrap="">
for the "/usr/include/pthread.h:582: error: parse error before '*' token-l" error message, you need to install :
- pth-1.4.0-2.aix4.3.ppc.rpm,
- pth-devel.rpm,
and certainly use :
LIBS=-lpthread ./configure
make
Olivier.
-----Message d'origine-----
De : Kenneth Klein via ibm-aix-l [<a class="moz-txt-link-freetext" href="mailto:ibm-aix-l@Groups.ITtoolbox.com">mailto:ibm-aix-l@Groups.ITtoolbox.com</a>]
Envoyé : jeudi 23 juin 2005 15:55
À : DECORSE Olivier
Objet : [ibm-aix-l] Re: Does gcc and glibc work on AIX 5.3?
# Compare Secure Remote Access Options: IPSec VPNs vs. SSL VPNs.
# Aventail white paper: <a class="moz-txt-link-freetext" href="http://www.ITtoolbox.com/i/rd.asp?i=10533">http://www.ITtoolbox.com/i/rd.asp?i=10533</a>
# View Group Archive: <a class="moz-txt-link-freetext" href="http://ITtoolbox.com/hrd.asp?i=803">http://ITtoolbox.com/hrd.asp?i=803</a>
What does this mean? :
using gcc with the vendor C
library.
AIX seems to have the "include" library, but I cannot find cc anywhere.
Trouble is, I get these errors when I try to "make all" of nagios:
]# make all
cd ./base && make
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c broker.c
In file included from ../include/config.h:220,
from broker.c:26:
/usr/include/pthread.h:582: error: parse error before '*' token-l
Dan Stromberg via ibm-aix-l wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On Wed, 2005-06-22 at 16:03 -0400, Kenneth Klein via ibm-aix-l wrote:
</pre>
<blockquote type="cite">
<pre wrap=""># SAS: The Path to Maximum SATA Scalability
# Free white paper: <a class="moz-txt-link-freetext" href="http://www.ITtoolbox.com/i/rd.asp?i=10594">http://www.ITtoolbox.com/i/rd.asp?i=10594</a>
# View Group Archive: <a class="moz-txt-link-freetext" href="http://ITtoolbox.com/hrd.asp?i=803">http://ITtoolbox.com/hrd.asp?i=803</a>
Has anyone installed and used gnu gcc and gnu glibc on AIX??
</pre>
</blockquote>
<pre wrap="">In most (nonlinux) cases, you're better off using gcc with the vendor C
library.
Also, gcc 3.4.x appears to tickle a bug in some versions of the AIX
linker, which leads to an infinite loop. gcc 3.3.x seems an easy build
though. I haven't tried gcc 4.0.x on AIX yet.
</pre>
</blockquote>
</blockquote>
<br>
</body>
</html>