From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050523 Red Hat/1.7.8-1.1.3.1 Description of problem: After compiling the packet when trying to start freeradius I receive this: sql: safe-characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /" rlm_sql (sql1): Could not link driver rlm_sql_mysql: file not found rlm_sql (sql1): Make sure it (and all its dependent libraries!) are in the search path of your system's ld. radiusd.conf[14]: sql1: Module instantiation failed. Version-Release number of selected component (if applicable): freeradius-1.0.1-1.1.RHEL3 How reproducible: Always Steps to Reproduce: 1.radiusd -X 2. 3. Actual Results: The program refuses to start. Additional info:
Why are you recompiling the package?
Partly because I need the sqlcounter module also, partly because I'm not subscribed to RH Network so I compile from source all the updates. The above described problem appears also if the unmodified source package is compiled.
*** Bug 161909 has been marked as a duplicate of this bug. ***
Have you installed the freeradius-mysql package which contains rlm_sql_mysql.?
Yes, and all the necessary files are present.
I also encountered this issue, when i copy the file from /usr/src/redhat/BUILD/freeradius-1.0.1/src/modules/rlm_sql/drivers/lib/rlm_sql_mysql.la to /usr/lib freeradius starts and at first glance it seems to work.
Sorry forgot to add, I don't know what's causing it, but strace radiusd -f -X told me he couldn't find the file and I found it in the build directory ;-) So let's call it a workaround ...
You have to use the .so file, not the .la. Please verify this problem with the original packages.
I'm running Red Hat Enterprise Linux AS release 3 (Taroon Update 5) and the following packages are installed freeradius-1.0.1-1.1.RHEL3 freeradius-mysql-1.0.1-1.1.RHEL3 /sbin/service radius start gives the following in /var/log/radius/radius.log Wed Jul 27 16:53:12 2005 : Error: rlm_sql (sql): Could not link driver rlm_sql_mysql: file not found Wed Jul 27 16:53:12 2005 : Error: rlm_sql (sql): Make sure it (and all its dependent libraries!) are in the search path of your system's ld. Wed Jul 27 16:53:12 2005 : Error: radiusd.conf[14]: sql: Module instantiation failed. Running strace gives open("/usr/lib/rlm_sql_mysql.la", O_RDONLY) = -1 ENOENT (No such file or directory) The system has /usr/lib/rlm_sql_mysql.so (provided by freeradius-mysql) but not /usr/lib/rlm_sql_mysql.la
I'm experiencing the same problem with freeradius-1.0.1-2.RHEL3.2 and freeradius-mysql-1.0.1-2.RHEL3.2. Any reason this bug hasn't been fixed (Been almost a year now)?
*** Bug 193830 has been marked as a duplicate of this bug. ***
Please have a look at http://people.redhat.com/twoerner/BZ/3.0E/freeradius-1.0.1-2.RHEL3.3.src.rpm BTW: There was no freeradius-mysql package in RHEL-3. This package should resolve the problem. ---- Please remeber that this is a test package, which might be pushed out as an update package later if the fixes are ok. For now, this package is unsupported.
Here is the correct link: http://people.redhat.com/twoerner/BZ/161907/freeradius-1.0.1-2.RHEL3.3.src.rpm
Many thanks, the compiled package works perfectly!
I am closing this, becaus there was no freeradius-mysql for RHEL-3.