I have loaded Fr 0.8 and MySQL 11.18 dist
3.23.52 on a RedHat 8 box.
Fr works well with a flat file, but when I
try to config Fr to use MySQL as per SB's
very rough notes to FR & MySQL I get the
following error.
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 syste
m's ld.
radiusd.conf[11]: sql: Module instantiation
failed.
This is described in the FAQ, but there
exists a mysql folder with 2 files in the
/etc/lib directory.
When I looked at the config.log I saw the
following
configure:3142: gcc -c -g -O2 -fno-rtti
-fno-exceptions -c conftest.c conftest.c 1>&5
configure:3173: checking whether the linker
(/usr/bin/ld) supports shared libraries
configure:3861: checking how to hardcode
library paths into programs
configure:3893: checking whether stripping
libraries is possible
configure:3911: checking dynamic linker
characteristics
configure:4312: checking if libtool supports
shared libraries
configure:4320: checking whether to build
shared libraries
configure:4347: checking whether to build
static libraries
configure:4390: checking for shl_load
configure:4418: gcc -o conftest -g -O2
conftest.c 1>&5
/tmp/ccEvuqYi.o: In function `main':
/Data/freeradius-0.8/configure:4412:
undefined reference to `shl_load'
collect2: ld returned 1 exit status
configure: failed program was:
#line 4395 "configure"
#include "confdefs.h"
/* System header to define __stub macros and
hopefully few prototypes,
which can conflict with char shl_load();
below. */
#include <assert.h>
/* Override any gcc2 internal prototype to
avoid an error. */
/* We use char because int might match the
return type of a gcc2
builtin and then its argument prototype
would still apply. */
char shl_load();
int main() {
/* The GNU C library defines this for
functions which it implements
to always fail with ENOSYS. Some
functions are actually named
something starting with __ and the normal
name is an alias. */
#if defined (__stub_shl_load) || defined
(__stub___shl_load)
choke me
#else
shl_load();
#endif
; return 0; }
configure:4436: checking for shl_load in -ldld
configure:4455: gcc -o conftest -g -O2
conftest.c -ldld 1>&5
/usr/bin/ld: cannot find -ldld
collect2: ld returned 1 exit status
configure: failed program was:
#line 4444 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to
avoid an error. */
/* We use char because int might match the
return type of a gcc2
builtin and then its argument prototype
would still apply. */
char shl_load();
int main() {
shl_load()
; return 0; }
configure:4474: checking for dlopen
configure:4502: gcc -o conftest -g -O2
conftest.c 1>&5
/tmp/ccWqLSuL.o: In function `main':
/Data/freeradius-0.8/configure:4496:
undefined reference to `dlopen'
collect2: ld returned 1 exit status
configure: failed program was:
#line 4479 "configure"
#include "confdefs.h"
/* System header to define __stub macros and
hopefully few prototypes,
which can conflict with char dlopen();
below. */
#include <assert.h>
/* Override any gcc2 internal prototype to
avoid an error. */
/* We use char because int might match the
return type of a gcc2
builtin and then its argument prototype
would still apply. */
char dlopen();
int main() {
/* The GNU C library defines this for
functions which it implements
to always fail with ENOSYS. Some
functions are actually named
something starting with __ and the normal
name is an alias. */
#if defined (__stub_dlopen) || defined
(__stub___dlopen)
choke me
#else
dlopen();
#endif
; return 0; }
configure:4520: checking for dlopen in -ldl
configure:4539: gcc -o conftest -g -O2
conftest.c -ldl 1>&5
configure:4671: checking whether a program
can dlopen itself
configure:4742: gcc -o conftest -g -O2
-DHAVE_DLFCN_H -Wl,--export-dynamic
conftest.c -ldl 1>&5
configure:4765: checking whether a statically
linked program can dlopen itself
configure:4836: gcc -o conftest -g -O2
-DHAVE_DLFCN_H -Wl,--export-dynamic -static
conftest.c -ldl 1>&5
configure:4887: checking whether -lc should
be explicitly linked in
configure:4894: gcc -c -g -O2 conftest.c 1>&5
configure:4907: gcc -shared conftest.o -v
-Wl,-soname -Wl,conftest -o conftest 2>&1 |
grep -lc >/dev/null 2>&1
Where do I go from here?
Mike Paneth
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html