Building freeswitch on Opensolaris Nevada

Posted in OpenSolaris, OpenSource, Solaris & OpenSolaris, VoIP, freeswitch on July 6th, 2008 by Michal Bielicki

OpenSolaris Nevada

This is the distribution from the opensolaris.org guys, do not mix that up with os200805 which is the new OpenSolaris based distro from SUN.

  • Select your development user. I will assume for the time being that the user is called freeswitch.
  • Create the target directory for freeswitch
mkdir /opt/freeswitch; chown freeswitch /opt/freeswitch
  • Give your build and development user software installation rights
usermod -P "Software Installation" freeswitch
  • log out and log back in as the freeswitch user (so that the new permissions become active)
  • download and unpack the new jds-cbe beta package:
/usr/sfw/bin/wget http://dlc.sun.com/osol/jds/downloads/cbe/test/desktop-cbe-1.7.0-rc1-x86.tar.bz2
gtar xvfz desktop-cbe-1.7.0-rc1-x86.tar.bz2"

Install JDS-CBE

cd desktop-cbe-1.7.0-rc1
./cbe-install
  • leave everything as default. Select the SunStudio compiler as your default compiler.
  • Download the spec-files-extra repository into a subdirectory called SFE
svn co https://pkgbuild.svn.sourceforge.net/svnroot/pkgbuild/spec-files-extra/trunk SFE
  • Load the jds-cbe environment
. /opt/dtbld/bin/env.sh
  • Compile and install SFEunixodbc
cd SFE
pkgtool --download build SFEunixodbc.spec
  • Download freeswitch trunk
svn co http://svn.freeswitch.org/svn/freeswitch/trunk fstrunk
  • Prepare the freeswitch sources
cd fstrunk; ./bootstrap.sh
  • and edit the modules.conf file to select which modules you would like to have installed
vim modules.conf
  • Configure freeswitch sources for 64bit and let the c compiler apply some optimization
CFLAGS="-m64 -fast" CXXFLAGS="-m64 -fast" LDFLAGS="-m64" ./configure --prefix=/opt/freeswitch \

--enable-core-odbc-support --enable-core-libedit-support \

--enable-64 --with-openssl=/usr/sfw
  • or for 32bit
CFLAGS="-m32 -fast" CXXYFLAGS="-m32 -fast" LDFLAGS="-m32" ./configure --prefix=/opt/freeswitch \

--enable-core-odbc-support --enable-core-libedit-support \

--with-openssl=/usr/sfw
  • Drink a cup of coffee
  • run make :)
gmake
  • Install freeswitch into its target directory
gmake install

You are done :)

One of those days I will finish my SFE package than it will be even easier :)

Technorati Tags: , , , ,

Tags: , , , ,

Nice writeup about how to make your MacBookPro multiboot Opensolaris and MacOS/X

Posted in Mac, OpenSolaris, OpenSource, Solaris & OpenSolaris on June 9th, 2008 by Michal Bielicki

Brian Leonard did a perfect writeup for people who would like to have their MacBook Pro multiboot Opensolaris 200805 and MacOS/X. You can find his Blog entry here. Took me a bit longer to find all this without his writeup so go there if you want a config like that, it will save you a lot of trouble :)

Tags: , , ,

The one problem with Live Upgrade on SPARC

Posted in OpenSolaris, Solaris & OpenSolaris on May 16th, 2008 by Michal Bielicki
Imagine you just did your live upgrade on your SPARC after of course studying this or this and of course reading this and this, tested it and activated it and all seems ok …… but it always seems to boot back into the old environment, you got hit by luactivate being unable to change your boot settings cause your setting of:

diag-switch?

is set to true.

a simple setting of:

eeprom boot-device?=false

fixes that and allows live upgrade to handle its stuff like it should.

Tags: , , ,

Where is SUN going with OpenSource ? An interview with Simon Phipps

Posted in OpenSolaris, OpenSource, Solaris & OpenSolaris on April 30th, 2008 by Michal Bielicki

I always like to read where corporations running FOSS projects I am involved in want to take them. If this is of interest for you, here is an Interview with Simon Phipps about SUNs vision for its OpenSource future

Tags: , , , , ,