<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
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:<br>
<br>
PATH=/bin:/usr/bin:/usr/ccs/bin:/usr/ucb:/usr/sbin:/usr/local/bin:/usr/sfw/bin<br>
<br>
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<br>
<br>
Thanks again for your assistance.<br>
<br>
Best Regards,<br>
<br>
Mike McNeil<br>
Sr. Network Engineer<br>
Communications & Network Services<br>
University of California Berkeley<br>
<br>
Leon Kyneur wrote:
<blockquote cite="midPine.LNX.4.60.0510311657540.453@dexterous.org"
 type="cite"><br>
also you will need the mysql client libraries, download the full source
and ./configure --without-server ; make && make install
  <br>
  <br>
  <br>
On Mon, 31 Oct 2005, Torkel Mathisen wrote:
  <br>
  <br>
  <blockquote type="cite">Hi
    <br>
    <br>
Add /usr/ccs/bin to your PATH.
    <br>
    <br>
    <br>
Regards,
    <br>
Torkel
    <br>
    <br>
-----Opprinnelig melding-----
    <br>
Fra: <a class="moz-txt-link-abbreviated" href="mailto:freeradius-users-bounces@lists.freeradius.org">freeradius-users-bounces@lists.freeradius.org</a>
[<a class="moz-txt-link-freetext" href="mailto:freeradius-users-bounces@lists.freeradius.org">mailto:freeradius-users-bounces@lists.freeradius.org</a>] På vegne av
M.McNeil
    <br>
Sendt: 28. oktober 2005 22:55
    <br>
Til: <a class="moz-txt-link-abbreviated" href="mailto:freeradius-users@lists.freeradius.org">freeradius-users@lists.freeradius.org</a>
    <br>
Emne: rlm_sql module won't compile under Solaris 10
    <br>
Viktighet: Høy
    <br>
    <br>
Hello,
    <br>
    <br>
I'm trying to get FreeRadius 1.0.5 to compile with MySQL / RLM_SQL,
    <br>
under Solaris 10. Configure works just fine, however, after running
    <br>
"make", I get the following:
    <br>
    <br>
gmake[7]: Entering directory
    <br>
`/export/home/freeradius-1.0.5/src/modules/rlm_sql'
    <br>
Making static in drivers...
    <br>
gmake[8]: Entering directory
    <br>
`/export/home/freeradius-1.0.5/src/modules/rlm_sql/drivers'
    <br>
/usr/sfw/bin/gmake -w WHAT_TO_MAKE=static common
    <br>
gmake[9]: Entering directory
    <br>
`/export/home/freeradius-1.0.5/src/modules/rlm_sql/drivers'
    <br>
Making static in rlm_sql_iodbc...
    <br>
gmake[10]: Entering directory
    <br>
`/export/home/freeradius-1.0.5/src/modules/rlm_sql/drivers/rlm_sql_iodbc'
    <br>
gmake[10]: Nothing to be done for `static'.
    <br>
gmake[10]: Leaving directory
    <br>
`/export/home/freeradius-1.0.5/src/modules/rlm_sql/drivers/rlm_sql_iodbc'
    <br>
Making static in rlm_sql_mysql...
    <br>
gmake[10]: Entering directory
    <br>
`/export/home/freeradius-1.0.5/src/modules/rlm_sql/drivers/rlm_sql_mysql'
    <br>
gcc  -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5
    <br>
-Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith -Wcast-qual
-Wcast-align
    <br>
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
    <br>
-Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef
    <br>
-I../.. -I../../../../include -I/usr/local/mysql/include -xO3 -mt
    <br>
-D_FORTEC_ -xarch=v8 -xc99=none  -c sql_mysql.c -o sql_mysql.o
    <br>
gcc: language c99=none not recognized
    <br>
gcc: sql_mysql.c: linker input file unused because linking not done
    <br>
/export/home/freeradius-1.0.5/libtool --mode=link ld -module -static 
-g
    <br>
-O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5   -Wall
    <br>
-D_GNU_SOURCE -g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align
    <br>
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
    <br>
-Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef
    <br>
-I../.. -I../../../../include -I/usr/local/mysql/include -xO3 -mt
    <br>
-D_FORTEC_ -xarch=v8 -xc99=none  sql_mysql.o -o rlm_sql_mysql.a
    <br>
mkdir .libs
    <br>
(cd . && ln -s sql_mysql.lo sql_mysql.o)
    <br>
ar cru rlm_sql_mysql.a sql_mysql.o
    <br>
ar: cannot open sql_mysql.o
    <br>
       No such file or directory
    <br>
ar: sql_mysql.o not found
    <br>
gmake[10]: *** [rlm_sql_mysql.a] Error 1
    <br>
gmake[10]: Leaving directory
    <br>
`/export/home/freeradius-1.0.5/src/modules/rlm_sql/drivers/rlm_sql_mysql'
    <br>
gmake[9]: *** [common] Error 2
    <br>
gmake[9]: Leaving directory
    <br>
`/export/home/freeradius-1.0.5/src/modules/rlm_sql/drivers'
    <br>
gmake[8]: *** [static] Error 2
    <br>
gmake[8]: Leaving directory
    <br>
`/export/home/freeradius-1.0.5/src/modules/rlm_sql/drivers'
    <br>
gmake[7]: *** [common] Error 2
    <br>
gmake[7]: Leaving directory
    <br>
`/export/home/freeradius-1.0.5/src/modules/rlm_sql'
    <br>
gmake[6]: *** [static] Error 2
    <br>
gmake[6]: Leaving directory
    <br>
`/export/home/freeradius-1.0.5/src/modules/rlm_sql'
    <br>
gmake[5]: *** [common] Error 2
    <br>
gmake[5]: Leaving directory `/export/home/freeradius-1.0.5/src/modules'
    <br>
gmake[4]: *** [all] Error 2
    <br>
gmake[4]: Leaving directory `/export/home/freeradius-1.0.5/src/modules'
    <br>
gmake[3]: *** [common] Error 2
    <br>
gmake[3]: Leaving directory `/export/home/freeradius-1.0.5/src'
    <br>
gmake[2]: *** [all] Error 2
    <br>
gmake[2]: Leaving directory `/export/home/freeradius-1.0.5/src'
    <br>
gmake[1]: *** [common] Error 2
    <br>
gmake[1]: Leaving directory `/export/home/freeradius-1.0.5'
    <br>
*** Error code 2
    <br>
The following command caused the error:
    <br>
/usr/sfw/bin/gmake  WHAT_TO_MAKE=all common
    <br>
make: Fatal error: Command failed for target `all'
    <br>
    <br>
I dowloaded the binary MySQL package from mysql.com and added
    <br>
/usr/local/mysql to my PATH and LD_LIBRARY_PATH variables.  FreeRadius
    <br>
can see the files, however, it will *not* compile the rlm_sql module.
    <br>
    <br>
I've combed the mailing list archive, but I have yet to find a solution
    <br>
to this problem.  Has anyone else experienced this issue ?
    <br>
    <br>
Best Regards,
    <br>
    <br>
Mike McNeil
    <br>
Sr. Network Engineer
    <br>
Communications & Network Services
    <br>
University of California Berkeley
    <br>
-
    <br>
List info/subscribe/unsubscribe? See
<a class="moz-txt-link-freetext" href="http://www.freeradius.org/list/users.html">http://www.freeradius.org/list/users.html</a>
    <br>
    <br>
-
    <br>
List info/subscribe/unsubscribe? See
<a class="moz-txt-link-freetext" href="http://www.freeradius.org/list/users.html">http://www.freeradius.org/list/users.html</a>
    <br>
    <br>
  </blockquote>
  <pre wrap="">
<hr size="4" width="90%">

List info/subscribe/unsubscribe? See <a class="moz-txt-link-freetext" href="http://www.freeradius.org/list/users.html">http://www.freeradius.org/list/users.html</a></pre>
</blockquote>
</body>
</html>