[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freeradius-users
Subject:    Re: Problem with cvs snapshot and postgres
From:       Peter Nixon <listuser () peternixon ! net>
Date:       2002-09-27 11:38:15
[Download RAW message or body]


On Fri, 27 Sep 2002 12:04:48 +0300
Peter Nixon <listuser@peternixon.net> wrote:

> Hi Guys
> 
> I am have built a rpm with the CVS snapshot from 20020923 and everything
> is working fine except for the rlm_sql_postgresql driver.
> 
> # ls -l /usr/lib/rlm_sql*
> lrwxrwxrwx    1 root     root           10 Sep 24 18:36
> /usr/lib/rlm_sql-0.8-pre.la -> rlm_sql.la
> -rw-r--r--    1 root     root       139856 Sep 25 19:04
> /usr/lib/rlm_sql.a-rwxr-xr-x    1 root     root          672 Sep 25 19:04
> /usr/lib/rlm_sql.la-rw-r--r--    1 root     root        50958 Sep 25
> 19:04/usr/lib/rlm_sql_mysql.a
> -rwxr-xr-x    1 root     root          756 Sep 25 19:04
> /usr/lib/rlm_sql_mysql.la
> -rw-r--r--    1 root     root        48606 Sep 27 11:57
> /usr/lib/rlm_sql_postgresql.a
> -rwxr-xr-x    1 root     root          684 Sep 27 11:57
> /usr/lib/rlm_sql_postgresql.la
> -rw-r--r--    1 root     root        50950 Sep 25 19:04
> /usr/lib/rlm_sql_unixodbc.a
> -rwxr-xr-x    1 root     root          745 Sep 25 19:04
> /usr/lib/rlm_sql_unixodbc.la
> 
> It cetainly seems to be in /usr/lib however running radiusd with -x -x
> shows:
> 
> rlm_sql: Could not link driver rlm_sql_postgresql: file not found
> rlm_sql: Make sure it (and all its dependent libraries!) are in the
> search path of your system's ld.
> radiusd.conf[8]: sql: Module instantiation failed.
> 
> I am running on SuSE 8.0 with all available patches and the following
> Postgresql:
> 
> # rpm -qa|grep postgres
> postgresql-odbc-7.2-70
> postgresql-perl-7.2-70
> postgresql-tcl-7.2-70
> postgresql-libs-7.2-70
> postgresql-server-7.2-70
> postgresql-docs-7.2-70
> postgresql-7.2-70
> postgresql-contrib-7.2-70
> postgresql-devel-7.2-70
> postgresql-test-7.2-70
> postgresql-tk-7.2-70
> postgresql-jdbc-7.2-70
> postgresql-python-7.2-70
> 
> Can someone show me a cluestick??

In further news when I do an strace radiusd -x I get the following. Can
anyone tell me why it would be looking for /usr/lib/librlm_sql_postgresql.a
Have I got something wrong in my rpm .spec file causing this??


write(1, "Module: Instantiated detail (det"..., 38Module: Instantiated
detail (detail)
) = 38
open("/usr/lib/rlm_sql.la", O_RDONLY)   = 3
fstat64(3, {st_mode=S_IFREG|0755, st_size=678, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40018000
read(3, "# rlm_sql.la - a libtool library"..., 4096) = 678
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x40018000, 4096)                = 0
time(NULL)                              = 1033126575
write(1, "Module: Loaded SQL \n", 20Module: Loaded SQL
)   = 20
brk(0x8104000)                          = 0x8104000
open("/usr/lib/rlm_sql_postgresql.la", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0755, st_size=691, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40018000
read(3, "# rlm_sql_postgresql.la - a libt"..., 4096) = 691
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x40018000, 4096)                = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=111611, ...}) = 0
old_mmap(NULL, 111611, PROT_READ, MAP_PRIVATE, 3, 0) = 0x404fd000
close(3)                                = 0
open("/lib/i686/librlm_sql_postgresql.a", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/lib/i686", 0xbfffd79c)         = -1 ENOENT (No such file or
directory)
open("/lib/librlm_sql_postgresql.a", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat64("/lib", {st_mode=S_IFDIR|0755, st_size=7792, ...}) = 0
open("/usr/lib/i686/librlm_sql_postgresql.a", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/lib/i686", 0xbfffd79c)     = -1 ENOENT (No such file or
directory)
open("/usr/lib/librlm_sql_postgresql.a", O_RDONLY) = 3
read(3, "!<arch>\n/               10331260"..., 1024) = 1024
close(3)                                = 0
munmap(0x404fd000, 111611)              = 0
time(NULL)                              = 1033126575
write(1, "rlm_sql: Could not link driver r"..., 66rlm_sql: Could not link
driver rlm_sql_postgresql: file not found
) = 66
time(NULL)                              = 1033126575
write(1, "rlm_sql: Make sure it (and all i"..., 101rlm_sql: Make sure it
(and all its dependent libraries!) are in the search path of your system's
ld.
) = 101
time(NULL)                              = 1033126575
write(1, "radiusd.conf[8]: sql: Module ins"..., 52radiusd.conf[8]: sql:
Module instantiation failed.
) = 52
munmap(0x40017000, 4096)                = 0
_exit(1)                                = ?


-- 

Peter Nixon
mailto:peter@peternixon.net
Phone: +90 544 44 333 44
http://www.peternixon.net/
PGP Key: http://www.peternixon.net/public.asc

Beware the leader who bangs the drums of war in order to whip the
citizenry into a patriotic fervor, for patriotism is indeed a
double-edged sword. It both emboldens the blood, just as it narrows
the mind. And when the drums of war have reached a fevered pitch
and the blood boils with hate and the mind has closed, the leader
will have no need in seizing the rights of the citizenry. Rather,
the citizenry, infused with fear and blinded by patriotism, will
offer up all of their rights unto the leader and gladly so. How do
I know? For this is what I have done. And I am Caesar.
		- Julius Caesar

[Attachment #3 (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic