Bug 193830 - freeradius-mysql missing components (rlm_sql_mysql - missing dependent libraries)
freeradius-mysql missing components (rlm_sql_mysql - missing dependent librar...
Status: CLOSED DUPLICATE of bug 161907
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: freeradius (Show other bugs)
3.0
All Linux
medium Severity high
: ---
: ---
Assigned To: Thomas Woerner
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2006-06-01 17:52 EDT by David Herselman
Modified: 2007-11-30 17:07 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-06-07 05:56:44 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Full output from '/usr/sbin/radiusd -X' (10.38 KB, text/plain)
2006-06-01 17:52 EDT, David Herselman
no flags Details
Radius Startup information (strace -f -o log radiusd -X) (10.18 KB, text/plain)
2006-06-06 13:08 EDT, David Herselman
no flags Details
Strace output (strace -f -o log radiusd -X) (72.88 KB, text/plain)
2006-06-06 13:22 EDT, David Herselman
no flags Details

  None (edit)
Description David Herselman 2006-06-01 17:52:02 EDT
Description of problem:
  There appear to be missing components or missing dependencies in the
  freeradius-mysql package which is preventing it from launching

Version-Release number of selected component (if applicable):
  freeradius-mysql-1.0.1-2.RHEL3.2
  freeradius-1.0.1-2.RHEL3.2

How reproducible:
  Always

Steps to Reproduce:
1. rpm -ivh freeradius-1.0.1-2.RHEL3.2
2. rpm -ivh freeradius-mysql-1.0.1-2.RHEL3.2
3. edit /etc/raddb/radiusd.conf and enable SQL components
4. Then launch manually with '/usr/sbin/radiusd -X'
  
Actual results:
  <full log attached>
  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.

Expected results:
  Should communicate with MySQL

Additional info:
  Works fine on a RHEL4 server (installed RHEL4's freeradius rpms and copied
  content of /etc/raddb to RHEL4 server).

  Possible NB: The machine has no development libraries/tools, it's supposed
               to be a pure MySQL/Apache/FreeRadius box.
Comment 1 David Herselman 2006-06-01 17:52:02 EDT
Created attachment 130376 [details]
Full output from '/usr/sbin/radiusd -X'
Comment 2 Thomas Woerner 2006-06-06 11:26:11 EDT
Please "strace -f -o log radiusd -X"
Comment 3 David Herselman 2006-06-06 13:08:47 EDT
Created attachment 130622 [details]
Radius Startup information (strace -f -o log radiusd -X)
Comment 4 David Herselman 2006-06-06 13:10:18 EDT
Attached output from 'strace -f -o log radiusd -X' but it doesn't look much
different from original output logged without running strace. The system this
is running on does not have any development tools on it, would this create a 
problem?
Comment 5 David Herselman 2006-06-06 13:17:30 EDT
This Bugzilla listing appears to match my problem exactly, except that I've
not re-compiled original packages:

Bugzilla ID:      161907
Bugzilla Summary: Could not link driver rlm_sql_mysql: file not found
Link:             https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=161907
Comment 6 David Herselman 2006-06-06 13:22:10 EDT
Uargh, herewith the information you wanted from 'strace' (full log attached):

30873 open("/usr/lib/rlm_sql_mysql.la", O_RDONLY) = -1 ENOENT (No such file or 
directory)
30873 open("/lib/rlm_sql_mysql.la", O_RDONLY) = -1 ENOENT (No such file or 
directory)
30873 open("/usr/lib/rlm_sql_mysql.la", O_RDONLY) = -1 ENOENT (No such file or 
directory)
30873 open("rlm_sql_mysql.la", O_RDONLY) = -1 EACCES (Permission denied)
Comment 7 David Herselman 2006-06-06 13:22:59 EDT
Created attachment 130623 [details]
Strace output (strace -f -o log radiusd -X)
Comment 8 David Herselman 2006-06-06 13:23:50 EDT
Comment on attachment 130622 [details]
Radius Startup information (strace -f -o log radiusd -X)

Attached wrong information
Comment 9 Thomas Woerner 2006-06-07 05:56:44 EDT

*** This bug has been marked as a duplicate of 161907 ***

Note You need to log in before you can comment on or make changes to this bug.