Hello,
I was wondering if anyone had a specific recipe for creating a solid FreeRadius build on Solaris 7, 8, and 9. We have some big iron 64bit multi-CPU UltraSparc systems that we would like to try FreeRadius on. Here's the question:
Given that we would be starting with FreeRadius v0.81, Solaris 7, and MySQL 3.23.55, and Netscape Directory server v3.1 (or OpenLDAP), what would be the exact libraries, utilities, tools, headers, and their respective versions that would be necessary to get a good Solaris build?
A complete recipe if you will.
If you want 64-bit native binaries, you'll need a 64-bit native compiler. Later versions of GCC can do this:
$ gcc -v
Reading specs from /usr/local/gcc-3.0.1-v9/lib/gcc-lib/sparcv9-sun-solaris2/3.0.1/specs
Configured with: ../gcc-3.0.1/configure --prefix=/usr/local/gcc-3.0.1-v9 --enable-languages=c,c++ sparcv9-sun-solaris2
Thread model: posix
gcc version 3.0.1
Then set your build environment with the following env variables:
PATH=/usr/local/gcc-3.0.1-v9/bin:$PATH LD_LIBRARY_PATH=/usr/local/gcc-3.0.1-v9/lib:$LD_LIBRARY_PATH CFLAGS="-mcpu=v9 -Wa,-xarch=v9a" CXXFLAGS=$CFLAGS export PATH LD_LIBRARY_PATH CFLAGS CXXFLAGS
Versions later then 3.0.1 should work as well, but versions earlier probably will not.
You'll need to make sure that you've compiled any third party programs that you want ( MySQL etc. ) into 64-bit native as well. MySQL may or may not be playing nice with 64-bitness as at some point it hardcoded some 32-bit flags into the Makefiles. It may take some poking but it is certainly possible.
If you succeed in all of that, you'll end up with this:
$ file `which radiusd`
/usr/local/sbin/radiusd: ELF 64-bit MSB executable SPARCV9 Version 1, UltraSPARC1 Extensions Required, dynamically linked, stripped
By the way, the Redhat 8.0 system we're currently testing FreeRAdius v0.81 on has worked beautifully with our existing LDAP, MySQL, and proxy realms and all of our NAS equipment (PortMasters, Ascend MAX TNT)!!! If we can get this running on Solaris, we MAY eliminate the use of Lucent Navis Radius (no love lost with Lucent)!!!
Well, it'll run just toasty in 32-bit mode as well ( and most of the third-party libs you mention are probably in 32-bit mode, so it may just be safer to go that route ).
On Solaris 2.6 and Solaris 8 systems, the server has built just fine by simply doing ( configure; make; make install ). Granted that is not using LDAP, so it may take a few 'configure' line commands to get it finding all the libs.
-Chris
-- \\\|||/// \ StarNet Inc. \ Chris Parker \ ~ ~ / \ WX *is* Wireless! \ Director, Engineering | @ @ | \ http://www.starnetwx.net \ (847) 963-0116 oOo---(_)---oOo--\------------------------------------------------------ \ Wholesale Internet Services - http://www.megapop.net
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
