no entries in radacct

John Millican jmillican at sentinelcommunications.com
Mon Apr 13 17:23:07 CEST 2009


Ivan Kalik wrote:
>> 'rlm_counter': rlm_counter.so: cannot open shared object file: No such file
> or directory
> 
> This is in the FAQ. Fix your linker PATH.
> 
> Ivan Kalik
> Kalik Informatika ISP

OK I read the section that says:
 "Could not link ... file not found", what do I do?
and I have in ld.so.conf the paths to the SQL libs in /usr/local/pgsql I
also have the normal /usr/local/lib and /usr/local/lib64
Also the sql module is loading as evidenced by the fact that the users
are authorizing against the postgresql DB.  I know I must be missing
something simple but I do not know what.  What libs am I looking for for
the rlm_counter to build if not the postgresql libs?
I even did an export of the postgresql libs reran configure and make
found this in the make output:
Making all in rlm_sqlcounter...
gmake[6]: Entering directory
`/home/jmillican/installs/freeradius-server-2.1.4/src/modules/rlm_sqlcounter'
for x in .libs/* rlm_sqlcounter.la; do \
                rm -rf
/home/jmillican/installs/freeradius-server-2.1.4/src/modules/lib/$x; \
                ln -s
/home/jmillican/installs/freeradius-server-2.1.4/src/modules/rlm_sqlcounter/$x
/home/jmillican/installs/freeradius-server-2.1.4/src/modules/lib/$x; \
        done
gmake[6]: Leaving directory
`/home/jmillican/installs/freeradius-server-2.1.4/src/modules/rlm_sqlcounter'



then from make install:
gmake[6]: Entering directory
`/home/jmillican/installs/freeradius-server-2.1.4/src/modules/rlm_sqlcounter'
if [ "xrlm_sqlcounter" != "x" ]; then \
            /home/jmillican/installs/freeradius-server-2.1.4/libtool
--mode=install
/home/jmillican/installs/freeradius-server-2.1.4/install-sh -c -c \
                rlm_sqlcounter.la /usr/local/lib/rlm_sqlcounter.la ||
exit $?; \
            rm -f /usr/local/lib/rlm_sqlcounter-2.1.5.la; \
            ln -s rlm_sqlcounter.la
/usr/local/lib/rlm_sqlcounter-2.1.5.la || exit $?; \
        fi
libtool: install: warning: relinking `rlm_sqlcounter.la'
(cd
/home/jmillican/installs/freeradius-server-2.1.4/src/modules/rlm_sqlcounter;
/bin/sh /home/jmillican/installs/freeradius-server-2.1.4/libtool
--mode=relink gcc -release 2.1.5 -module -export-dynamic -o
rlm_sqlcounter.la -rpath /usr/local/lib rlm_sqlcounter.lo
rlm_sqlcounter.c
/home/jmillican/installs/freeradius-server-2.1.4/src/lib/libfreeradius-radius.la
-lnsl -lresolv -lpthread )
gcc -shared  .libs/rlm_sqlcounter.o  -L/usr/local/lib
-lfreeradius-radius -lnsl -lresolv -lpthread  -Wl,-soname
-Wl,rlm_sqlcounter-2.1.5.so -o .libs/rlm_sqlcounter-2.1.5.so
/home/jmillican/installs/freeradius-server-2.1.4/install-sh -c -c
.libs/rlm_sqlcounter-2.1.5.soT /usr/local/lib/rlm_sqlcounter-2.1.5.so
(cd /usr/local/lib && { ln -s -f rlm_sqlcounter-2.1.5.so
rlm_sqlcounter.so || { rm -f rlm_sqlcounter.so && ln -s
rlm_sqlcounter-2.1.5.so rlm_sqlcounter.so; }; })
/home/jmillican/installs/freeradius-server-2.1.4/install-sh -c -c
.libs/rlm_sqlcounter.lai /usr/local/lib/rlm_sqlcounter.la
/home/jmillican/installs/freeradius-server-2.1.4/install-sh -c -c
.libs/rlm_sqlcounter.a /usr/local/lib/rlm_sqlcounter.a
chmod 644 /usr/local/lib/rlm_sqlcounter.a
ranlib /usr/local/lib/rlm_sqlcounter.a
PATH="$PATH:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
gmake[6]: Leaving directory
`/home/jmillican/installs/freeradius-server-2.1.4/src/modules/rlm_sqlcounter'

Could it be that radiusd is looking for rlm_counter.so while what I
actualy have is rlm_sqlcounter.so
If this is the case is it due to a config error on my part?

-- 
JohnM






More information about the Freeradius-Users mailing list