[Nagiosplug-devel] aix 5.2 compilation of nagios-plugin fails

Trevor Warren trevorwarren at gmail.com
Wed Nov 10 18:50:01 CET 2004


Hiyee there,

  Your post is as below, i have demarcated the same with ####.  But
what you have faced  is significantly different from the issue i have
encountered while trying to compile the Nagios plugins on AIX 5.2

  The issue i have encountered on all my AIX 5.2 32/64 bit boxes are ...
"        gcc  -g -O2 -maix32   -L. -o check_disk  check_disk.o utils.o
 ../lib/libnagiosplug.a popen.o ../intl/libintl.a -liconv
 ld: 0711-317 ERROR: Undefined symbol: ..libintl_bindtextdomain
 ld: 0711-317 ERROR: Undefined symbol: ..libintl_textdomain
 ld: 0711-317 ERROR: Undefined symbol: ..libintl_gettext
 ld: 0711-317 ERROR: Undefined symbol: .VA_COPY
 ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
 information.
 collect2: ld returned 8 exit status
 make: 1254-004 The error code from the last command is 1."


#####################
#Voon Ton in his mail in Sep17 2003 said.....
#####################
 Sorry to post a reply to my own email, but I"ve finally got it working.
 Turns out we weren"t using lib/Makefile.am quite how I was expecting it to
 be used.
 
 All standard plugins now compile on AIX (5.1) in CVS.
 
 Ton
 
 > -----Original Message-----
 > From: Voon, Ton [mailto:Ton.Voon at eg...] 
 > Sent: Wednesday, September 17, 2003 1:00 PM
 > To: NagiosPlug Devel
 > Subject: [Nagiosplug-devel] AIX support
 > 
 > 
 > I"ve been working on the plugins so that check_procs and 
 > check_swap work in
 > AIX (tested on AIX 5.1). However, I"m hitting an autoconf 
 > problem which is
 > really annoying me now.
 > 
 > I get an ERROR: Undefined symbol: .xmalloc
 > 
 > when I try and compile check_disk. It seems that in the 
 > original coreutils,
 > it uses some autoconf routines to replace xmalloc, which I 
 > can get working,
 > but these replacement routines are asking for rpl_malloc 
 > which is provided
 > by malloc.c, but I can"t get it to conditionally compile.
 > 
 > Does anyone have an idea on how to add this in?
 > 
 > Ton
#####################
#Voon Ton said.....
#####################


Trevor

On Wed, 10 Nov 2004 14:39:04 -0000, Voon, Ton <ton.voon at egg.com> wrote:
> Trevor,
> 
> Have you tried CVS HEAD? I did some work about 10 months ago on getting AIX
> 5.1 compiles working correctly.
> 
> Ton
> 
> 
> 
> -----Original Message-----
> From: Trevor Warren [mailto:trevorwarren at gmail.com]
> Sent: 10 November 2004 11:10
> To: nagiosplug-devel at lists.sourceforge.net
> Subject: [Nagiosplug-devel] aix 5.2 compilation of nagios-plugin fails
> 
> Hello there folks,
> 
>    I have been integrating Nagios for about 2-3 years now and really find it
> a fantastic tool from Open Source when compared to the likes of BMC patrol
> and Tivoli.
> 
>   I am trying to compile some nagios plugins on my AIX 5.2 servers which i
> am polling via nrpe. But the compilation seems to fail with the following
> errors:
> 
> Making all in plugins
>         source='check_disk.c' object='check_disk.o' libtool=no
> depfile='.deps/check_disk.Po' tmpdepfile='.deps/check_disk.TPo'
> depmode=gcc
> /bin/sh ../depcomp  gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\"
> -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../intl       -g -O2
> -maix32  -c `test -f 'check_disk.c' || echo './'`check_disk.c
>         source='utils.c' object='utils.o' libtool=no
> depfile='.deps/utils.Po' tmpdepfile='.deps/utils.TPo'  depmode=gcc /bin/sh
> ../depcomp gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\"
> -DHAVE_CONFIG_H -I.
> -I. -I.. -I.. -I../lib -I../intl       -g -O2 -maix32  -c `test -f
> 'utils.c' || echo './'`utils.c
>         source='popen.c' object='popen.o' libtool=no
> depfile='.deps/popen.Po' tmpdepfile='.deps/popen.TPo'  depmode=gcc /bin/sh
> ../depcomp gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\"
> -DHAVE_CONFIG_H -I.
> -I. -I.. -I.. -I../lib -I../intl       -g -O2 -maix32  -c `test -f
> 'popen.c' || echo './'`popen.c
>         gcc  -g -O2 -maix32   -L. -o check_disk  check_disk.o utils.o
> ../lib/libnagiosplug.a popen.o ../intl/libintl.a -liconv
> ld: 0711-317 ERROR: Undefined symbol: ..libintl_bindtextdomain
> ld: 0711-317 ERROR: Undefined symbol: ..libintl_textdomain
> ld: 0711-317 ERROR: Undefined symbol: ..libintl_gettext
> ld: 0711-317 ERROR: Undefined symbol: .VA_COPY
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
> information.
> collect2: ld returned 8 exit status
> make: 1254-004 The error code from the last command is 1.
> 
>   I have looked about a lot and even found someone called eric who might
> have had the same  issues. He says in his mail that he has written a patch.
> Guys/Gals, is there a way i can get over this issue???.  I have tried all
> version of nagios-plugin but all of them fail to compile both on my 32/64
> bit aix 5.2 boxes.
> 
>   Do lemme know what you suggest and i shall try the same out.
> 
> Trevor

-- 
         ___________________________________    
( >-   /  Scaling FreeSoftware & OpenSource        \   -< ) 
/~\   /           In the Enterprise                               \   /~\ 
|  \) \      | www.fsf.org | www.opensource.org |         /  (/ |
|_|_   \____________________________________/  _|_|




More information about the Devel mailing list