Freeradius 1.0.2 on MacOS X 10.3.8 failing
Hello, I made a fresh install on a machine running MacOS X 10.3.8 which didn't had freeradius before. I configured this way: ./configure --with-mysql --with-large-files=yes --disable-shared after the make install, I modified /usr/local/etc/radius/clients.conf to include my Access Point in the following way: client 1.1.1.1 { secret = xxx shortname = some-name } I also copied over my own sql.conf from another machine. I then started radius by doing: mini:/usr/local/etc/raddb root# /usr/local/sbin/rc.radiusd start Starting FreeRADIUS:Mon Feb 21 12:24:56 2005 : Info: Starting - reading configuration files ... radiusd mini:/usr/local/etc/raddb root# but radiusd wasnt running anymore. So I looked at the logfile and I only see this: Wed Feb 16 02:25:36 2005 : Error: FATAL: Failed to initialize semaphore: Function not implemented Wed Feb 16 02:39:56 2005 : Info: Using deprecated naslist file. Support for this will go away soon. Wed Feb 16 02:39:56 2005 : Info: rlm_exec: Wait=yes but no output defined. Did you mean output=none? Wed Feb 16 02:39:56 2005 : Info: rlm_sql (sql): Driver rlm_sql_mysql (module rlm_sql_mysql) loaded and linked Wed Feb 16 02:39:56 2005 : Info: rlm_sql (sql): Attempting to connect to [EMAIL PROTECTED]:/radius Wed Feb 16 02:39:56 2005 : Info: rlm_sql_mysql: Starting connect to MySQL server for #0 Wed Feb 16 02:39:56 2005 : Info: rlm_sql_mysql: Starting connect to MySQL server for #1 Wed Feb 16 02:39:56 2005 : Info: rlm_sql_mysql: Starting connect to MySQL server for #2 Wed Feb 16 02:39:56 2005 : Info: rlm_sql_mysql: Starting connect to MySQL server for #3 Wed Feb 16 02:39:56 2005 : Info: rlm_sql_mysql: Starting connect to MySQL server for #4 Wed Feb 16 02:39:56 2005 : Error: FATAL: Failed to initialize semaphore: Function not implemented Mon Feb 21 12:24:56 2005 : Info: Using deprecated naslist file. Support for this will go away soon. Mon Feb 21 12:24:57 2005 : Info: rlm_exec: Wait=yes but no output defined. Did you mean output=none? Mon Feb 21 12:24:57 2005 : Error: FATAL: Failed to initialize semaphore: Function not implemented I've seen this error once before with some other package but I couldnt remember what was the fix for it. There's some semaphore initialisation function which actually returns not implemented. in src/main/threads.c I find the code which fails: /* * Initialize the queue of requests. */ rcode = sem_init(&thread_pool.semaphore, 0, SEMAPHORE_LOCKED); if (rcode != 0) { radlog(L_ERR|L_CONS, "FATAL: Failed to initialize semaphore: %s", strerror(errno)); exit(1); } by the way there is a file /usr/include/semaphore.h Anyway having a hint? Andreas Fink Fink Consulting GmbH --- Tel: +41-61-332 Fax: +41-61-331 Mobile: +41-79-2457333 Address: Clarastrasse 3, 4058 Basel, Switzerland E-Mail: [EMAIL PROTECTED] Homepage: http://www.finkconsulting.com --- - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: MySql and freeRadius
use mysql 4.0 not 4.1alpha or 5.0alpha. They have a bug in authentication of mysql which might get you into troubles. On 24.03.2004, at 23:30, Kirti S. Bajwa wrote: Hello List: I want to make sure I am installing freeRADIUS & MySQL correctly. I installed (test installation) freeRADIUS (0.9.3) and MySQL 5.0.0 (?) from binaries on a RH9 machine. It tested fine. In the next couple of days, I am going to do a final installation of freeRADIUS & MySQL (with InnoDB). Questions: == (1) with the above setup, what version of MySQL (binaries or rpm) should I use? (2) Do I still need a develoment package of MySQL to work with freeRADIUS? If YES, what version of MySQL? I am new to MySQL!! Kirti -Original Message- From: Keith Yoder [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 2:36 PM To: [EMAIL PROTECTED] Subject: Re: MySql and freeRadius John Que escreveu: As I understand , I must install the sources of MySql if I want to use rlm_sql in freeRadius (and not install the rpm for mySql Server and client). Actually, you can install the -devel rpms and that will allow you to compile the rlm_sql_mysql module. This will make sure all the libraries and header files get to the right places. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html Andreas Fink Global Networks Switzerland AG -- Tel: +41-61-330 Fax: +41-61-334 Mobile: +41-79-2457333 Global Networks, Inc. Clarastrasse 3, 4058 Basel, Switzerland Web: http://www.global-networks.ch/ [EMAIL PROTECTED] -- PGP Fingerprint: B982 00B7 FFB5 0B33 BFF8 0F77 1E23 F3CA B4A3 D0B8 - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html