[Nagiosplug-devel] [ nagiosplug-Bugs-1218438 ] check_radius.c: In function `main':

SourceForge.net noreply at sourceforge.net
Wed Sep 21 11:48:27 CEST 2005


Bugs item #1218438, was opened at 2005-06-10 14:34
Message generated for change (Comment added) made by coder7
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1218438&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Compilation
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Sébastien Guay (sebasguay)
Assigned to: M. Sean Finney (seanius)
Summary: check_radius.c: In function `main':

Initial Comment:
When trying to compile on slackware I got the following

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-plugins-1.4/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/usr/local/src/nagios-plugins-1.4'
make: *** [all] Error 2

I uninstalled the package ppp-2.4.2-i486-2 and redo a
make and all was fine.

After I reinstalled ppp-2.4.2-i486-2.

ppp-2.4.2-i486-2 has a file radiusclient.h.

Sébas

----------------------------------------------------------------------

Comment By: Bradley Hook (coder7)
Date: 2005-09-21 13:47

Message:
Logged In: YES 
user_id=903812

Can we get a small note added to the README until a more
permanent solution is found? I will submit this to the
Slackware people to see if the radiusclient.h is even needed
in the ppp package, they might be able to remove it or move it.

----------------------------------------------------------------------

Comment By: M. Sean Finney (seanius)
Date: 2005-07-14 06:25

Message:
Logged In: YES 
user_id=226838

hi,

thanks for the extra info.  i'll try and look more into this
in the next couple of weeks, and see if i can do some voodoo
in autoconf to determine the correct prototypes and version
of radiusclient.

----------------------------------------------------------------------

Comment By: John Warburton (johnwarburton)
Date: 2005-07-13 20:05

Message:
Logged In: YES 
user_id=1192023

Hi Guys

The problem isn't specific to Slackware. It is anyone that
runs with newer versions of the radiusclient library.

The REQUIREMENTS file says they can be found at
http://www.cityline.net/~lf/radius/ versions
radiusclient-0.3.1-1

That website no longer exists, but I have tracked down the
developer to
http://developer.berlios.de/projects/radiusclient-ng/

I was getting the same compile time errors on Solaris 8 with
radiusclient-0.4.9 as Sébastien. I downloaded an earlier
client library - radiusclient-0.3.3, which compiled, but I
have no idea on configuring, so doesn't seem to work.

It seems to me the radius client library has moved on, but
the Nagios plugin hasn't.

Since my site has moved to openradius, I will just use a
very simple shell script as a plugin to attempt login using
the openradius "radclient" program.

Regards

John

----------------------------------------------------------------------

Comment By: Sébastien Guay (sebasguay)
Date: 2005-07-05 13:11

Message:
Logged In: YES 
user_id=265586

Hi Sean,

> this looks like a problem with slackware or the slackware
> package of ppp then.  where is the radiusclient.h provided
> by your libradius package (or whatever the slackware
> equivalent is that provides radiusclient.h)?

The file radiusclient.h is part of the package ppp (or I
misunderstood your question?).

> i'm not sure why installing ppp would plop an include file
> used to build ppp in a compiler accessible directory in the
> first place, 

Not sure either :)

> but unless you can provide a convincing reason
> why this is a problem with the nagios plugins, i'm going to
> close out the bug in a week's time.

My goal was not to convince anybody, it was just to let you
know that any Slackware user may have a problem to compile
nagios plugins if they have the ppp package installed.  As I
said, the problem was easily solved on my side by
uninstalling ppp and re-installing it after.

Here's the definition of rc_avpair_add() function in the
radiusclient.h file in the ppp package

VALUE_PAIR *rc_avpair_add __P((VALUE_PAIR **, int, void *,
int, int));

and here's the call of rc_avpair_add in check_radius.c

rc_avpair_add (&data.send_pairs, PW_SERVICE_TYPE, &service, 0)

I don't know anything about libradius.  Do you know what is
the *supposed* arguments number for rc_avpair_add()?  If
it's 4, I can send a bug report to Patrick.

The radiusclient.h file is in attach.

Sébas

----------------------------------------------------------------------

Comment By: M. Sean Finney (seanius)
Date: 2005-06-27 21:06

Message:
Logged In: YES 
user_id=226838

hi sebastien,

this looks like a problem with slackware or the slackware
package of ppp then.  where is the radiusclient.h provided
by your libradius package (or whatever the slackware
equivalent is that provides radiusclient.h)?

i'm not sure why installing ppp would plop an include file
used to build ppp in a compiler accessible directory in the
first place, but unless you can provide a convincing reason
why this is a problem with the nagios plugins, i'm going to
close out the bug in a week's time.


thanks,
        sean

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1218438&group_id=29880




More information about the Devel mailing list