rlm_sql module won't compile under Solaris 10

M.McNeil mmcneil at berkeley.edu
Fri Oct 28 22:55:25 CEST 2005


Hello,

I'm trying to get FreeRadius 1.0.5 to compile with MySQL / RLM_SQL, 
under Solaris 10. Configure works just fine, however, after running 
"make", I get the following:

gmake[7]: Entering directory 
`/export/home/freeradius-1.0.5/src/modules/rlm_sql'
Making static in drivers...
gmake[8]: Entering directory 
`/export/home/freeradius-1.0.5/src/modules/rlm_sql/drivers'
/usr/sfw/bin/gmake -w WHAT_TO_MAKE=static common
gmake[9]: Entering directory 
`/export/home/freeradius-1.0.5/src/modules/rlm_sql/drivers'
Making static in rlm_sql_iodbc...
gmake[10]: Entering directory 
`/export/home/freeradius-1.0.5/src/modules/rlm_sql/drivers/rlm_sql_iodbc'
gmake[10]: Nothing to be done for `static'.
gmake[10]: Leaving directory 
`/export/home/freeradius-1.0.5/src/modules/rlm_sql/drivers/rlm_sql_iodbc'
Making static in rlm_sql_mysql...
gmake[10]: Entering directory 
`/export/home/freeradius-1.0.5/src/modules/rlm_sql/drivers/rlm_sql_mysql'
gcc  -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5   
-Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align 
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes 
-Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef  
-I../.. -I../../../../include -I/usr/local/mysql/include -xO3 -mt 
-D_FORTEC_ -xarch=v8 -xc99=none  -c sql_mysql.c -o sql_mysql.o
gcc: language c99=none not recognized
gcc: sql_mysql.c: linker input file unused because linking not done
/export/home/freeradius-1.0.5/libtool --mode=link ld -module -static  -g 
-O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5   -Wall 
-D_GNU_SOURCE -g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align 
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes 
-Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef  
-I../.. -I../../../../include -I/usr/local/mysql/include -xO3 -mt 
-D_FORTEC_ -xarch=v8 -xc99=none  sql_mysql.o -o rlm_sql_mysql.a
mkdir .libs
(cd . && ln -s sql_mysql.lo sql_mysql.o)
ar cru rlm_sql_mysql.a sql_mysql.o 
ar: cannot open sql_mysql.o
        No such file or directory
ar: sql_mysql.o not found
gmake[10]: *** [rlm_sql_mysql.a] Error 1
gmake[10]: Leaving directory 
`/export/home/freeradius-1.0.5/src/modules/rlm_sql/drivers/rlm_sql_mysql'
gmake[9]: *** [common] Error 2
gmake[9]: Leaving directory 
`/export/home/freeradius-1.0.5/src/modules/rlm_sql/drivers'
gmake[8]: *** [static] Error 2
gmake[8]: Leaving directory 
`/export/home/freeradius-1.0.5/src/modules/rlm_sql/drivers'
gmake[7]: *** [common] Error 2
gmake[7]: Leaving directory 
`/export/home/freeradius-1.0.5/src/modules/rlm_sql'
gmake[6]: *** [static] Error 2
gmake[6]: Leaving directory 
`/export/home/freeradius-1.0.5/src/modules/rlm_sql'
gmake[5]: *** [common] Error 2
gmake[5]: Leaving directory `/export/home/freeradius-1.0.5/src/modules'
gmake[4]: *** [all] Error 2
gmake[4]: Leaving directory `/export/home/freeradius-1.0.5/src/modules'
gmake[3]: *** [common] Error 2
gmake[3]: Leaving directory `/export/home/freeradius-1.0.5/src'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/export/home/freeradius-1.0.5/src'
gmake[1]: *** [common] Error 2
gmake[1]: Leaving directory `/export/home/freeradius-1.0.5'
*** Error code 2
The following command caused the error:
/usr/sfw/bin/gmake  WHAT_TO_MAKE=all common
make: Fatal error: Command failed for target `all'

I dowloaded the binary MySQL package from mysql.com and added 
/usr/local/mysql to my PATH and LD_LIBRARY_PATH variables.  FreeRadius 
can see the files, however, it will *not* compile the rlm_sql module.

I've combed the mailing list archive, but I have yet to find a solution 
to this problem.  Has anyone else experienced this issue ?

Best Regards,

Mike McNeil
Sr. Network Engineer
Communications & Network Services
University of California Berkeley



More information about the Freeradius-Users mailing list