Re: Compiling freeradius 1.1.1 in FreeBSD 6.0 with mysql support

2006-04-06 Thread Nicolas Baradakis
Mark Hennessy wrote:

 checking for mysql_init in -lmysqlclient_r (using mysql_config)... no
 checking for mysql_init in -lmysqlclient_r... no

FreeRADIUS requires the thread-safe version of the MySQL client library,
unless you configure it with the option --without-threads.

 It's not seeing mysql libraries, but they do indeed exist:
 # ls -al /usr/local/mysql/lib/mysql
 total 1974
 drwxr-xr-x  2 root  wheel 512 Apr  5 10:39 .
 drwxr-xr-x  3 root  wheel 512 Apr  5 10:39 ..
 -rw-r--r--  1 root  wheel   14446 Apr  5 10:39 libdbug.a
 -rw-r--r--  1 root  wheel   41928 Apr  5 10:39 libheap.a
 -rw-r--r--  1 root  wheel   13640 Apr  5 10:39 libmerge.a
 -rw-r--r--  1 root  wheel  331488 Apr  5 10:39 libmyisam.a
 -rw-r--r--  1 root  wheel   24934 Apr  5 10:39 libmyisammrg.a
 -rw-r--r--  1 root  wheel  472466 Apr  5 10:39 libmysqlclient.a
 -rwxr-xr-x  1 root  wheel 871 Apr  5 10:39 libmysqlclient.la
 lrwxr-xr-x  1 root  wheel  20 Apr  5 10:39 libmysqlclient.so -
 libmysqlclient.so.14
 -rwxr-xr-x  1 root  wheel  387482 Apr  5 10:39 libmysqlclient.so.14
 -rw-r--r--  1 root  wheel  237570 Apr  5 10:39 libmystrings.a
 -rw-r--r--  1 root  wheel  253852 Apr  5 10:39 libmysys.a
 -rw-r--r--  1 root  wheel  105640 Apr  5 10:39 libnisam.a
 -rw-r--r--  1 root  wheel5472 Apr  5 10:39 libvio.a

I don't see the file libmysqlclient_r.so in your setup.
Re-install MySQL with thread support, or configure FreeRADIUS without
thread support.

-- 
Nicolas Baradakis

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


Re: Compiling freeradius 1.1.1 in FreeBSD 6.0 with mysql support

2006-04-06 Thread Guy Fraser
On Wed, 2006-05-04 at 13:08 -0400, Alan DeKok wrote:
 Mark Hennessy [EMAIL PROTECTED] wrote:
  I'm trying to build freeradius 1.1.1 on a FreeBSD 6.0 system with MySQL
  4.1.15
 
   Doesn't the ports system work?

That exactly what I was thinking.

The port was updated on Mar. 28

 
  checking for mysql_init in -lmysqlclient_r (using mysql_config)... no
 
   See the config.log for details.  Maybe libmysqlclient_r needs
 additional libraries for it to work.
 


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


Compiling freeradius 1.1.1 in FreeBSD 6.0 with mysql support

2006-04-05 Thread Mark Hennessy
I'm trying to build freeradius 1.1.1 on a FreeBSD 6.0 system with MySQL
4.1.15

I'm using the following configure commandline:
./configure --with-mysql-lib=/usr/local/mysql/lib/mysql
--with-mysql-include=/usr/local/mysql/include/mysql
--prefix=/usr/local/adm/freeradius-1.1.1

I'd include the full output, but I figure that I should only do that if
asked.
Here's the problematic section:

configuring in ./drivers/rlm_sql_mysql
running /bin/sh ./configure  --with-mysql-lib-dir=/usr/local/mysql/lib/mysql
--with-mysql-include-dir=/usr/local/mysql/include/mysql
--prefix=/usr/local/adm/freeradius-1.1.1 --enable-ltdl-install
--enable-ltdl-install --cache-file=../../../../.././config.cache --srcdir=.
loading cache ../../../../.././config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 -D_REENTRANT
-D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG ) works... yes
checking whether the C compiler (gcc -g -O2 -D_REENTRANT
-D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG ) is a
cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for mysql_config... (cached) yes
checking for pthread_create in -lpthread... (cached) yes
checking for mysql_init in -lmysqlclient_r (using mysql_config)... no
checking for mysql_init in -lmysqlclient_r... no
configure: warning: mysql libraries not found. Use
--with-mysql-lib-dir=path.
checking for mysql.h (using mysql_config)... yes
configure: warning: sql submodule 'mysql' disabled
updating cache ../../../../.././config.cache
creating ./config.status
creating Makefile
creating config.h
config.h is unchanged

It's not seeing mysql libraries, but they do indeed exist:
# ls -al /usr/local/mysql/lib/mysql
total 1974
drwxr-xr-x  2 root  wheel 512 Apr  5 10:39 .
drwxr-xr-x  3 root  wheel 512 Apr  5 10:39 ..
-rw-r--r--  1 root  wheel   14446 Apr  5 10:39 libdbug.a
-rw-r--r--  1 root  wheel   41928 Apr  5 10:39 libheap.a
-rw-r--r--  1 root  wheel   13640 Apr  5 10:39 libmerge.a
-rw-r--r--  1 root  wheel  331488 Apr  5 10:39 libmyisam.a
-rw-r--r--  1 root  wheel   24934 Apr  5 10:39 libmyisammrg.a
-rw-r--r--  1 root  wheel  472466 Apr  5 10:39 libmysqlclient.a
-rwxr-xr-x  1 root  wheel 871 Apr  5 10:39 libmysqlclient.la
lrwxr-xr-x  1 root  wheel  20 Apr  5 10:39 libmysqlclient.so -
libmysqlclient.so.14
-rwxr-xr-x  1 root  wheel  387482 Apr  5 10:39 libmysqlclient.so.14
-rw-r--r--  1 root  wheel  237570 Apr  5 10:39 libmystrings.a
-rw-r--r--  1 root  wheel  253852 Apr  5 10:39 libmysys.a
-rw-r--r--  1 root  wheel  105640 Apr  5 10:39 libnisam.a
-rw-r--r--  1 root  wheel5472 Apr  5 10:39 libvio.a

# ls -al /usr/local/mysql/include/mysql
total 288
drwxr-xr-x  2 root  wheel   1024 Apr  5 10:39 .
drwxr-xr-x  3 root  wheel512 Apr  5 10:39 ..
-rw-r--r--  1 root  wheel   3428 Apr  5 10:39 errmsg.h
-rw-r--r--  1 root  wheel   6778 Apr  5 10:39 keycache.h
-rw-r--r--  1 root  wheel  17899 Apr  5 10:39 m_ctype.h
-rw-r--r--  1 root  wheel   8085 Apr  5 10:39 m_string.h
-rw-r--r--  1 root  wheel   1859 Apr  5 10:39 my_alloc.h
-rw-r--r--  1 root  wheel  28650 Apr  5 10:39 my_config.h
-rw-r--r--  1 root  wheel   3463 Apr  5 10:39 my_dbug.h
-rw-r--r--  1 root  wheel   3509 Apr  5 10:39 my_dir.h
-rw-r--r--  1 root  wheel   3000 Apr  5 10:39 my_getopt.h
-rw-r--r--  1 root  wheel  39298 Apr  5 10:39 my_global.h
-rw-r--r--  1 root  wheel   1515 Apr  5 10:39 my_list.h
-rw-r--r--  1 root  wheel   3588 Apr  5 10:39 my_net.h
-rw-r--r--  1 root  wheel   1245 Apr  5 10:39 my_no_pthread.h
-rw-r--r--  1 root  wheel  24387 Apr  5 10:39 my_pthread.h
-rw-r--r--  1 root  wheel   1784 Apr  5 10:39 my_semaphore.h
-rw-r--r--  1 root  wheel  32346 Apr  5 10:39 my_sys.h
-rw-r--r--  1 root  wheel   2007 Apr  5 10:39 my_xml.h
-rw-r--r--  1 root  wheel  27615 Apr  5 10:39 mysql.h
-rw-r--r--  1 root  wheel  15028 Apr  5 10:39 mysql_com.h
-rw-r--r--  1 root  wheel   1241 Apr  5 10:39 mysql_embed.h
-rw-r--r--  1 root  wheel   2184 Apr  5 10:39 mysql_time.h
-rw-r--r--  1 root  wheel781 Apr  5 10:39 mysql_version.h
-rw-r--r--  1 root  wheel  11315 Apr  5 10:39 mysqld_error.h
-rw-r--r--  1 root  wheel   5841 Apr  5 10:39 raid.h
-rw-r--r--  1 root  wheel   6499 Apr  5 10:39 readline.h
-rw-r--r--  1 root  wheel   1751 Apr  5 10:39 sql_common.h
-rw-r--r--  1 root  wheel   6401 Apr  5 10:39 sql_state.h
-rw-r--r--  1 root  wheel   1055 Apr  5 10:39 sslopt-case.h
-rw-r--r--  1 root  wheel   1883 Apr  5 10:39 sslopt-longopts.h
-rw-r--r--  1 root  wheel970 Apr  5 10:39 sslopt-vars.h
-rw-r--r--  1 root  wheel   1265 Apr  5 10:39 typelib.h

I'm thoroughly perplexed.  What should I try next?

--
 Mark Hennessy

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


RE: Compiling freeradius 1.1.1 in FreeBSD 6.0 with mysql support

2006-04-05 Thread Mark Hennessy
I'm sorry, I did indeed use the following commandline:
./configure --with-mysql-lib-dir=/usr/local/mysql/lib/mysql
--with-mysql-include-dir=/usr/local/mysql/include/mysql
--prefix=/usr/local/adm/freeradius-1.1.1

and got the same results below.

--
 Mark Hennessy

 -Original Message-
 From: 
 [EMAIL PROTECTED]
 .org 
 [mailto:[EMAIL PROTECTED]
 eeradius.org] On Behalf Of Mark Hennessy
 Sent: Wednesday, April 05, 2006 12:50 PM
 To: freeradius-users@lists.freeradius.org
 Subject: Compiling freeradius 1.1.1 in FreeBSD 6.0 with mysql support
 
 I'm trying to build freeradius 1.1.1 on a FreeBSD 6.0 system 
 with MySQL
 4.1.15
 
 I'm using the following configure commandline:
 ./configure --with-mysql-lib=/usr/local/mysql/lib/mysql
 --with-mysql-include=/usr/local/mysql/include/mysql
 --prefix=/usr/local/adm/freeradius-1.1.1
 
 I'd include the full output, but I figure that I should only 
 do that if
 asked.
 Here's the problematic section:
 
 configuring in ./drivers/rlm_sql_mysql
 running /bin/sh ./configure  
 --with-mysql-lib-dir=/usr/local/mysql/lib/mysql
 --with-mysql-include-dir=/usr/local/mysql/include/mysql
 --prefix=/usr/local/adm/freeradius-1.1.1 --enable-ltdl-install
 --enable-ltdl-install 
 --cache-file=../../../../.././config.cache --srcdir=.
 loading cache ../../../../.././config.cache
 checking for gcc... (cached) gcc
 checking whether the C compiler (gcc -g -O2 -D_REENTRANT
 -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG ) works... yes
 checking whether the C compiler (gcc -g -O2 -D_REENTRANT
 -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG ) is a
 cross-compiler... no
 checking whether we are using GNU C... (cached) yes
 checking whether gcc accepts -g... (cached) yes
 checking for mysql_config... (cached) yes
 checking for pthread_create in -lpthread... (cached) yes
 checking for mysql_init in -lmysqlclient_r (using mysql_config)... no
 checking for mysql_init in -lmysqlclient_r... no
 configure: warning: mysql libraries not found. Use
 --with-mysql-lib-dir=path.
 checking for mysql.h (using mysql_config)... yes
 configure: warning: sql submodule 'mysql' disabled
 updating cache ../../../../.././config.cache
 creating ./config.status
 creating Makefile
 creating config.h
 config.h is unchanged
 
 It's not seeing mysql libraries, but they do indeed exist:
 # ls -al /usr/local/mysql/lib/mysql
 total 1974
 drwxr-xr-x  2 root  wheel 512 Apr  5 10:39 .
 drwxr-xr-x  3 root  wheel 512 Apr  5 10:39 ..
 -rw-r--r--  1 root  wheel   14446 Apr  5 10:39 libdbug.a
 -rw-r--r--  1 root  wheel   41928 Apr  5 10:39 libheap.a
 -rw-r--r--  1 root  wheel   13640 Apr  5 10:39 libmerge.a
 -rw-r--r--  1 root  wheel  331488 Apr  5 10:39 libmyisam.a
 -rw-r--r--  1 root  wheel   24934 Apr  5 10:39 libmyisammrg.a
 -rw-r--r--  1 root  wheel  472466 Apr  5 10:39 libmysqlclient.a
 -rwxr-xr-x  1 root  wheel 871 Apr  5 10:39 libmysqlclient.la
 lrwxr-xr-x  1 root  wheel  20 Apr  5 10:39 libmysqlclient.so -
 libmysqlclient.so.14
 -rwxr-xr-x  1 root  wheel  387482 Apr  5 10:39 libmysqlclient.so.14
 -rw-r--r--  1 root  wheel  237570 Apr  5 10:39 libmystrings.a
 -rw-r--r--  1 root  wheel  253852 Apr  5 10:39 libmysys.a
 -rw-r--r--  1 root  wheel  105640 Apr  5 10:39 libnisam.a
 -rw-r--r--  1 root  wheel5472 Apr  5 10:39 libvio.a
 
 # ls -al /usr/local/mysql/include/mysql
 total 288
 drwxr-xr-x  2 root  wheel   1024 Apr  5 10:39 .
 drwxr-xr-x  3 root  wheel512 Apr  5 10:39 ..
 -rw-r--r--  1 root  wheel   3428 Apr  5 10:39 errmsg.h
 -rw-r--r--  1 root  wheel   6778 Apr  5 10:39 keycache.h
 -rw-r--r--  1 root  wheel  17899 Apr  5 10:39 m_ctype.h
 -rw-r--r--  1 root  wheel   8085 Apr  5 10:39 m_string.h
 -rw-r--r--  1 root  wheel   1859 Apr  5 10:39 my_alloc.h
 -rw-r--r--  1 root  wheel  28650 Apr  5 10:39 my_config.h
 -rw-r--r--  1 root  wheel   3463 Apr  5 10:39 my_dbug.h
 -rw-r--r--  1 root  wheel   3509 Apr  5 10:39 my_dir.h
 -rw-r--r--  1 root  wheel   3000 Apr  5 10:39 my_getopt.h
 -rw-r--r--  1 root  wheel  39298 Apr  5 10:39 my_global.h
 -rw-r--r--  1 root  wheel   1515 Apr  5 10:39 my_list.h
 -rw-r--r--  1 root  wheel   3588 Apr  5 10:39 my_net.h
 -rw-r--r--  1 root  wheel   1245 Apr  5 10:39 my_no_pthread.h
 -rw-r--r--  1 root  wheel  24387 Apr  5 10:39 my_pthread.h
 -rw-r--r--  1 root  wheel   1784 Apr  5 10:39 my_semaphore.h
 -rw-r--r--  1 root  wheel  32346 Apr  5 10:39 my_sys.h
 -rw-r--r--  1 root  wheel   2007 Apr  5 10:39 my_xml.h
 -rw-r--r--  1 root  wheel  27615 Apr  5 10:39 mysql.h
 -rw-r--r--  1 root  wheel  15028 Apr  5 10:39 mysql_com.h
 -rw-r--r--  1 root  wheel   1241 Apr  5 10:39 mysql_embed.h
 -rw-r--r--  1 root  wheel   2184 Apr  5 10:39 mysql_time.h
 -rw-r--r--  1 root  wheel781 Apr  5 10:39 mysql_version.h
 -rw-r--r--  1 root  wheel  11315 Apr  5 10:39 mysqld_error.h
 -rw-r--r--  1 root  wheel   5841 Apr  5 10:39 raid.h
 -rw-r--r--  1 root  wheel   6499 Apr  5 10:39 readline.h
 -rw-r--r--  1 root  wheel   1751 Apr  5 10:39 sql_common.h
 -rw-r--r--  1

Re: Compiling freeradius 1.1.1 in FreeBSD 6.0 with mysql support

2006-04-05 Thread Alan DeKok
Mark Hennessy [EMAIL PROTECTED] wrote:
 I'm trying to build freeradius 1.1.1 on a FreeBSD 6.0 system with MySQL
 4.1.15

  Doesn't the ports system work?

 checking for mysql_init in -lmysqlclient_r (using mysql_config)... no

  See the config.log for details.  Maybe libmysqlclient_r needs
additional libraries for it to work.

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


RE: Compiling freeradius 1.1.1 in FreeBSD 6.0 with mysql support

2006-04-05 Thread Mark Hennessy
/usr/local/src/freeradius-1.1.1/src/modules/rlm_sql/drivers/rlm_sql_mysql/con
fig.log:
...
/usr/bin/ld: cannot find -lmysqlclient_r
...

Why would that happen if everything is where I tell configure it should be?

--
 Mark Hennessy


 -Original Message-
 From: 
 [EMAIL PROTECTED]
 .org 
 [mailto:[EMAIL PROTECTED]
 eeradius.org] On Behalf Of Alan DeKok
 Sent: Wednesday, April 05, 2006 1:08 PM
 To: FreeRadius users mailing list
 Subject: Re: Compiling freeradius 1.1.1 in FreeBSD 6.0 with 
 mysql support 
 
 Mark Hennessy [EMAIL PROTECTED] wrote:
  I'm trying to build freeradius 1.1.1 on a FreeBSD 6.0 
 system with MySQL
  4.1.15
 
   Doesn't the ports system work?
 
  checking for mysql_init in -lmysqlclient_r (using 
 mysql_config)... no
 
   See the config.log for details.  Maybe libmysqlclient_r needs
 additional libraries for it to work.
 
   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