Problem with rlm_counter in compiling
Rafael Roldán
rafael.roldan at panel.es
Wed Dec 21 11:06:59 CET 2005
Hy all,
I am trying to install freeradius 1.0.5 in a solaris 8 machine.
When I run make, I obtain the following error:
...
rlm_counter.c:38:18: gdbm.h: No such file or directory
rlm_counter.c:84: parse error before "GDBM_FILE"
rlm_counter.c:84: warning: no semicolon at end of struct or union
rlm_counter.c:88: parse error before '}' token
rlm_counter.c:88: warning: type defaults to `int' in declaration of `rlm_counter_t'
rlm_counter.c:88: warning: data definition has no type or storage class
rlm_counter.c:116: parse error before ')' token
rlm_counter.c:116: initializer element is not constant
rlm_counter.c:116: (near initialization for `module_config[0].offset')
rlm_counter.c:116: warning: missing initializer
rlm_counter.c:116: warning: (near initialization for `module_config[0].offset')
rlm_counter.c:116: initializer element is not constant
rlm_counter.c:116: (near initialization for `module_config[0]')
rlm_counter.c:117: parse error before ')' token
rlm_counter.c:117: initializer element is not constant
rlm_counter.c:117: (near initialization for `module_config[1].offset')
rlm_counter.c:117: warning: missing initializer
rlm_counter.c:117: warning: (near initialization for `module_config[1].offset')
rlm_counter.c:117: initializer element is not constant
rlm_counter.c:117: (near initialization for `module_config[1]')
rlm_counter.c:118: parse error before ')' token
rlm_counter.c:118: initializer element is not constant
rlm_counter.c:118: (near initialization for `module_config[2].offset')
rlm_counter.c:118: warning: missing initializer
rlm_counter.c:118: warning: (near initialization for `module_config[2].offset')
rlm_counter.c:118: initializer element is not constant
rlm_counter.c:118: (near initialization for `module_config[2]')
rlm_counter.c:119: parse error before ')' token
rlm_counter.c:119: initializer element is not constant
rlm_counter.c:119: (near initialization for `module_config[3].offset')
rlm_counter.c:119: warning: missing initializer
rlm_counter.c:119: warning: (near initialization for `module_config[3].offset')
rlm_counter.c:119: initializer element is not constant
rlm_counter.c:119: (near initialization for `module_config[3]')
rlm_counter.c:120: parse error before ')' token
rlm_counter.c:120: initializer element is not constant
rlm_counter.c:120: (near initialization for `module_config[4].offset')
rlm_counter.c:120: warning: missing initializer
rlm_counter.c:120: warning: (near initialization for `module_config[4].offset')
rlm_counter.c:120: initializer element is not constant
rlm_counter.c:120: (near initialization for `module_config[4]')
rlm_counter.c:121: parse error before ')' token
rlm_counter.c:121: initializer element is not constant
rlm_counter.c:121: (near initialization for `module_config[5].offset')
rlm_counter.c:121: warning: missing initializer
rlm_counter.c:121: warning: (near initialization for `module_config[5].offset')
rlm_counter.c:121: initializer element is not constant
rlm_counter.c:121: (near initialization for `module_config[5]')
rlm_counter.c:122: parse error before ')' token
rlm_counter.c:122: initializer element is not constant
rlm_counter.c:122: (near initialization for `module_config[6].offset')
rlm_counter.c:122: warning: missing initializer
rlm_counter.c:122: warning: (near initialization for `module_config[6].offset')
rlm_counter.c:122: initializer element is not constant
rlm_counter.c:122: (near initialization for `module_config[6]')
rlm_counter.c:123: parse error before ')' token
rlm_counter.c:123: initializer element is not constant
rlm_counter.c:123: (near initialization for `module_config[7].offset')
rlm_counter.c:123: warning: missing initializer
rlm_counter.c:123: warning: (near initialization for `module_config[7].offset')
rlm_counter.c:123: initializer element is not constant
rlm_counter.c:123: (near initialization for `module_config[7]')
rlm_counter.c:124: initializer element is not constant
rlm_counter.c:124: (near initialization for `module_config[8]')
rlm_counter.c: In function `counter_cmp':
rlm_counter.c:138: `data' undeclared (first use in this function)
rlm_counter.c:138: (Each undeclared identifier is reported only once
rlm_counter.c:138: for each function it appears in.)
rlm_counter.c:138: parse error before ')' token
rlm_counter.c:139: `datum' undeclared (first use in this function)
rlm_counter.c:156: `key_datum' undeclared (first use in this function)
rlm_counter.c:159: `count_datum' undeclared (first use in this function)
rlm_counter.c:159: warning: implicit declaration of function `gdbm_fetch'
rlm_counter.c:133: warning: unused parameter `instance'
rlm_counter.c: At top level:
rlm_counter.c:171: parse error before '*' token
rlm_counter.c:172: warning: function declaration isn't a prototype
rlm_counter.c: In function `add_defaults':
rlm_counter.c:173: `datum' undeclared (first use in this function)
rlm_counter.c:173: parse error before "key_datum"
rlm_counter.c:180: `key_datum' undeclared (first use in this function)
rlm_counter.c:180: warning: cast discards qualifiers from pointer target type
rlm_counter.c:182: `time_datum' undeclared (first use in this function)
rlm_counter.c:182: `data' undeclared (first use in this function)
rlm_counter.c:185: warning: implicit declaration of function `gdbm_store'
rlm_counter.c:185: `GDBM_REPLACE' undeclared (first use in this function)
rlm_counter.c:187: warning: implicit declaration of function `gdbm_strerror'
rlm_counter.c:187: `gdbm_errno' undeclared (first use in this function)
rlm_counter.c:187: warning: format argument is not a pointer (arg 4)
rlm_counter.c:192: warning: cast discards qualifiers from pointer target type
rlm_counter.c:199: warning: format argument is not a pointer (arg 4)
rlm_counter.c: At top level:
rlm_counter.c:208: parse error before '*' token
rlm_counter.c:209: warning: function declaration isn't a prototype
rlm_counter.c: In function `reset_db':
rlm_counter.c:210: `data' undeclared (first use in this function)
rlm_counter.c:214: warning: implicit declaration of function `gdbm_close'
rlm_counter.c:219: warning: implicit declaration of function `gdbm_open'
rlm_counter.c:220: `GDBM_NEWDB' undeclared (first use in this function)
rlm_counter.c:226: warning: implicit declaration of function `gdbm_setopt'
rlm_counter.c:226: `GDBM_CACHESIZE' undeclared (first use in this function)
rlm_counter.c: At top level:
rlm_counter.c:242: parse error before '*' token
rlm_counter.c:243: warning: function declaration isn't a prototype
rlm_counter.c: In function `find_next_reset':
rlm_counter.c:250: `timeval' undeclared (first use in this function)
rlm_counter.c:254: `data' undeclared (first use in this function)
rlm_counter.c: In function `counter_instantiate':
rlm_counter.c:320: `data' undeclared (first use in this function)
rlm_counter.c:327: `datum' undeclared (first use in this function)
rlm_counter.c:327: parse error before "key_datum"
rlm_counter.c:463: `GDBM_WRCREAT' undeclared (first use in this function)
rlm_counter.c:470: `GDBM_CACHESIZE' undeclared (first use in this function)
rlm_counter.c:486: `key_datum' undeclared (first use in this function)
rlm_counter.c:486: warning: cast discards qualifiers from pointer target type
rlm_counter.c:489: `time_datum' undeclared (first use in this function)
rlm_counter.c:507: warning: cast discards qualifiers from pointer target type
rlm_counter.c:320: warning: statement with no effect
rlm_counter.c: In function `counter_accounting':
rlm_counter.c:546: `data' undeclared (first use in this function)
rlm_counter.c:546: parse error before ')' token
rlm_counter.c:547: `datum' undeclared (first use in this function)
rlm_counter.c:632: `key_datum' undeclared (first use in this function)
rlm_counter.c:637: `count_datum' undeclared (first use in this function)
rlm_counter.c:676: warning: comparison between signed and unsigned
rlm_counter.c:676: warning: signed and unsigned type in conditional expression
rlm_counter.c:699: `GDBM_REPLACE' undeclared (first use in this function)
rlm_counter.c:703: `gdbm_errno' undeclared (first use in this function)
rlm_counter.c:703: warning: format argument is not a pointer (arg 4)
rlm_counter.c:544: warning: unused parameter `instance'
rlm_counter.c: In function `counter_authorize':
rlm_counter.c:719: `data' undeclared (first use in this function)
rlm_counter.c:719: parse error before ')' token
rlm_counter.c:721: `datum' undeclared (first use in this function)
rlm_counter.c:721: parse error before "key_datum"
rlm_counter.c:769: `key_datum' undeclared (first use in this function)
rlm_counter.c:781: `count_datum' undeclared (first use in this function)
rlm_counter.c:827: warning: comparison between signed and unsigned
rlm_counter.c:725: warning: `key_vp' might be used uninitialized in this function
rlm_counter.c: In function `counter_detach':
rlm_counter.c:873: `data' undeclared (first use in this function)
rlm_counter.c:873: parse error before ')' token
make[6]: *** [rlm_counter.o] Error 1
make[6]: Leaving directory `/users/telemati/FreeRadius/freeradius-1.0.5/src/modules/rlm_counter'
make[5]: *** [common] Error 2
make[5]: Leaving directory `/users/telemati/FreeRadius/freeradius-1.0.5/src/modules'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/users/telemati/FreeRadius/freeradius-1.0.5/src/modules'
make[3]: *** [common] Error 2
make[3]: Leaving directory `/users/telemati/FreeRadius/freeradius-1.0.5/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/users/telemati/FreeRadius/freeradius-1.0.5/src'
make[1]: *** [common] Error 2
make[1]: Leaving directory `/users/telemati/FreeRadius/freeradius-1.0.5'
make: *** [all] Error 2
It is the first time I use a UNIX machine. How can I resolve this problem?
Thank you very much,
Rafa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20051221/beeb9753/attachment.html>
More information about the Freeradius-Users
mailing list