Hi, As I had the sam compiling problem a few days ago, WIth the help of this list I resolved it by forcing the 'libdir' param in radiusd.conf
Nicolas ----- Original Message ----- From: "Joe Maimon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, January 13, 2002 10:16 PM Subject: Re: compiling rlm_sql_mysql > fixed the #$%^*! > My bad as usual > need to install Mysql-shared rpm package! > > Thanks > > Kevin wrote: > > > On Sat, 12 Jan 2002, Joe Maimon wrote: > > > Hey all, > > > > > > I have been poking around a few hours trying to get the rlm_sql module > > > to run..this is the error from radiusd -xx > > > > > > rlm_sql: Could not link driver rlm_sql_mysql: file not found > > > rlm_sql: Make sure it (and all its dependent libraries!) are in the > > > search path of your sy > > > stem's ld. > > > radiusd.conf[4]: sql: Module instantiation failed. > > > > > > So I got the mysql-3.23.devel rpm and installed, ran configure again and > > > compiled freeradius again. This is what I get as pertains to rlm_sql- > > > > > > /home/joe/download/radius/freeradius-snapshot-20020111/libtool > > > --mode=compile gcc -g -O2 > > > -D_REENTRANT -Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith -Wcast-qual > > > -Wcast-align -Wwr > > > ite-strings -Wstrict-prototypes -Wmissing-prototypes > > > -Wmissing-declarations -Wnested-exter > > > ns -I../.. -I../../../../include -c sql_mysql.c > > > mkdir .libs > > > gcc -g -O2 -D_REENTRANT -Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith > > > -Wcast-qual -Wcast > > > -align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes > > > -Wmissing-declarations -Wn > > > ested-externs -I../.. -I../../../../include -c sql_mysql.c -fPIC -DPIC > > > -o .libs/sql_mysql > > > .lo > > > gcc -g -O2 -D_REENTRANT -Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith > > > -Wcast-qual -Wcast > > > -align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes > > > -Wmissing-declarations -Wn > > > ested-externs -I../.. -I../../../../include -c sql_mysql.c -o > > > sql_mysql.o >/dev/null 2>&1 > > > mv -f .libs/sql_mysql.lo sql_mysql.lo > > > /home/joe/download/radius/freeradius-snapshot-20020111/libtool > > > --mode=link gcc -module -ex > > > port-dynamic -g -O2 -D_REENTRANT -Wall -D_GNU_SOURCE -g -Wshadow > > > -Wpointer-arith -Wcast-q > > > ual -Wcast-align -Wwrite-strings -Wstrict-prototypes > > > -Wmissing-prototypes -Wmissing-declar > > > ations -Wnested-externs -I../.. -I../../../../include \ > > > -o rlm_sql_mysql.la -rpath /usr/local/lib sql_mysql.lo -L/usr/lib/mysql > > > -lmysqlclient -l > > > z > > > rm -fr .libs/rlm_sql_mysql.la .libs/rlm_sql_mysql.* > > > .libs/rlm_sql_mysql.* > > > > > > *** Warning: This library needs some functionality provided by > > > -lmysqlclient. > > > *** I have the capability to make that library automatically link in > > > when > > > *** you link to this library. But I can only do this if you have a > > > *** shared version of the library, which you do not appear to have. > > > > > > *** Warning: libtool could not satisfy all declared inter-library > > > *** dependencies of module rlm_sql_mysql. Therefore, libtool will > > > create > > > *** a static module, that should work as long as the dlopening > > > *** application is linked with the -dlopen flag. > > > /usr/bin/ar cru .libs/rlm_sql_mysql.a sql_mysql.o > > > ranlib .libs/rlm_sql_mysql.a > > > creating rlm_sql_mysql.la > > > (cd .libs && rm -f rlm_sql_mysql.la && ln -s ../rlm_sql_mysql.la > > > rlm_sql_mysql.la) > > > > > > I have tried passing configure the mysl lib and include dirs- no luck > > > there. My system is a stock RedHat 7.0 > > > And yes - I am a newbie > > > > > > Thanks Much! > > > Joe > > > > > > > > > - > > > List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html > > > > Try using just /usr/lib instead of /usr/lib/mysql. > > > > Kevin Bonner > > > > - > > List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html > > > - > List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html > - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html