This was covered all yesterday, but here is the output of radiusd -x when
compiled using the source tarball from freeradius.org using ./configure 
--with-raddbdir=/etc/raddb --with-logdir=/var/log/radius:
[MOCKINGBIRD.ROOT][/home/jefft/freeradius-0.8.1]# radiusd -x
Starting - reading configuration files ...
Module: Loaded expr
Module: Instantiated expr (expr)
Module: Loaded MS-CHAP
Module: Instantiated mschap (mschap)
Module: Loaded preprocess
Module: Instantiated preprocess (preprocess)
Module: Loaded CHAP
Module: Instantiated chap (chap)
Module: Loaded SQL
rlm_sql (sql): Could not link driver rlm_sql_mysql: file not found
rlm_sql (sql): Make sure it (and all its dependent libraries!) are in the
search path of your system's ld.
radiusd.conf[14]: sql: Module instantiation failed.

I go to the ports collection provided with FreeBSD
(/usr/ports/net/freeradius/work/freeradius-0.7) and run the SAME configure
line:
./configure --with-raddbdir=/etc/raddb --with-logdir=/var/log/radius

It builds, installs and loads the sql module with no problem:
[MOCKINGBIRD.ROOT][/usr/ports/net/freeradius/work/freeradius-0.7]# radiusd -x
Starting - reading configuration files ...
Module: Loaded MS-CHAP
Module: Instantiated mschap (mschap)
Module: Loaded preprocess
Module: Instantiated preprocess (preprocess)
Module: Loaded CHAP
Module: Instantiated chap (chap)
Module: Loaded SQL
rlm_sql: Driver rlm_sql_mysql loaded and linked
rlm_sql: Attempting to connect to [EMAIL PROTECTED]:/radius
rlm_sql: starting 0
rlm_sql:  Attempting to connect #0
rlm_sql: Starting connect to MySQL server for #0
rlm_sql:  Connected new DB handle, #0
rlm_sql: starting 1
rlm_sql:  Attempting to connect #1
rlm_sql: Starting connect to MySQL server for #1
rlm_sql:  Connected new DB handle, #1
rlm_sql: starting 2
rlm_sql:  Attempting to connect #2
rlm_sql: Starting connect to MySQL server for #2
rlm_sql:  Connected new DB handle, #2
rlm_sql: starting 3
rlm_sql:  Attempting to connect #3
rlm_sql: Starting connect to MySQL server for #3
rlm_sql:  Connected new DB handle, #3
rlm_sql: starting 4
rlm_sql:  Attempting to connect #4
rlm_sql: Starting connect to MySQL server for #4
rlm_sql:  Connected new DB handle, #4
Module: Instantiated sql (sql)
Module: Loaded files
[/etc/raddb/users]:80 Cistron compatibility checks for entry steve ...
[/etc/raddb/users]:150 Cistron compatibility checks for entry DEFAULT ...
[/etc/raddb/users]:169 Cistron compatibility checks for entry DEFAULT ...
[/etc/raddb/users]:181 Cistron compatibility checks for entry DEFAULT ...
[/etc/raddb/users]:188 Cistron compatibility checks for entry DEFAULT ...
[/etc/raddb/users]:195 Cistron compatibility checks for entry DEFAULT ...
Module: Instantiated files (files)
Module: Loaded realm
Module: Instantiated realm (suffix)
Module: Loaded radutmp
Module: Instantiated radutmp (radutmp)
Initializing the thread pool...
Listening on IP address *, ports 1645/udp and 1646/udp.
Ready to process requests.


I have tried all of the ./configure switches to try and get .8 or .8.1 to
load the rlm_sql_mysql module-but it will not. I KNOW this module is
installing, but when radiusd goes to start it crashes. I REALLY need to
get this working with mysql, but cannot make heads or tails of the
problems I am having...


> On Tue, Jun 17, 2003 at 07:30:57PM -0500, Jeff Thompson - World Net
> Technical Support wrote:
>> Can someone give me some ideas here? 0.7 is the only version I can get
>> to work on FreeBSD, but would like to use .8.1 if it would load the
>> mysql modules. Anyone?
>
> It'd be good if you could post the radiusd -X intermingled with strace
> output.  (Whatever the strace equiv is on FreeBSD.)
>
> /fc
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html




- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to