<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>sun c 5.8 compiling freeradius-1.1.7 issue in solaris 10</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">hi,</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">i want to compile freeradius with mysql in solaris 10, then i do like this,</FONT>
<BR><FONT SIZE=2 FACE="Arial">./configure CC=cc --prefix=/usr/local/freeradius-1.1.7-mysql --with-mysql-dir=/usr/local/mysql</FONT>
<BR><FONT SIZE=2 FACE="Arial">configure seems ok, but during making the src code, error occured, see the info below,</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">/freeradius-1.1.7/libtool --mode=link cc -export-dynamic -dlopen self \</FONT>
<BR><FONT SIZE=2 FACE="Arial"> -L/usr/local/mysql/lib -R/usr/local/mysql/lib -pie -o radiusd acct.lo auth.lo client.lo conffile.lo exec.lo files.lo log.lo mainconfig.lo modules.lo modcall.lo nas.lo proxy.lo radiusd.lo radius_snmp.lo request_list.lo session.lo smux.lo threads.lo util.lo valuepair.lo version.lo timestr.lo xlat.lo \</FONT></P>
<P><FONT SIZE=2 FACE="Arial"> -lnsl -lresolv -lsocket -lposix4 -lpthread ../lib/libradius.la \</FONT>
<BR><FONT SIZE=2 FACE="Arial"> -lltdl</FONT>
<BR><FONT SIZE=2 FACE="Arial">rm -f .libs/radiusd.nm .libs/radiusd.nmS .libs/radiusd.nmT</FONT>
<BR><FONT SIZE=2 FACE="Arial">creating .libs/radiusdS.c</FONT>
<BR><FONT SIZE=2 FACE="Arial">(cd .libs && cc -g -c "radiusdS.c")</FONT>
<BR><FONT SIZE=2 FACE="Arial">rm -f .libs/radiusdS.c .libs/radiusd.nm .libs/radiusd.nmS .libs/radiusd.nmT</FONT>
<BR><FONT SIZE=2 FACE="Arial">cc .libs/radiusdS.o -pie -o .libs/radiusd .libs/acct.o .libs/auth.o .libs/client.o .libs/conffile.o .libs/exec.o .libs/files.o .libs/log.o .libs/mainconfig.o .libs/modules.o .libs/modcall.o .libs/nas.o .libs/proxy.o .libs/radiusd.o .libs/radius_snmp.o .libs/request_list.o .libs/session.o .libs/smux.o .libs/threads.o .libs/util.o .libs/valuepair.o .libs/version.o .libs/timestr.o .libs/xlat.o -L/usr/local/mysql/lib -lnsl -lresolv -lsocket -lposix4 -lpthread ../lib/.libs/libradius.so -lcrypt /usr/local/lib/libltdl.so -L/usr/local/lib -L/usr/local/ssl/lib -L/usr/openwin/lib -L/usr/lib -L/usr/local/BerkeleyDB.4.2/lib -L/usr/X11R6/lib -ldl -R/usr/local/freeradius-1.1.7-mysql/lib -R/usr/local/lib -R/usr/local/mysql/lib</FONT></P>
<P><FONT SIZE=2 FACE="Arial">ld: fatal: file .libs/radiusd: open failed: No such file or directory</FONT>
<BR><FONT SIZE=2 FACE="Arial">ld: fatal: File processing errors. No output written to a.out</FONT>
<BR><FONT SIZE=2 FACE="Arial">gmake[4]: *** [radiusd] Error 1</FONT>
<BR><FONT SIZE=2 FACE="Arial">gmake[4]: Leaving directory `/localhome/echepin/AAA/freeradius-1.1.7/src/main'</FONT>
<BR><FONT SIZE=2 FACE="Arial">gmake[3]: *** [common] Error 2</FONT>
<BR><FONT SIZE=2 FACE="Arial">gmake[3]: Leaving directory `/localhome/echepin/AAA/freeradius-1.1.7/src'</FONT>
<BR><FONT SIZE=2 FACE="Arial">gmake[2]: *** [all] Error 2</FONT>
<BR><FONT SIZE=2 FACE="Arial">gmake[2]: Leaving directory `/localhome/echepin/AAA/freeradius-1.1.7/src'</FONT>
<BR><FONT SIZE=2 FACE="Arial">gmake[1]: *** [common] Error 2</FONT>
<BR><FONT SIZE=2 FACE="Arial">gmake[1]: Leaving directory `/localhome/echepin/AAA/freeradius-1.1.7'</FONT>
<BR><FONT SIZE=2 FACE="Arial">make: *** [all] Error 2</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">then i manually run the command:</FONT>
<BR><FONT SIZE=2 FACE="Arial">/freeradius-1.1.7/libtool --mode=link cc -export-dynamic -dlopen self \</FONT>
<BR><FONT SIZE=2 FACE="Arial"> -L/usr/local/mysql/lib -R/usr/local/mysql/lib -pie -o radiusd acct.lo auth.lo client.lo conffile.lo exec.lo files.lo log.lo mainconfig.lo modules.lo modcall.lo nas.lo proxy.lo radiusd.lo radius_snmp.lo request_list.lo session.lo smux.lo threads.lo util.lo valuepair.lo version.lo timestr.lo xlat.lo \</FONT></P>
<P><FONT SIZE=2 FACE="Arial"> -lnsl -lresolv -lsocket -lposix4 -lpthread ../lib/libradius.la \</FONT>
<BR><FONT SIZE=2 FACE="Arial"> -lltdl</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">libtool: link: `acct.lo' is not a valid libtool object</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">it prompts the acct.lo is not a valid libtool object! and i tried to disable libtool ,but not found any hints how to do? </FONT></P>
<P><FONT SIZE=2 FACE="Arial">anybody know how to fix this issue? could you give me some hints, thanks</FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Arial">BRs/peter</FONT>
</P>
</BODY>
</HTML>