[sr-dev] [kamailio/kamailio] radius : Fixes use of freeradiusclient library (#1170)

Yasin CANER notifications at github.com
Thu Jun 29 08:03:06 CEST 2017


Hello @miconda ,
there is conflict with Makefile.radius .  this file selects freeradiusclient without settting freeradius, but makefile.radius needs to FREERADIUS  for using freeradiusclient.h . so compiling couldnt find .h file, gives error.
Could you check it again , please.

ERROR :
 `In file included from acc_radius_mod.c:44:
../misc_radius/radius.h:38:31: warning: radiusclient-ng.h: No such file or directory
`

Thanks.

`
INCLUDES+=-I$(LOCALBASE)/include

	ifeq ($(FREERADIUS),1)

	# - freeradius-client library
	DEFS+= -DUSE_FREERADIUS
	RADIUSCLIENT_LIB=freeradius-client

	else
		ifeq ($(RADCLI),1)

		# - radcli library
		DEFS+= -DUSE_RADCLI
		RADIUSCLIENT_LIB=radcli

		else
		# - radiusclient-ng v5 or v4 library
			ifneq ($(radiusclient_ng), 4)

			# radiusclient-ng 5+
			# DEFS+=-DRADIUSCLIENT_NG_5P
			RADIUSCLIENT_LIB=radiusclient-ng

			else

			DEFS+=-DRADIUSCLIENT_NG_4
			RADIUSCLIENT_LIB=radiusclient

			endif
		endif

	endif

LIBS=-L$(LOCALBASE)/lib -l$(RADIUSCLIENT_LIB)
`


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1170#issuecomment-311870676
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20170628/f6186ac2/attachment.html>


More information about the sr-dev mailing list