Re: gmake freeradius-0.9.0 on BSDI4.3
Hello !!! I built with and without support for threads and I always got the same error. I checked the following files: ./src/include/radiusd.h and it has the following line: extern int total_active_threads(void); ./src/main/radiusd.c and it includes the followings lines #include "radiusd.h" if( (total_active_threads() == 0) || (max_wait >= 5) ) { sig_hup_block = FALSE; break; } ./src/main/threads.c and it has the next lines: int total_active_threads(void) { int rcode = 0; THREAD_HANDLE *handle; for (handle = thread_pool.head; handle != NULL; handle = handle->next){ if (handle->request != NULL) { rcode ++; } } return (rcode); } Any suggestion? - Original Message - From: "Alan DeKok" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 25, 2003 6:21 PM Subject: Re: gmake freeradius-0.9.0 on BSDI4.3 > "Guillermo Delmastro" <[EMAIL PROTECTED]> wrote: > > When I do gmake I get this error: > ... > > radiusd.o: In function `main': > > /usr/freeradius-0.9.0/src/main/radiusd.c:845: undefined reference to > > `total_active_threads' > > Build with support for threads. > > Alan DeKok. > > - > List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html > - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: gmake freeradius-0.9.0 on BSDI4.3
On Fri, Jul 25, 2003 at 04:31:28PM -0500, Chris Brotsos wrote: > And just to confirm...I downloaded 0.9. > > Everything is where it should be, and 0.9 compiled fine on Slackware. > > Chris > Yes, but slackware is not BSD, which does not ship standard with threading support. I assume that slackware does. > Build with support for threads. > > Alan DeKok. There should be threading packages or source available if you would rather compile FreeRadius with threading support. What are the benefits of building with support for threads? rax - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: gmake freeradius-0.9.0 on BSDI4.3
At 04:21 PM 7/25/2003, you wrote: "Guillermo Delmastro" <[EMAIL PROTECTED]> wrote: > When I do gmake I get this error: ... > radiusd.o: In function `main': > /usr/freeradius-0.9.0/src/main/radiusd.c:845: undefined reference to > `total_active_threads' Build with support for threads. Alan DeKok. And just to confirm...I downloaded 0.9. Everything is where it should be, and 0.9 compiled fine on Slackware. Chris - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: gmake freeradius-0.9.0 on BSDI4.3
Assuming you are not using threads, which I was not when I did this (./configure --without-threads), you should be able to just remove the reference to that line, and everything should work fine, since that procedure should be ifdef'd out anyway. I successfully compiled and installed with (total_active_threads == 0) || removed, but have not yet had the server running in a production environment, and am by no means a developer, so no promises :) I just did this yesterday on a NetBSD 1.6 machine. rax On Fri, Jul 25, 2003 at 05:30:55PM -0300, Guillermo Delmastro wrote: > Hi > > When I do gmake I get this error: > > gcc .libs/radiusdS.o -g -O2 -Wall -D_GNU_SOURCE -DNDEBUG -I../include -o > .libs/radiusd radiusd.o files.o util.o acct.o nas.o log.o valuepair.o > version.o proxy.o exec.o auth.o timestr.o conffile.o modules.o modcall.o > session.o xlat.o threads.o smux.o radius_snmp.o client.o request_list.o > mainconfig.o -rdynamic -L/usr/freeradius-0.9.0/src/lib > /usr/freeradius-0.9.0/src/lib/.libs/libradius.so > /usr/freeradius-0.9.0/libltdl/.libs/libltdl.so -ldl > radiusd.o: In function `main': > /usr/freeradius-0.9.0/src/main/radiusd.c:845: undefined reference to > `total_active_threads' > gmake[4]: *** [radiusd] Error 1 > gmake[4]: Leaving directory `/usr/freeradius-0.9.0/src/main' > gmake[3]: *** [common] Error 1 > gmake[3]: Leaving directory `/usr/freeradius-0.9.0/src' > gmake[2]: *** [all] Error 2 > gmake[2]: Leaving directory `/usr/freeradius-0.9.0/src' > gmake[1]: *** [common] Error 1 > gmake[1]: Leaving directory `/usr/freeradius-0.9.0' > gmake: *** [all] Error 2 > > Does anybody know how can i fix it? > > Thanks!!! > > > - > List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: gmake freeradius-0.9.0 on BSDI4.3
"Guillermo Delmastro" <[EMAIL PROTECTED]> wrote: > When I do gmake I get this error: ... > radiusd.o: In function `main': > /usr/freeradius-0.9.0/src/main/radiusd.c:845: undefined reference to > `total_active_threads' Build with support for threads. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: gmake freeradius-0.9.0 on BSDI4.3
At 03:30 PM 7/25/2003, you wrote: Hi When I do gmake I get this error: gcc .libs/radiusdS.o -g -O2 -Wall -D_GNU_SOURCE -DNDEBUG -I../include -o .libs/radiusd radiusd.o files.o util.o acct.o nas.o log.o valuepair.o version.o proxy.o exec.o auth.o timestr.o conffile.o modules.o modcall.o session.o xlat.o threads.o smux.o radius_snmp.o client.o request_list.o mainconfig.o -rdynamic -L/usr/freeradius-0.9.0/src/lib /usr/freeradius-0.9.0/src/lib/.libs/libradius.so /usr/freeradius-0.9.0/libltdl/.libs/libltdl.so -ldl radiusd.o: In function `main': /usr/freeradius-0.9.0/src/main/radiusd.c:845: undefined reference to `total_active_threads' total_active_threads() is used to wait on a HUP to the server. There are three places it *was* defined/used. They were: /include/radiusd.h #prototype (this is most likely where it is *not* anymore) /main/threads.c /main/radiusd.c I haven't downloaded 0.9 yet, but I know it was added to radiusd.h V1.134. The prototype is "extern int total_active_threads(void);" The function is defined in threads.c, and it is called in radiusd.c. HTH, Chris - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
gmake freeradius-0.9.0 on BSDI4.3
Hi When I do gmake I get this error: gcc .libs/radiusdS.o -g -O2 -Wall -D_GNU_SOURCE -DNDEBUG -I../include -o .libs/radiusd radiusd.o files.o util.o acct.o nas.o log.o valuepair.o version.o proxy.o exec.o auth.o timestr.o conffile.o modules.o modcall.o session.o xlat.o threads.o smux.o radius_snmp.o client.o request_list.o mainconfig.o -rdynamic -L/usr/freeradius-0.9.0/src/lib /usr/freeradius-0.9.0/src/lib/.libs/libradius.so /usr/freeradius-0.9.0/libltdl/.libs/libltdl.so -ldl radiusd.o: In function `main': /usr/freeradius-0.9.0/src/main/radiusd.c:845: undefined reference to `total_active_threads' gmake[4]: *** [radiusd] Error 1 gmake[4]: Leaving directory `/usr/freeradius-0.9.0/src/main' gmake[3]: *** [common] Error 1 gmake[3]: Leaving directory `/usr/freeradius-0.9.0/src' gmake[2]: *** [all] Error 2 gmake[2]: Leaving directory `/usr/freeradius-0.9.0/src' gmake[1]: *** [common] Error 1 gmake[1]: Leaving directory `/usr/freeradius-0.9.0' gmake: *** [all] Error 2 Does anybody know how can i fix it? Thanks!!! - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html