rlm_counter

Lisa Casey lisa at jellico.net
Tue Dec 6 19:44:54 CET 2005


Hi,

I have Freeradius 1.01 on FreeBSD 5.3.  Two questions:

1) Is there a way to show which modules are currently installed?

2) I want to use the rlm_counter module. So I went to
/usr/ports/distfiles/freeradius-1.0.1/src/modules/rlm_counter and did a
./configure. That went OK, no errors. I next typed make with the following
result:

radius# make
"../rules.mak", line 65: Missing dependency operator
Error expanding embedded variable.

I did some googling and found a suggestion that I probably should use gmake
on FreeBSD. That bombed also:

radius# gmake
../rules.mak:137: warning: overriding commands for target `clean'
/usr/ports/distfiles/freeradius-1.0.1/src/main/00-OLD/Make.inc:107: warning:
ignoring old commands for target `clean'
../rules.mak:157: warning: overriding commands for target `install'
/usr/ports/distfiles/freeradius-1.0.1/src/main/00-OLD/Make.inc:111: warning:
ignoring old commands for target `install'
gmake: *** No rule to make target `radiusd.c', needed by `radiusd.o'.  Stop.
radius# gmake rlm_counter
../rules.mak:137: warning: overriding commands for target `clean'
/usr/ports/distfiles/freeradius-1.0.1/src/main/00-OLD/Make.inc:107: warning:
ignoring old commands for target `clean'
../rules.mak:157: warning: overriding commands for target `install'
/usr/ports/distfiles/freeradius-1.0.1/src/main/00-OLD/Make.inc:111: warning:
ignoring old commands for target `install'
cc -I../../include -I/usr/local/include/ -c rlm_counter.c -o rlm_counter.o
rlm_counter.c:26:22: autoconf.h: No such file or directory
In file included from rlm_counter.c:27:
../../include/libradius.h:12:22: autoconf.h: No such file or directory
In file included from ../../include/libradius.h:59,
                 from rlm_counter.c:27:
../../include/sha1.h:15: error: syntax error before "uint32_t"
../../include/sha1.h:20: error: syntax error before "state"
../../include/sha1.h:22: error: syntax error before '*' token
../../include/sha1.h:23: error: syntax error before "digest"
../../include/sha1.h:29: error: syntax error before "digest"
../../include/sha1.h:34: error: syntax error before "mk"
In file included from ../../include/libradius.h:60,
                 from rlm_counter.c:27:
../../include/md4.h:72: error: syntax error before "uint32_t"
../../include/md4.h:81: error: syntax error before '*' token
../../include/md4.h:83: error: syntax error before '[' token
../../include/md4.h:85: error: syntax error before '[' token
In file included from rlm_counter.c:27:
../../include/libradius.h:100: error: syntax error before "uint8_t"
../../include/libradius.h:138: error: syntax error before "uint32_t"
../../include/libradius.h:140: error: syntax error before "uint8_t"
../../include/libradius.h:156: error: syntax error before "uint32_t"
../../include/libradius.h:162: error: syntax error before "uint8_t"
../../include/libradius.h:165: error: syntax error before "uint8_t"
../../include/libradius.h:221: error: syntax error before '*' token
../../include/libradius.h:244: error: syntax error before '*' token
../../include/libradius.h:288: error: syntax error before "uint32_t"
../../include/libradius.h:289: error: syntax error before "ip_getaddr"
../../include/libradius.h:289: warning: data definition has no type or
storage class
../../include/libradius.h:290: error: syntax error before "uint32_t"
../../include/libradius.h:291: error: syntax error before "ip_addr"
../../include/libradius.h:291: warning: data definition has no type or
storage class
../../include/libradius.h:292: error: syntax error before "uint8_t"
../../include/libradius.h:293: error: syntax error before '*' token
../../include/libradius.h:293: error: syntax error before "uint8_t"
../../include/libradius.h:293: warning: data definition has no type or
storage class
../../include/libradius.h:318: error: syntax error before "uint32_t"
../../include/libradius.h:328: error: syntax error before "lrad_rand"
../../include/libradius.h:328: warning: data definition has no type or
storage class
In file included from rlm_counter.c:34:
../../include/radiusd.h:11:22: radpaths.h: No such file or directory
In file included from rlm_counter.c:34:
../../include/radiusd.h:26: error: syntax error before "child_pid_t"
../../include/radiusd.h:26: warning: data definition has no type or storage
class
In file included from ../../include/radiusd.h:38,
                 from rlm_counter.c:34:
../../include/missing.h:12: error: conflicting types for 'strncasecmp'
/usr/include/strings.h:53: error: previous declaration of 'strncasecmp' was
here
../../include/missing.h:12: error: conflicting types for 'strncasecmp'
/usr/include/strings.h:53: error: previous declaration of 'strncasecmp' was
here
../../include/missing.h:16: error: conflicting types for 'strcasecmp'
/usr/include/strings.h:52: error: previous declaration of 'strcasecmp' was
here
../../include/missing.h:16: error: conflicting types for 'strcasecmp'
/usr/include/strings.h:52: error: previous declaration of 'strcasecmp' was
here
In file included from rlm_counter.c:34:
../../include/radiusd.h:56: error: syntax error before "uint32_t"
../../include/radiusd.h:67: error: syntax error before "child_pid_t"
../../include/radiusd.h:105: error: syntax error before "uint32_t"
../../include/radiusd.h:108: error: syntax error before "u_char"
../../include/radiusd.h:117: error: syntax error before "uint32_t"
../../include/radiusd.h:128: error: syntax error before "uint32_t"
../../include/radiusd.h:171: error: syntax error before "uint32_t"
../../include/radiusd.h:181: error: syntax error before "uint32_t"
../../include/radiusd.h:277: error: syntax error before "expiration_seconds"
../../include/radiusd.h:277: warning: data definition has no type or storage
class
../../include/radiusd.h:292: error: syntax error before "nasaddr"
../../include/radiusd.h:294: error: syntax error before "uint32_t"
../../include/radiusd.h:325: error: syntax error before "ipno"
../../include/radiusd.h:326: error: syntax error before "ipno"
../../include/radiusd.h:332: error: syntax error before "ipno"
../../include/radiusd.h:334: error: syntax error before "ipno"
../../include/radiusd.h:342: error: syntax error before "ipno"
../../include/radiusd.h:343: error: syntax error before "ipno"
../../include/radiusd.h:345: error: syntax error before "uint32_t"
../../include/radiusd.h:410: error: syntax error before "rad_fork"
../../include/radiusd.h:410: warning: data definition has no type or storage
class
../../include/radiusd.h:411: error: syntax error before "rad_waitpid"
../../include/radiusd.h:411: error: syntax error before "pid"
../../include/radiusd.h:411: warning: data definition has no type or storage
class
../../include/radiusd.h:412: error: syntax error before "pid"
rlm_counter.c: In function `counter_cmp':
rlm_counter.c:156: error: structure has no member named `strvalue'
rlm_counter.c:167: error: structure has no member named `lvalue'
rlm_counter.c: In function `reset_db':
rlm_counter.c:223: error: `errno' undeclared (first use in this function)
rlm_counter.c:223: error: (Each undeclared identifier is reported only once
rlm_counter.c:223: error: for each function it appears in.)
rlm_counter.c: In function `counter_instantiate':
rlm_counter.c:466: error: `errno' undeclared (first use in this function)
rlm_counter.c: In function `counter_accounting':
rlm_counter.c:556: error: structure has no member named `lvalue'
rlm_counter.c:567: error: structure has no member named `strvalue'
rlm_counter.c:593: error: structure has no member named `lvalue'
rlm_counter.c:604: error: structure has no member named `lvalue'
rlm_counter.c:605: error: structure has no member named `lvalue'
rlm_counter.c:632: error: structure has no member named `strvalue'
rlm_counter.c:635: error: structure has no member named `strvalue'
rlm_counter.c:643: error: structure has no member named `strvalue'
rlm_counter.c:655: error: structure has no member named `strvalue'
rlm_counter.c:659: error: structure has no member named `strvalue'
rlm_counter.c:661: error: structure has no member named `strvalue'
rlm_counter.c:676: error: structure has no member named `lvalue'
rlm_counter.c:676: error: structure has no member named `lvalue'
rlm_counter.c:683: error: structure has no member named `lvalue'
rlm_counter.c:693: error: structure has no member named `strvalue'
rlm_counter.c: In function `counter_authorize':
rlm_counter.c:769: error: structure has no member named `strvalue'
rlm_counter.c:779: error: structure has no member named `strvalue'
rlm_counter.c:794: error: structure has no member named `lvalue'
rlm_counter.c:795: error: structure has no member named `lvalue'
rlm_counter.c:823: error: structure has no member named `lvalue'
rlm_counter.c:827: error: structure has no member named `lvalue'
rlm_counter.c:828: error: structure has no member named `lvalue'
rlm_counter.c:834: error: structure has no member named `lvalue'
rlm_counter.c:843: error: structure has no member named `strvalue'
rlm_counter.c:843: error: structure has no member named `lvalue'
rlm_counter.c:845: error: structure has no member named `strvalue'
rlm_counter.c:865: error: structure has no member named `strvalue'
rlm_counter.c:865: error: structure has no member named `lvalue'
gmake: *** [rlm_counter.o] Error 1

Any suggestions? Thanks!

Lisa Casey




More information about the Freeradius-Users mailing list