On Tue, Jun 17, 2003 at 10:40:57PM -0500, Jeff wrote:
> [MOCKINGBIRD.ROOT][/home/jefft]# strace -e open radiusd

really should have done radiusd -X, but still the info here is good:

> open("/usr/local/lib/libradius-0.7.so", O_RDONLY) = 3

first of all, this is freeradius 0.7, not 0.8.1 or CVS (CVS will say
0.8.1 as well)

...

> open("/usr/local/lib/rlm_sql.la", O_RDONLY) = 5
> open("/usr/local/lib/rlm_sql.a", O_RDONLY) = 5
> open("/usr/local/lib/rlm_sql-0.7.so", O_RDONLY) = 5
> open("/usr/local/lib/rlm_sql_mysql.la", O_RDONLY) = 5
> open("/usr/local/lib/libz.la", O_RDONLY) = -1 ENOENT (No such file or
> directory)

Can you show me the contents of /usr/local/lib/rlm_sql_mysql.la ?
(It's a text file)

> open("/usr/local/lib/libz.la", O_RDONLY) = -1 ENOENT (No such file or
> directory)
> open("/usr/local/lib/libz.la", O_RDONLY) = -1 ENOENT (No such file or
> directory)
> open("/lib/libz.la", O_RDONLY)          = -1 ENOENT (No such file or
> directory)
> open("/usr/lib/libz.la", O_RDONLY)      = -1 ENOENT (No such file or
> directory)
> open("libz.la", O_RDONLY)               = -1 ENOENT (No such file or
> directory)
> open("/usr/local/lib/libmysqlclient.la", O_RDONLY) = -1 ENOENT (No such file
> or directory)
> open("/usr/local/lib/libmysqlclient.la", O_RDONLY) = -1 ENOENT (No such file
> or directory)
> open("/usr/local/lib/libmysqlclient.la", O_RDONLY) = -1 ENOENT (No such file
> or directory)
> open("/lib/libmysqlclient.la", O_RDONLY) = -1 ENOENT (No such file or
> directory)
> open("/usr/lib/libmysqlclient.la", O_RDONLY) = -1 ENOENT (No such file or
> directory)
> open("libmysqlclient.la", O_RDONLY)     = -1 ENOENT (No such file or
> directory)

So the problem should be clear ... the mysql lib either cannot be
found, or the runtime linker is not configured properly, or the library
path is not encoded into the rlm_sql_mysql library properly.

> open("/usr/local/lib/rlm_sql_mysql.a", O_RDONLY) = 5
> open("/usr/local/lib/rlm_sql_mysql.so.0", O_RDONLY) = 5

This is not a versioned library; an indicator that this is not the CVS
freeradiusd.  (But we already knew that.)

> open("/usr/lib/libmysqlclient.so.10", O_RDONLY) = 5
> open("/usr/lib/libz.so.2", O_RDONLY)    = 5

So here, you can see libz was found.  It's hard to tell exactly from
this trace, but it's likely that this one is found because the system
libmysqlclient is correct while the freeradius module is incorrect
(regarding the library path).

You'll need to post 0.8.1 results (or preferrably CVS) for me to go
further.  I'm not interested in looking at 0.7 issues.

/fc

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

Reply via email to