Hy Michael, Thanks a lot for your extense response. I have deleted rlm_counter and rlm_ippool directory (both of them need gdbm.h) because I only want to test the proxy functionality of freeradius. But, after this I have installed freeradius 1.0.5 in another solaris 8 machine and here I haven´t had any problem (and the gdbm.h file doesn´t exits in this machine too, I tried to find it with the "find" command wihout any result). I don´t know what I am doing different... Best regards from Madrid Rafa ----- Original Message ----- From: "Michael Mitchell" <mitchell.michael@bigpond.com> To: "FreeRadius users mailing list" <freeradius-users@lists.freeradius.org> Sent: Wednesday, December 21, 2005 11:41 AM Subject: Re: Problem with rlm_counter in compiling
Do you need to use rlm_counter? If not, you can simply delete the rlm_counter directory and run configure again then make, or delete rlm_counter from the MODULES item in Make.inc, and run make again.
The problem is that the compiler can't find gdbm.h. It may not be installed on your system, in which case the configure process should have removed rlm_counter from the Makefiles. If gdbm.h does exist, the configure script may not have updated the Makefile with the location of gdbm.h. If you know where gdbm.h exists on your system (config.log may give you some hints) then you can update RLM_CFLAGS in the Makefile in rlm_counter manually and see if you get any further.
Please report back with your progress, as it may help to improve the configure and Make process for the future.
Building freeRADIUS on Solaris always seems to be a little troublesome - I've had various problems with the configure scripts on Solaris 9 and 10 in the past.
If none of this makes sense, shoot me an email and I can try to walk you through it in a bit more detail.
regards, Mike
Rafael Roldán wrote:
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
------------------------------------------------------------------------
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html