[ibm-aix-l] Re: Does gcc and glibc work on AIX 5.3? <-- and installing nagios with gcc??
Andreas Ericsson
ae at op5.se
Sun Jun 26 13:33:36 CEST 2005
This is a problem with your system's header-files. For some reason, the
types required for pthread.h to compile cleanly aren't included, so you
get a parse error because the compiler doesn't know the size of the type
referenced.
In short; It's not a nagios issue, but rather one derived from the AIX C
libraries header-files.
Kenneth Klein wrote:
> Still don't work. Theres a guy on the nagios list that is having the
> exact same problem.
>
> Hey folks..
>
> Anyone have successfully compiled Nagios and the plugins for AIX 5.x ?
>
> I tried the ./configure and works perfectly with no error and tried to
> compile, but got this error:
>
> # 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: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.
> make: 1254-004 The error code from the last command is 2.
>
>
> Stop.
>
>
> Thanks
>
> Sébastien Roy
>
>
>
> I installed gcc, gcc++ libgcc libstdc libstdc-devel and the pth rpms
> with no problems.
> I even rebooted the partition.
>
> Here's what happens when I try to run make all:
>
> root at f2sys1
> (1719)[/usr/local/sbin/nagios-2.0b3]# 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:652: error: parse error before '*' token
>
>
> Weird thing now is that the failure is happening on line 652 and before
> I installed all these rpms it was happening on 582!?!?!?!?
>
> root at f2sys1
> (1721)[/usr/local/sbin/nagios-2.0b3]# lslpp -L | grep gcc
> gcc 3.3.2-5 C R GNU Compiler Collection
> gcc-c++ 3.3.2-5 C R C++ support for GCC
> (/bin/rpm)
> libgcc 3.3.2-5 C R GCC compiler dynamic
> runtime
> root at f2sys1
> (1722)[/usr/local/sbin/nagios-2.0b3]# lslpp -L | grep stdc
> libstdc++ 3.3.2-5 C R G++ compiler dynamic
> runtime
> libstdc++-devel 3.3.2-5 C R Include files and
> libraries
> root at f2sys1
> (1736)[/usr/local/sbin/nagios-2.0b3]# lslpp -L |grep pth
> bos.rte.libpthreads 5.3.0.20 C F libpthreads Library
> pth 1.4.0-2 C R GNU Pth - GNU Portable
> pth-devel 1.4.0-2 C R GNU Pth - GNU Portable
> Threads
>
>
> I did indeed use LIBS=-lpthread ./configure (but I have no idea what the
> first of the command does).
>
>
>
> o.decorse via ibm-aix-l wrote:
>
>>
>>
>> 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 [mailto:ibm-aix-l at Groups.ITtoolbox.com]
>> 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: http://www.ITtoolbox.com/i/rd.asp?i=10533
>>
>> # View Group Archive: http://ITtoolbox.com/hrd.asp?i=803
>>
>> 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:
>>
>>
>>> On Wed, 2005-06-22 at 16:03 -0400, Kenneth Klein via ibm-aix-l wrote:
>>>
>>>
>>>> # SAS: The Path to Maximum SATA Scalability
>>>> # Free white paper: http://www.ITtoolbox.com/i/rd.asp?i=10594
>>>>
>>>> # View Group Archive: http://ITtoolbox.com/hrd.asp?i=803
>>>>
>>>> Has anyone installed and used gnu gcc and gnu glibc on AIX??
>>>>
>>>>
>>>>
>>>
>>> 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.
>>>
>>>
>
>
>
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Lead Developer
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list