Re: Freeradius cannot find rlm_sql_postgresql driver!

2006-04-06 Thread Nicolas Baradakis
lmyho wrote:

 I am trying to test the freeradius to work with postgresql database.
 Just installed freeradius 1.1.0 on debian system via 'aptitude
 install' command of debian.

 [...]

  Error: rlm_sql (sql): Could not link driver rlm_sql_postgresql:
 rlm_sql_postgresql.so: cannot open shared object file: No such file or 
 directory

The licenses of PostgreSQL and FreeRADIUS are incompatible, therefore
Debian doesn't distribute a binary version of the PostgreSQL module.

You could build a Debian package from source with the tarball of
FreeRADIUS 1.1.1 from www.freeradius.org. The FAQ explains how
to do this:

http://wiki.freeradius.org/index.php/FreeRADIUS_Wiki:FAQ

-- 
Nicolas Baradakis

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Freeradius cannot find rlm_sql_postgresql driver!

2006-04-06 Thread Peter Nixon
On Thu 06 Apr 2006 11:58, Nicolas Baradakis wrote:
 lmyho wrote:
  I am trying to test the freeradius to work with postgresql database.
  Just installed freeradius 1.1.0 on debian system via 'aptitude
  install' command of debian.
 
  [...]
 
   Error: rlm_sql (sql): Could not link driver rlm_sql_postgresql:
  rlm_sql_postgresql.so: cannot open shared object file: No such file or
  directory

 The licenses of PostgreSQL and FreeRADIUS are incompatible, therefore
 Debian doesn't distribute a binary version of the PostgreSQL module.

Since when is the BSD license incompatible with the GPL??

-- 

Peter Nixon
http://www.peternixon.net/
PGP Key: http://www.peternixon.net/public.asc


pgpWWdtdzfP4Y.pgp
Description: PGP signature
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Freeradius cannot find rlm_sql_postgresql driver!

2006-04-06 Thread lmyho


--- Nicolas Baradakis [EMAIL PROTECTED] wrote:

 lmyho wrote:
 
  I am trying to test the freeradius to work with postgresql database.
  Just installed freeradius 1.1.0 on debian system via 'aptitude
  install' command of debian.
 
  [...]
 
   Error: rlm_sql (sql): Could not link driver rlm_sql_postgresql:
  rlm_sql_postgresql.so: cannot open shared object file: No such file or 
  directory
 
 The licenses of PostgreSQL and FreeRADIUS are incompatible, therefore
 Debian doesn't distribute a binary version of the PostgreSQL module.
 
 You could build a Debian package from source with the tarball of
 FreeRADIUS 1.1.1 from www.freeradius.org. The FAQ explains how
 to do this:
 
 http://wiki.freeradius.org/index.php/FreeRADIUS_Wiki:FAQ

Hi Nicolas, 
Thanks very much for telling me this!  I built the pkgs from tarball-1.1.1...  
But I
got tons of warnings in the building process, tons of them!  Just list a few 
below. 
Just want to know: with so many warnings, do the pkgs I built still usable?  
Thanks
a lot for advising!!   Please see the list (only picked a few) below:

radius.c: In function 'make_secret':
radius.c:167: warning: pointer targets in passing argument 2 of 
'librad_MD5Update'
differ in signedness
radius.c: In function 'make_passwd':
radius.c:205: warning: pointer targets in passing argument 2 of 
'librad_MD5Update'
differ in signedness
radius.c: In function 'make_tunnel_passwd':
radius.c:294: warning: pointer targets in passing argument 2 of 
'librad_MD5Update'
differ in signedness

rlm_passwd.c: In function 'build_hash_table':
rlm_passwd.c:218: warning: pointer targets in passing argument 1 of 'hash' 
differ in
signedness
rlm_passwd.c:232: warning: pointer targets in passing argument 1 of 'hash' 
differ in
signedness
rlm_passwd.c: In function 'get_pw_nam':
rlm_passwd.c:299: warning: pointer targets in passing argument 1 of 'hash' 
differ in
signedness
rlm_passwd.c: In function 'passwd_authorize':
rlm_passwd.c:536: warning: pointer targets in assignment differ in signedness
rlm_preprocess.c: In function 'cisco_vsa_hack':
rlm_preprocess.c:126: warning: pointer targets in passing argument 1 of
'__builtin_strchr' differ in signedness
rlm_preprocess.c:144: warning: pointer targets in assignment differ in 
signedness
rlm_preprocess.c: In function 'rad_mangle':
rlm_preprocess.c:203: warning: pointer targets in passing argument 1 of
'__builtin_strchr' differ in signedness
rlm_preprocess.c:206: warning: pointer targets in passing argument 1 of 'strcpy'
differ in signedness
rlm_preprocess.c: In function 'huntgroup_access':
rlm_preprocess.c:375: warning: pointer targets in passing argument 1 of 
'strNcpy'
differ in signedness
rlm_preprocess.c:376: warning: pointer targets in passing argument 1 of 'strlen'
differ in signedness
rlm_preprocess.c: In function 'add_nas_attr':
rlm_preprocess.c:404: warning: pointer targets in passing argument 1 of
'ip_hostname' differ in signedness
rlm_preprocess.c:425: warning: pointer targets in passing argument 1 of
'ip_hostname' differ in signedness
rlm_radutmp.c: In function 'radutmp_checksimul':
rlm_radutmp.c:658: warning: pointer targets in assignment differ in signedness
rlm_realm.c: In function 'check_for_realm':
rlm_realm.c:209: warning: pointer targets in passing argument 1 of 'strcpy' 
differ
in signedness
rlm_sql.c: In function 'sql_groupcmp':
rlm_sql.c:564: warning: pointer targets in passing argument 1 of 'strlen' 
differ in
signedness
rlm_sql.c:564: warning: pointer targets in passing argument 2 of 
'__builtin_strcmp'
differ in signedness
rlm_sql.c:564: warning: pointer targets in passing argument 2 of 
'__builtin_strcmp'
differ in signedness
rlm_sql.c:564: warning: pointer targets in passing argument 1 of 'strlen' 
differ in
signedness
rlm_sql.c:564: warning: pointer targets in passing argument 2 of 
'__builtin_strcmp'
differ in signedness
rlm_sql.c:564: warning: pointer targets in passing argument 2 of 
'__builtin_strcmp'
differ in signedness
rlm_sql.c: In function 'rlm_sql_authorize':
rlm_sql.c:824: warning: pointer targets in assignment differ in signedness
rlm_sql.c: In function 'rlm_sql_checksimul':
rlm_sql.c:1227: warning: pointer targets in assignment differ in signedness

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Freeradius cannot find rlm_sql_postgresql driver!

2006-04-06 Thread Nicolas Baradakis
Peter Nixon wrote:

  The licenses of PostgreSQL and FreeRADIUS are incompatible, therefore
  Debian doesn't distribute a binary version of the PostgreSQL module.

 Since when is the BSD license incompatible with the GPL??

The old / original BSD license is not compatible.
http://www.gnu.org/licenses/license-list.html#GPLIncompatibleLicenses

-- 
Nicolas Baradakis

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Freeradius cannot find rlm_sql_postgresql driver!

2006-04-05 Thread lmyho
Hello All, 

I am trying to test the freeradius to work with postgresql database.  Just 
installed
freeradius 1.1.0 on debian system via 'aptitude install' command of debian. The
radiusd.conf file was modified to work with postgresql and the postgresql.conf 
file
also put in the position for FR to use.  

However, when I issued command to start the FR, the radius server did not 
start!  In
the log file, it shows: 
 Error: rlm_sql (sql): Could not link driver rlm_sql_postgresql:
rlm_sql_postgresql.so: cannot open shared object file: No such file or directory
 Error: rlm_sql (sql): Make sure it (and all its dependent libraries!) are in 
the
search path of your system's ld.
 Error: radiusd.conf[6]: sql: Module instantiation failed.
 Error: radiusd.conf[] Unknown module sql.
 Error: radiusd.conf[1106] Failed to parse authorize section.

The last three entries seems like just the consiquences of cannot find the
postgresql driver.  But the first two entries make me panic! In my 
postgresql.conf
file, the driver is listed as driver=rlm_sql_postgresql as indicated by FR.  
But
why I got the err of 'cannot open shared object file: No such file or 
directory'?

Please can anyone tell what is happenning?  And what should I do now??  Where 
is the
rlm_sql_postgresql driver??  pretty panic:(  Help!!

Highly appreciate any help from you!!  Thanks!!!

leo

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html