Hi 
I have the same problem, and  here is the output of
configure error:

#configuring in ./drivers/rlm_sql_mysql
running /bin/sh ./configure 
--with-mysql-include-dir=/usr/local/mysql/include
--with-mysql
-lib-dir=/usr/local/mysql/lib
--cache-file=../.././config.cache --srcdir=.
loading cache ../.././config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a
cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc
-E
checking for compress in -lz... no
checking for mysql/mysql.h... yes
checking for mysql_init in -lmysqlclient... no
configure: warning: mysql libraries not found.  Use
--with-mysql-lib-dir=<path>.
configure: warning: sql submodule 'mysql' disabled
updating cache ../.././config.cache
creating ./config.status
creating Makefile

I creat the file named SQL.c, here is the content:

int main() {
 mysql_init();
 return 0;
 }

and the compiling command is:
# gcc SQL.c -L/usr/local/mysql/lib -lmysqlclient

However, I can't be success.

#Undefined      first referenced
 symbol              in file
socket    /usr/local/mysql/lib/libmysqlclient.a       
          (libmysql.o)
getpeername  /usr/local/mysql/lib/libmysqlclient.a    
             (violite.o)
gethostbyname_r  
/usr/local/mysql/lib/libmysqlclient.a                 
(libmysql.o)
setsockopt    /usr/local/mysql/lib/libmysqlclient.a   
              (violite.o)
getservbyname   /usr/local/mysql/lib/libmysqlclient.a 
                (libmysql.o)
floor     /usr/local/mysql/lib/libmysqlclient.a       
          (password.o)
getsockopt   /usr/local/mysql/lib/libmysqlclient.a    
             (libmysql.o)
inet_addr        /usr/local/mysql/lib/libmysqlclient.a
                 (libmysql.o)
inet_ntoa        
/usr/local/mysql/lib/libmysqlclient.a                 
(my_net.o)
shutdown         
/usr/local/mysql/lib/libmysqlclient.a                 
(violite.o)
connect          /usr/local/mysql/lib/libmysqlclient.a
                 (libmysql.o)
ld: fatal: Symbol referencing errors. No output
written to a.out
collect2: ld returned 1 exit status

I am not familiar with C programming and linker.....
Would you mind to explain clearly the step of your
success.

Regards
K
   
 --- Artur Hecker <[EMAIL PROTECTED]> wrote: > 
> hi
> 
> thanks, i resolved this problem. the part with the
> headers was my own
> error. i had some very restrictive rights set on the
> directory. so, now
> configure finds everything by its own.
> 
> the second part of the problem were the libraries.
> here again, the
> configure script was doing ok ;-) in fact, my system
> didn't have the
> "libz.a", so the initialisation of mysql
> (mysql_init() from
> libmysqlclient.a didn't work).
> 
> if you have problems with your mysql libs although
> all the pathes seem
> correct, you should try to compile a file containing
> 
> 
> // put this in "yourfile"
> int main() {
> mysql_init();
> return 0;
> }
> 
> by using "gcc yourfile -L<pathtothemysqllib>
> -lmysqlclient"...
> 
> it will give you the precise error.
> 
> 
> hope it helps somebody, it took me about an hour :)
> 
> thanks for the help, it is appreciated.
> 
> 
> artur
> 
> 
> 
> -- 
> Artur Hecker                               Groupe Acc�s et Mobilit�
> hecker[at]enst[dot]fr           D�partement Informatique et
> R�seaux
> +33 1 45 81 7507              46, rue Barrault 75634 Paris cedex
> 13
> http://www.infres.enst.fr                                ENST Paris
> 
> - 
> List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html 

_______________________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com.hk address at http://mail.english.yahoo.com.hk

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

Reply via email to