SV: rlm_sql module won't compile under Solaris 10
M.McNeil
mmcneil at berkeley.edu
Wed Nov 2 18:58:35 CET 2005
SUCCESS!!!!!!!!!!!!!!!!!! I already had /usr/ccs/bin in my path,
however, it was listed BEFORE /usr/sfw/bin, which apparantly makes all
the difference in the world. Here are the PATH and LD_LIBRARY_PATH
environment variable settings I used, just in case someone else runs
into the same issue:
PATH=/bin:/usr/bin:/usr/ccs/bin:/usr/ucb:/usr/sbin:/usr/local/bin:/usr/sfw/bin
LD_LIBRARY_PATH=/usr/lib:/usr/include:/usr/ccs/lib:/usr/ccs/include:/usr/local/lib:/usr/local/include:/usr/sfw/lib:/usr/sfw/include
Thanks again for your assistance.
Best Regards,
Mike McNeil
Sr. Network Engineer
Communications & Network Services
University of California Berkeley
Leon Kyneur wrote:
>
> also you will need the mysql client libraries, download the full
> source and ./configure --without-server ; make && make install
>
>
> On Mon, 31 Oct 2005, Torkel Mathisen wrote:
>
>> Hi
>>
>> Add /usr/ccs/bin to your PATH.
>>
>>
>> Regards,
>> Torkel
>>
>> -----Opprinnelig melding-----
>> Fra: freeradius-users-bounces at lists.freeradius.org
>> [mailto:freeradius-users-bounces at lists.freeradius.org] På vegne av
>> M.McNeil
>> Sendt: 28. oktober 2005 22:55
>> Til: freeradius-users at lists.freeradius.org
>> Emne: rlm_sql module won't compile under Solaris 10
>> Viktighet: Høy
>>
>> 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
>> -
>> List info/subscribe/unsubscribe? See
>> http://www.freeradius.org/list/users.html
>>
>> -
>> List info/subscribe/unsubscribe? See
>> http://www.freeradius.org/list/users.html
>>
>------------------------------------------------------------------------
>
>-
>List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20051102/64f349ab/attachment.html>
More information about the Freeradius-Users
mailing list