[Freeswitch-users] FreeSWITCH, OSX, Libtool, Macports

Terry Barnum terry at digital-outpost.com
Tue Jun 19 22:21:31 MSD 2012


On Jun 18, 2012, at 10:26 PM, Daniel O'Connor wrote:

> On 19/06/2012, at 11:01, Terry Barnum wrote:
>>> That said, I had trouble getting the bundled PortAudio working so I mangled the mod_portaudio Makefile.am to use the MP PortAudio and it worked fine.
>> 
>> That's really encouraging. Based on the threads I was reading it looked like people and the devs were saying that FS isn't happy with macports installed.
>> 
>> I've tried installing it on a PPC mac mini running 10.5.8 and an Intel i5 iMac running 10.6.8, both with macports installed. I've forgotten now at what build phase the mac mini failed on (I'm not in front of the machine). The iMac fails during make:
>> 
>> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libxml2 -I/usr/local/src/freeswitch/libs/tiff-3.8.2/libtiff -DNDEBUG -msse2 -std=gnu99 -ffast-math -Wall -Wunused-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -fvisibility=hidden -DHAVE_VISIBILITY=1 -g -O2 -MT gsm0610_rpe.lo -MD -MP -MF .deps/gsm0610_rpe.Tpo -c gsm0610_rpe.c  -fno-common -DPIC -o gsm0610_rpe.o
>> /var/folders/B7/B7ea9Uvl2RWJ6k+1YxF5D++++TI/-Tmp-//ccF7gvqy.s:58:suffix or operands invalid for `lea'
>> /var/folders/B7/B7ea9Uvl2RWJ6k+1YxF5D++++TI/-Tmp-//ccF7gvqy.s:63:suffix or operands invalid for `movq'
>> Any ideas?
> 
> I have an Intel mac and configured with..
> 
> env CPPFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib ./configure

Hi Daniel,

So I did a make clean and ran your env line and then make. I think it got further but fails on mod_spandsp_la-mod_spandsp_fax.lo

Creating mod_spandsp_la-mod_spandsp_fax.lo
quiet_libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../../src/include -I../../../../libs/xmlrpc-c -I/usr/local/src/freeswitch/libs/curl/include -I/usr/local/src/freeswitch/src/include -I/usr/local/src/freeswitch/src/include -I/usr/local/src/freeswitch/libs/libteletone/src -fPIC -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -I/opt/local/include -I/usr/local/src/freeswitch/libs/curl/include -I/usr/local/src/freeswitch/src/include -I/usr/local/src/freeswitch/src/include -I/usr/local/src/freeswitch/libs/libteletone/src -Werror -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g -ggdb -DMACOSX -DHAVE_OPENSSL -Wall -std=c99 -pedantic -Wdeclaration-after-statement -I/usr/local/src/freeswitch/libs/spandsp/src -I/usr/local/src/freeswitch/libs/tiff-3.8.2/libtiff -I/usr/local/src/freeswitch/libs/spandsp/src -I/usr/local/src/freeswitch/libs/tiff-3.8.2/libtiff -I. -g -O2 -pipe -no-cpp-precomp -MT mod_spandsp_la-mod_spandsp_fax.lo -MD -MP -MF .deps/mod_spandsp_la-mod_spandsp_fax.Tpo -c mod_spandsp_fax.c  -fno-common -DPIC -o .libs/mod_spandsp_la-mod_spandsp_fax.o
cc1: warnings being treated as errors
mod_spandsp_fax.c: In function 'spanfax_init':
mod_spandsp_fax.c:716: warning: passing argument 2 of 'span_log_set_message_handler' from incompatible pointer type
mod_spandsp_fax.c:716: error: too many arguments to function 'span_log_set_message_handler'
mod_spandsp_fax.c:717: warning: passing argument 2 of 'span_log_set_message_handler' from incompatible pointer type
mod_spandsp_fax.c:717: error: too many arguments to function 'span_log_set_message_handler'
mod_spandsp_fax.c:772: warning: passing argument 2 of 'span_log_set_message_handler' from incompatible pointer type
mod_spandsp_fax.c:772: error: too many arguments to function 'span_log_set_message_handler'
mod_spandsp_fax.c:773: warning: passing argument 2 of 'span_log_set_message_handler' from incompatible pointer type
mod_spandsp_fax.c:773: error: too many arguments to function 'span_log_set_message_handler'
mod_spandsp_fax.c:827: warning: passing argument 2 of 'span_log_set_message_handler' from incompatible pointer type
mod_spandsp_fax.c:827: error: too many arguments to function 'span_log_set_message_handler'
mod_spandsp_fax.c:828: warning: passing argument 2 of 'span_log_set_message_handler' from incompatible pointer type
mod_spandsp_fax.c:828: error: too many arguments to function 'span_log_set_message_handler'
make[4]: *** [mod_spandsp_la-mod_spandsp_fax.lo] Error 1
make[3]: *** [mod_spandsp-all] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Not sure if this is relevant but libjpeg is installed (via macports).

intellimac:~ terry$ ll /opt/local/lib | grep jpeg
-rwxr-xr-x    1 root      admin    243672 Mar  2 12:05 libjpeg.8.dylib*
-rw-r--r--    1 root      admin    288768 Mar  2 12:05 libjpeg.a
lrwxr-xr-x    1 root      admin        15 Mar  2 12:05 libjpeg.dylib@ -> libjpeg.8.dylib
-rwxr-xr-x    1 root      admin       911 Mar  2 12:05 libjpeg.la*
-rwxr-xr-x    1 root      admin    138528 May 14 09:21 libopenjpeg.1.dylib*
-rw-r--r--    1 root      admin    174392 May 14 09:21 libopenjpeg.a
lrwxr-xr-x    1 root      admin        19 May 14 09:21 libopenjpeg.dylib@ -> libopenjpeg.1.dylib
-rwxr-xr-x    1 root      admin       981 May 14 09:21 libopenjpeg.la*

Thanks for any pointers. (Well, not more incompatible pointer types... Badoom ching)

-Terry




Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list