Re: ld.so.1: radiusd: fatal: relocation error: file /usr/local/lib/rlm_sql_mysql-2.1.7.so: symbol mysql_next_result: referenced symbol not found

2010-01-08 Thread Nereida Bernal
Hi Alan.

I've found the library but it is in another path:

/usr/local/mysql-5.0.88-solaris10-sparc/lib/libmysqlclient.a
/usr/local/mysql-5.0.88-solaris10-sparc/lib/libmysqlclient.so
/usr/local/mysql-5.0.88-solaris10-sparc/lib/libmysqlclient.so.15
/usr/local/mysql-5.0.88-solaris10-sparc/lib/libmysqlclient.so.15.0.0
/usr/local/mysql-5.0.88-solaris10-sparc/lib/libmysqlclient_r.a
/usr/local/mysql-5.0.88-solaris10-sparc/lib/libmysqlclient_r.so
/usr/local/mysql-5.0.88-solaris10-sparc/lib/libmysqlclient_r.so.15
/usr/local/mysql-5.0.88-solaris10-sparc/lib/libmysqlclient_r.so.15.0.0

How can I be sure if the dynamic linker can find it?
Regards.

2010/1/8 Alan DeKok :
> Nereida Bernal wrote:
>> I am testing my FreeRADIUS configuration using the NTRadPing Test
>> Utility, but as soon as I send the user/password to the server I get
>> the the error "ld.so.1: radiusd: fatal: relocation error: file
>> /usr/local/lib/rlm_sql_mysql-2.1.7.so: symbol mysql_next_result:
>> referenced symbol not found"  and process radiusd is killed.
>
>  Be sure that you have the libmysqlclient library on your system, and
> that the dynamic linker can find it.
>
>  Alan DeKok.
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>

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


ld.so.1: radiusd: fatal: relocation error: file /usr/local/lib/rlm_sql_mysql-2.1.7.so: symbol mysql_next_result: referenced symbol not found

2010-01-07 Thread Nereida Bernal
Hi all!

I am testing my FreeRADIUS configuration using the NTRadPing Test
Utility, but as soon as I send the user/password to the server I get
the the error "ld.so.1: radiusd: fatal: relocation error: file
/usr/local/lib/rlm_sql_mysql-2.1.7.so: symbol mysql_next_result:
referenced symbol not found"  and process radiusd is killed.

I am not familiar with FreeRADIUS (This is my first installation)
Could you help me?

SUN Netra 210
FreeRADIUS Version 2.1.7
SO Solaris 10
MySQL 5.0.88 (32 bits)
Packages installed:
- SMCdb db  
- SMCgccgcc 
- SMClgcc346libgcc  
- SMClibidl libidl  
- SMClibt   libtool 
- SMCliconv libiconv
- SMCmake   make
- SMCmysql  mysql   
- SMColdap  openldap
- SMCossl   openssl
- SMCsasl   sasl


Here's what I got from the radiusd debug
bash-3.00# rad_recv: Access-Request packet from host 147.1.4.228 port
4138, id=4, length=44
User-Name = "test"
User-Password = "radius123"
+- entering group authorize {...}
++[preprocess] returns ok
++[chap] returns noop
++[mschap] returns noop
[suffix] No '@' in User-Name = "test", looking up realm NULL
[suffix] No such realm "NULL"
++[suffix] returns noop
[eap] No EAP-Message, not doing EAP
++[eap] returns noop
++[unix] returns notfound
++[files] returns noop
++[expiration] returns noop
++[logintime] returns noop
[pap] WARNING! No "known good" password found for the user.
Authentication may fail because of this.
++[pap] returns noop
[sql]   expand: %{User-Name} -> test
[sql] sql_set_user escaped user --> 'test'
rlm_sql (sql): Reserving sql socket id: 4
[sql]   expand: SELECT id, username, attribute, value, op
FROM radcheck   WHERE username = '%{SQL-User-Name}'
ORDER BY id -> SELECT id, username, attribute, value, op
FROM radcheck   WHERE username = 'test'   ORDER BY id
ld.so.1: radiusd: fatal: relocation error: file
/usr/local/lib/rlm_sql_mysql-2.1.7.so: symbol mysql_next_result:
referenced symbol not found

[1]+  Killed  radiusd -X


This is how I executed the configure command:
/opt/RADUIS/FreeRADIUSv2/freeradius/freeradius-server-2.1.7
bash-3.00# ./configure --with-mysql-lib-dir=/usr/local/mysql/lib
--with-mysql-include-dir=/usr/local/mysql/include --with-openssl
--with-openssl-includes=/usr/sfw/include/openssl
--with-openssl-libraries=/usr/sfw/bin/openssl  | grep WARNI
config.status: WARNING:  ./Make.inc.in seems to ignore the --datarootdir setting
config.status: WARNING:  ./src/include/build-radpaths-h.in seems to
ignore the --datarootdir setting
configure: WARNING: silently not building rlm_eap_ikev2.
configure: WARNING: FAILURE: rlm_eap_ikev2 requires:  libeap-ikev2
EAPIKEv2/connector.h.
configure: WARNING: silently not building rlm_eap_peap.
configure: WARNING: FAILURE: rlm_eap_peap requires: OpenSSL.
configure: WARNING: silently not building rlm_eap_tls.
configure: WARNING: FAILURE: rlm_eap_tls requires: OpenSSL.
configure: WARNING: the TNCS library isn't found!
configure: WARNING: silently not building rlm_eap_tnc.
configure: WARNING: FAILURE: rlm_eap_tnc requires:  -lTNCS.
configure: WARNING: silently not building rlm_eap_ttls.
configure: WARNING: FAILURE: rlm_eap_ttls requires: OpenSSL.
configure: WARNING: neither krb5 'k5crypto' nor 'crypto' libraries are found!
configure: WARNING: the comm_err library isn't found!
configure: WARNING: silently not building rlm_krb5.
configure: WARNING: FAILURE: rlm_krb5 requires:  krb5.h.
configure: WARNING: silently not building rlm_otp.
configure: WARNING: FAILURE: rlm_otp requires:  openssl-libs
openssl-includes openssl-includes openssl-includes openssl-includes
openssl-includes.
configure: WARNING: silently not building rlm_perl.
configure: WARNING: FAILURE: rlm_perl requires:  EXTERN.h perl.h
libperl.so libperl.so.
configure: WARNING: silently not building rlm_python.
configure: WARNING: FAILURE: rlm_python requires:  Python.h libpython2.3.
configure: WARNING: silently not building rlm_sql_iodbc.
configure: WARNING: FAILURE: rlm_sql_iodbc requires: libiodbc isql.h.
configure: WARNING: oracle headers not found.  Use
--with-oracle-home-dir=.
configure: WARNING: silently not building rlm_sql_oracle.
configure: WARNING: FAILURE: rlm_sql_oracle requires: oci.h.
configure: WARNING: silently not building rlm_sql_unixodbc.
configure: WARNING: FAILURE: rlm_sql_unixodbc requires: libodbc sql.h.


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


"ld: fatal: file .libs/sql_mysql.o: wrong ELF class: ELFCLASS32" error while running make

2009-12-07 Thread Nereida Bernal
Hi all!

I want to install FreeRADIUS 2.1.7, but while running "make" I get the
error "ld: fatal: file .libs/sql_mysql.o: wrong ELF class: ELFCLASS32"

Version: FreeRADIUS 2.1.7
Host SUN Sparc Netra-210
OS: Solaris2.10
MySQL Pkg: mysql-5.0.88-solaris10-sparc-64bit.pkg.gz

Where can I find the 64 bit libraries? I thought I had them but
apparently I don't, since I am getting the ELFCLASS32 error

See the log below

make[10]: Entering directory
`/opt/RADUIS/FreeRADIUSv2/freeradius/freeradius-server-2.1.7/src/modules/rlm_sql/drivers/rlm_sql_iodbc'
make[10]: Nothing to be done for `all'.
make[10]: Leaving directory
`/opt/RADUIS/FreeRADIUSv2/freeradius/freeradius-server-2.1.7/src/modules/rlm_sql/drivers/rlm_sql_iodbc'
Making all in rlm_sql_mysql...
make[10]: Entering directory
`/opt/RADUIS/FreeRADIUSv2/freeradius/freeradius-server-2.1.7/src/modules/rlm_sql/drivers/rlm_sql_mysql'
/opt/RADUIS/FreeRADIUSv2/freeradius/freeradius-server-2.1.7/libtool
--mode=link gcc -release 2.1.7 \
-module -export-dynamic   -o rlm_sql_mysql.la \
-rpath /usr/local/lib sql_mysql.lo -m64
-L/opt/mysql/mysql/lib -lmysqlclient_r -lz -lpthread -lthread -lposix4
-lresolv -lgen -lsocket -lnsl -lm  -lpthread -lthread
gcc -shared -Wl,-h -Wl,rlm_sql_mysql-2.1.7.so -o
.libs/rlm_sql_mysql-2.1.7.so  .libs/sql_mysql.o
-L/opt/mysql/mysql/lib -lmysqlclient_r -lz -lposix4 -lresolv -lgen
-lsocket -lnsl -lm -lpthread -lthread -lc  -m64
ld: fatal: file .libs/sql_mysql.o: wrong ELF class: ELFCLASS32
ld: fatal: File processing errors. No output written to
.libs/rlm_sql_mysql-2.1.7.so
collect2: ld returned 1 exit status
make[10]: *** [rlm_sql_mysql.la] Error 1
make[10]: Leaving directory
`/opt/RADUIS/FreeRADIUSv2/freeradius/freeradius-server-2.1.7/src/modules/rlm_sql/drivers/rlm_sql_mysql'
make[9]: *** [common] Error 2
make[9]: Leaving directory
`/opt/RADUIS/FreeRADIUSv2/freeradius/freeradius-server-2.1.7/src/modules/rlm_sql/drivers'
make[8]: *** [all] Error 2
make[8]: Leaving directory
`/opt/RADUIS/FreeRADIUSv2/freeradius/freeradius-server-2.1.7/src/modules/rlm_sql/drivers'
make[7]: *** [common] Error 2
make[7]: Leaving directory
`/opt/RADUIS/FreeRADIUSv2/freeradius/freeradius-server-2.1.7/src/modules/rlm_sql'
make[6]: *** [build-module] Error 2
make[6]: Leaving directory
`/opt/RADUIS/FreeRADIUSv2/freeradius/freeradius-server-2.1.7/src/modules/rlm_sql'
make[5]: *** [common] Error 2
make[5]: Leaving directory
`/opt/RADUIS/FreeRADIUSv2/freeradius/freeradius-server-2.1.7/src/modules'
make[4]: *** [all] Error 2
make[4]: Leaving directory
`/opt/RADUIS/FreeRADIUSv2/freeradius/freeradius-server-2.1.7/src/modules'
make[3]: *** [common] Error 2
make[3]: Leaving directory
`/opt/RADUIS/FreeRADIUSv2/freeradius/freeradius-server-2.1.7/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/opt/RADUIS/FreeRADIUSv2/freeradius/freeradius-server-2.1.7/src'
make[1]: *** [common] Error 2
make[1]: Leaving directory
`/opt/RADUIS/FreeRADIUSv2/freeradius/freeradius-server-2.1.7'
make: *** [all] Error 2


Could you help me please?
Regards
Nere
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Process radiusd won't start after installation (Solaris 10)

2009-11-26 Thread Nereida Bernal
Never mind I exported the PATH where the file is and the radiusd
process started

# export LD_LIBRARY_PATH="/usr/lib:/usr/local/lib"

Thanks!

2009/11/26 Nereida Bernal :
> SO: Solaris 10
> Version: 2.1.7
>
> Hi all!
>
> I installed freeradius on my server following the instructions in the
> INSTALL file. After the "make install" I tried to start the radiusd
> process in debug mode but I got the following error:
>
> bash-3.00# /usr/local/sbin/radiusd -X
>
> ld.so.1: radiusd: fatal: libgcc_s.so.1: open failed: No such file or directory
>
> Killed
>
> I looked for the missing file in the server but none of them worked
> bash-3.00# find / -name libgcc_s.so.1
> /usr/lib/AdobeReader/Adobe/Reader8/Reader/sparcsolaris/lib/libgcc_s.so.1
> /usr/sfw/lib/sparcv9/libgcc_s.so.1
> /usr/sfw/lib/libgcc_s.so.1
> /usr/local/lib/libgcc_s.so.1
> /usr/local/lib/sparcv9/libgcc_s.so.1
>
>
> If you need the installation logs please let me know, I am new with
> the freeRADIUS I hope you can help me with this.
>
> Regards
>
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Process radiusd won't start after installation (Solaris 10)

2009-11-26 Thread Nereida Bernal
SO: Solaris 10
Version: 2.1.7

Hi all!

I installed freeradius on my server following the instructions in the
INSTALL file. After the "make install" I tried to start the radiusd
process in debug mode but I got the following error:

bash-3.00# /usr/local/sbin/radiusd -X

ld.so.1: radiusd: fatal: libgcc_s.so.1: open failed: No such file or directory

Killed

I looked for the missing file in the server but none of them worked
bash-3.00# find / -name libgcc_s.so.1
/usr/lib/AdobeReader/Adobe/Reader8/Reader/sparcsolaris/lib/libgcc_s.so.1
/usr/sfw/lib/sparcv9/libgcc_s.so.1
/usr/sfw/lib/libgcc_s.so.1
/usr/local/lib/libgcc_s.so.1
/usr/local/lib/sparcv9/libgcc_s.so.1


If you need the installation logs please let me know, I am new with
the freeRADIUS I hope you can help me with this.

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