First steps in 3.0

Stefan Winter stefan.winter at restena.lu
Tue Aug 14 07:42:12 CEST 2012


Hi,

I've been poking 3.0 master (GIT from yesterday) with a stick.
Despite some things that make "make install" fail, there's at
least one thing preventing me from running it in build/ even.

"BOILER=yes make" omits the rlm_sql_mysql driver for some reason.

The libs and headers are there, and configure looks good:

=== configuring in ./drivers/rlm_sql_mysql (/root/freeradius-master/src/modules/rlm_sql/./drivers/rlm_sql_mysql)
configure: running /bin/sh ./configure '--prefix=/usr/local/freeradius/3.0-20120813'  '--sysconfdir=/usr/local/freeradius/config/' '--enable-ltdl-install' --cache-file=/dev/null --srcdir=.
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for mysql_config... yes
checking for pthread_create in -lpthread... yes
checking for mysql_init in -lmysqlclient_r (using mysql_config)... yes
checking for mysql.h (using mysql_config --cflags)... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
=== configuring in ...

But then the build only picks up the rlm_sql_null driver:

LINK build/lib/rlm_sometimess.la
CC src/modules/rlm_sql/drivers/rlm_sql_null/sql_null.c
In file included from /root/freeradius-master/src/modules/rlm_sql/rlm_sql.h:15,
                 from src/modules/rlm_sql/drivers/rlm_sql_null/sql_null.c:28:
/root/freeradius-master/src/freeradius-devel/modpriv.h:15:1: warning: "WITHOUT_LIBLTDL" redefined
<command-line>: warning: this is the location of the previous definition
src/modules/rlm_sql/drivers/rlm_sql_null/sql_null.c: In function ‘sql_init_socket’:
src/modules/rlm_sql/drivers/rlm_sql_null/sql_null.c:45: warning: assignment discards qualifiers from pointer target type
LINK build/lib/rlm_sql_null.la
CC src/modules/rlm_sql/rlm_sql.c
In file included from src/modules/rlm_sql/rlm_sql.h:15,
                 from src/modules/rlm_sql/rlm_sql.c:40:
/root/freeradius-master/src/freeradius-devel/modpriv.h:15:1: warning: "WITHOUT_LIBLTDL" redefined
<command-line>: warning: this is the location of the previous definition
CC src/modules/rlm_sql/sql.c
In file included from src/modules/rlm_sql/rlm_sql.h:15,
                 from src/modules/rlm_sql/sql.c:37:
/root/freeradius-master/src/freeradius-devel/modpriv.h:15:1: warning: "WITHOUT_LIBLTDL" redefined
<command-line>: warning: this is the location of the previous definition
LINK build/lib/rlm_sql.la
CC src/modules/rlm_sql_log/rlm_sql_log.c
LINK build/lib/rlm_sql_log.la
CC src/modules/rlm_sqlcounter/rlm_sqlcounter.c
LINK build/lib/rlm_sqlcounter.la
CC src/modules/rlm_sqlippool/rlm_sqlippool.c
In file included from src/modules/rlm_sql/rlm_sql.h:15,
                 from src/modules/rlm_sqlippool/rlm_sqlippool.c:32:
/root/freeradius-master/src/freeradius-devel/modpriv.h:15:1: warning: "WITHOUT_LIBLTDL" redefined
<command-line>: warning: this is the location of the previous definition
LINK build/lib/rlm_sqlippool.la
CC src/modules/rlm_unix/rlm_unix.c

So I tried to call make directly in the driver subdir
to see where I end up, and got a source error:

rlm_sql_mysql # BOILER=yes make
CC sql_mysql.c@
sql_mysql.c: In function ‘sql_query’:
sql_mysql.c:189: error: ‘SQL_CONFIG’ has no member named ‘sqltrace’
make: *** [sql_mysql.lo] Error 1

I then deleted the offending lines 189+190 from sql_mysql.c,
which made make fail a bit later; but still no joy.

I'm on GNU make 3.81 which I understand is the very bare minimum,
but should do.

Any hints?

Greetings,

Stefan Winter


-- 
Stefan WINTER
Ingenieur de Recherche
Fondation RESTENA - Réseau Téléinformatique de l'Education Nationale et de la Recherche
6, rue Richard Coudenhove-Kalergi
L-1359 Luxembourg

Tel: +352 424409 1
Fax: +352 422473

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freeradius.org/pipermail/freeradius-devel/attachments/20120814/2b87afed/attachment.pgp>


More information about the Freeradius-Devel mailing list