On 21/06/2012, at 4:23, Terry Barnum wrote:
I think to work around this I just removed spandsp while I built freeswitch (bleh).
THanks Daniel. Awhile back I was fooling around with the asterisk macport on this work iMac and spandsp-devel is a dependency. I uninstalled the asterisk port long ago but spandsp-devel was still around.
OK.
So it's all in one place, to get freeswitch to compile on this intel iMac running 10.6.8 with macports installed, I uninstalled the spandsp-devel macport, did a fresh git clone, ran your patch <http://freeswitch-users.2379917.n2.nabble.com/FreeSWITCH-OSX-Libtool-Macports-td7579970.html#a7580004> to force the use of C in gsm0610_rpe.c, ran the jira patch to correctly select x86 instead of ppc <http://jira.freeswitch.org/browse/FS-3992>, ran bootstrap.sh, used your env CPPFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib ./configure and make.
Now on to actually learning to use freeswitch!
Yes, the real work begins now ;)
IMO the "right" solution is to rename spandsp in freeswitch - it has been modified (looking at the git log) so it is really a fork of the original. That is unless those patches get merged back into spandsp and then macports can get an updated one.
The later solution is still pretty bad though unless there is a way to force freeswitch to not look at the bundled version.
There is a similar problem with portaudio although since it has a stable API it doesn't show up. It doesn't however build on OSX (Intel 10.7 anyway) and in the end I hacked src/mod/endpoint/mod_portaudio to use pkg-config to find the right CFLAGS and LIBS to link to it.
Forgive my ignorance, does the freeswitch includes of things like spandsp and portaudio have to be set globally or can there be separate configs?
I believe it's hard coded into Makefiles and configure scripts :( -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C