[Nagiosplug-help] Trouble compiling 1.4 plugins

Subhendu Ghosh sghosh at sghosh.org
Tue Jul 12 19:31:37 CEST 2005


Probably, but I don't think it setup that way.


On Tue, 12 Jul 2005, Justin Shore wrote:

> Either way sounds good to me.  However I'm most concerned in the 
> short-term with making ./configure --without-check_radius work like it's 
> supposed to.  I don't believe make should have tried to compile 
> check_radius if I told it to disable the plugin.  Should it?
>
> Justin
>
>> -----Original Message-----
>> From: Subhendu Ghosh [mailto:sghosh at sghosh.org]
>> Sent: Tuesday, July 12, 2005 3:44 PM
>> To: Justin Shore
>> Cc: nagiosplug-help at lists.sourceforge.net
>> Subject: RE: [Nagiosplug-help] Trouble compiling 1.4 plugins
>>
>> check_radius was written using radiusclient from:
>> ftp://ftp.cityline.net/pub/radiusclient/
>>
>> we should probably upgrade to using radiusclient-ng since it has active
>> development.
>>
>> -sg
>>
>>
>> On Tue, 12 Jul 2005, Justin Shore wrote:
>>
>>> Thanks for the reply.  That's a very good question.  I forgot about
>>> fighting that battle until you mentioned it just now.  Late last week I
>>> came across the radiusclient issue and started working on it.  I
>>> upgraded ppp thinking that perhaps it would fix the problem.  The
>>> upgrade removed my /usr/include/radiusclient.h.  That started me down a
>>> long and winding road of trying radiusclient-ng, different pppd versions
>>> and swearing a lot.  At one point the compile error was many times
>>> longer than what it is now.  Currently I have radiusclient-ng 0.5.0 and
>>> ppp 2.4.2-r10.  I also have the freeradius server installed.  I also
>>> currently have headers for both radiusclient and radiusclient-ng:
>>>
>>> root at noc /usr/local/src/nagios/nagios-plugins-1.4#>  ls -l
>> /usr/include/radiusclient*
>>> -rw-r--r--  1 root root 14033 Jul  7 16:21 /usr/include/radiusclient-
>> ng.h
>>> -rw-r--r--  1 root root 13870 Jul  7 16:36 /usr/include/radiusclient.h
>>>
>>> radiusclient.h is owned by ppp.  IIRC upgrading to 2.4.3-r6 removed the
>> radiusclient.h file.  It's been a fun couple of weeks.
>>>
>>> What do you think the fix will be for this problem?  Should the ppp
>> package include the radiusclient header?
>>>
>>> Thanks
>>> Justin
>>>
>>>> -----Original Message-----
>>>> From: Subhendu Ghosh [mailto:sghosh at sghosh.org]
>>>> Sent: Tuesday, July 12, 2005 2:05 PM
>>>> To: Justin Shore
>>>> Cc: nagiosplug-help at lists.sourceforge.net
>>>> Subject: Re: [Nagiosplug-help] Trouble compiling 1.4 plugins
>>>>
>>>> do you have radiusclient installed?  This seems to be due to the recent
>>>> ppp package including a radiusclient.h but not a full radiusclient
>>>> functionality.
>>>>
>>>> We need to update the configure process to catch this.
>>>>
>>>> -sg
>>>>
>>>> On Tue, 12 Jul 2005, Justin Shore wrote:
>>>>
>>>>> I'm trying to compile the 1.4 plugins on a Sun 280R running Gentoo
>>>> 2005.0.  Portage doesn't contain any 2.x releases so I compiled 2.0b3
>> by
>>>> hand (I always compiled by hand before Gentoo as well) and have it up
>> and
>>>> running, albeit without any plugins.  I'm now trying to compile the
>>>> plugins.  The compile bombs out every time at the same spot, when
>> trying
>>>> to compile check_radius.
>>>>>
>>>>> if gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H
>> -
>>>> I. -I. -I.. -I.. -I../lib -I../intl -I/usr/include/ldap    -I/include
>> -g
>>>> -O2 -MT check_radius.o -MD -MP -MF ".deps/check_radius.Tpo" -c -o
>>>> check_radius.o check_radius.c; \
>>>>> then mv -f ".deps/check_radius.Tpo" ".deps/check_radius.Po"; else rm -
>> f
>>>> ".deps/check_radius.Tpo"; exit 1; fi
>>>>> check_radius.c: In function `main':
>>>>> check_radius.c:126: error: too few arguments to function
>> `rc_avpair_add'
>>>>> check_radius.c:127: error: too few arguments to function
>> `rc_avpair_add'
>>>>> check_radius.c:128: error: too few arguments to function
>> `rc_avpair_add'
>>>>> check_radius.c:129: error: too few arguments to function
>> `rc_avpair_add'
>>>>> check_radius.c:139: error: too few arguments to function
>> `rc_avpair_add'
>>>>> check_radius.c:145: error: too few arguments to function
>>>> `rc_send_server'
>>>>> make[2]: *** [check_radius.o] Error 1
>>>>> make[2]: Leaving directory `/usr/local/src/nagios/nagios-plugins-
>>>> 1.4/plugins'
>>>>> make[1]: *** [all-recursive] Error 1
>>>>> make[1]: Leaving directory `/usr/local/src/nagios/nagios-plugins-1.4'
>>>>> make: *** [all] Error 2
>>>>>
>>>>> It does this even though I've explicitly disabled check_radius with --
>>>> without-check_radius.  I've been searching for the answer off and on
>> for
>>>> two weeks and have come up empty.  Does anyone have any insight on this
>>>> problem?  FYI, I'm not new to Nagios.  However this is my first 2.x
>>>> install and first time trying to get Nagios compiled on Sparc hardware.
>>>>>
>>>>> Thanks,
>>>>> Justin
>>>>>
>>>>> --
>>>>> Justin Shore, Network Engineer
>>>>> SKT Business Communication Solutions
>>>>> Office:  (316) 265-9555 x3217
>>>>>
>>>>>
>>>>>
>>>>
>>>> --
>>>>
>>>>
>>>> --
>>>> No virus found in this incoming message.
>>>> Checked by AVG Anti-Virus.
>>>> Version: 7.0.323 / Virus Database: 267.8.13/47 - Release Date:
>> 7/12/2005
>>>>
>>>
>>>
>>
>> --
>>
>>
>> --
>> No virus found in this incoming message.
>> Checked by AVG Anti-Virus.
>> Version: 7.0.323 / Virus Database: 267.8.13/47 - Release Date: 7/12/2005
>>
>
>

-- 





More information about the Help mailing list