[Freeswitch-dev] Mac OSX mod_portaudio build problem

Brian West brian.west at mac.com
Mon Oct 22 06:58:40 EDT 2007


I can tell you that it compiles on my intel mac without a problem...  
so it could be ppc specific.

/b

On Oct 22, 2007, at 5:52 AM, Tamas wrote:

> Thanks for info.
> Does this mean that it will resolve my issue? Or just I will have  
> newer
> version?
> If it is possible, I would like to have it working with the current  
> version.
>
> Regards,
>     Tamas
>
> Brian West írta:
>> If you visit apple.com and click on downloads you can download the
>> proper updates.  You'll also want to visit connect.apple.com and get
>> the latest dev tools.
>>
>> /b
>>
>> On Oct 22, 2007, at 2:12 AM, Tamas wrote:
>>
>>
>>> Hello,
>>>
>>> I have a build issue on Mac OSX 10.4.2 Mac Mini (PPC) - SVN r6015.
>>> In the 1st run FreeSWITCH (bootstrap.sh) complained for old
>>> automake so
>>> I hade to download Macports and install new automake (than set the
>>> PATH
>>> variable: PATH=/opt/local/bin:/opt/local/sbin:$PATH). After this  
>>> step,
>>> bootstrap.sh did it's work and configure made too.
>>>
>>> FS compiled fine in this step - with the default modules.conf
>>> settings.
>>> I added speex and portaudio, where speex was OK while at  
>>> mod_portaudio
>>> build, libs/portaudio compilation failed with:
>>> making all mod_portaudio
>>>  gcc -c -g -O2 -DPA_BIG_ENDIAN -arch i386 -arch ppc -isysroot
>>> /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.3 -I./ 
>>> include
>>> -I./src/common -I./src/os/unix -DPACKAGE_NAME=\"\"
>>> -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\"
>>> -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
>>> -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
>>> -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
>>> -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -
>>> DWORDS_BIGENDIAN=1
>>> -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DHAVE_NANOSLEEP=1
>>> -DPA_USE_COREAUDIO=1 -DHAVE_LIBKERN_OSATOMIC_H=1
>>> src/common/pa_cpuload.c  -fno-common -DPIC -o src/common/ 
>>> pa_cpuload.o
>>> cc1: error: invalid option 'macosx-version-min=10.3'
>>> cc1: error: invalid option 'macosx-version-min=10.3'
>>> lipo: can't figure out the architecture type of: /var/tmp//
>>> ccWylNiN.out
>>> make[6]: *** [src/common/pa_cpuload.lo] Error 1
>>> make[5]: *** [../../../../libs/portaudio/lib/libportaudio.la]  
>>> Error 2
>>> make[4]: *** [all] Error 1
>>> make[3]: *** [mod_portaudio-all] Error 1
>>> make[2]: *** [all-recursive] Error 1
>>> make[1]: *** [all-recursive] Error 1
>>> make: *** [all] Error 2
>>>
>>> As a quick hack I removed the -macosx-version-min=10.3 switch  
>>> from the
>>> libs/portaudio/Makefile file (2 places) and started again. make went
>>> over this issue but dropped this error:
>>>  gcc -c -g -O2 -DPA_BIG_ENDIAN -arch i386 -arch ppc -isysroot
>>> /Developer/SDKs/MacOSX10.4u.sdk -I./include -I./src/common
>>> -I./src/os/unix -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
>>> -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT= 
>>> \"\"
>>> -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
>>> -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -
>>> DHAVE_STRINGS_H=1
>>> -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -
>>> DHAVE_DLFCN_H=1
>>> -DWORDS_BIGENDIAN=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4
>>> -DHAVE_NANOSLEEP=1 -DPA_USE_COREAUDIO=1 -DHAVE_LIBKERN_OSATOMIC_H=1
>>> src/common/pa_cpuload.c  -fno-common -DPIC -o src/common/ 
>>> pa_cpuload.o
>>> src/common/pa_cpuload.c:55:20: error: assert.h: No such file or
>>> directory
>>> src/common/pa_cpuload.c:55:20: error: assert.h: No such file or
>>> directory
>>> lipo: can't figure out the architecture type of: /var/tmp//
>>> ccZF5Xkv.out
>>> make[6]: *** [src/common/pa_cpuload.lo] Error 1
>>> make[5]: *** [../../../../libs/portaudio/lib/libportaudio.la]  
>>> Error 2
>>> make[4]: *** [all] Error 1
>>> make[3]: *** [mod_portaudio-all] Error 1
>>> make[2]: *** [all-recursive] Error 1
>>> make[1]: *** [all-recursive] Error 1
>>> make: *** [all] Error 2
>>>
>>> As I'm a newbie in Mac and Mac OSX, I could make something wrong  
>>> with
>>> preparing the system, so this could be mine fault instead of  
>>> FS's. (I
>>> got a Mac Mini for testing with supervisor login, added xcodetools
>>> from
>>> the bundled CD than I continued adding subversion for Mac from  
>>> the net
>>> and then MacPorts).
>>>
>>> uname -a:
>>> Darwin visnet-303.lan 8.0.0 Darwin Kernel Version 8.0.0: Sat Mar 26
>>> 14:15:22 PST 2005; root:xnu-792.obj~1/RELEASE_PPC Power Macintosh
>>> powerpc
>>>
>>> visnet-303:~/fs supervisor$ sudo find / | grep assert.h
>>> Password:
>>> /Library/Frameworks/Python.framework/Versions/2.5/Resources/
>>> English.lproj/Documentation/ref/assert.html
>>> /System/Library/Frameworks/Kernel.framework/Versions/A/Headers/
>>> IOKit/assert.h
>>> /System/Library/Frameworks/Kernel.framework/Versions/A/Headers/kern/
>>> assert.h
>>> /usr/include/assert.h
>>> /usr/include/net-snmp/library/snmp_assert.h
>>> /usr/include/php/ext/standard/php_assert.h
>>>
>>>
>>> Unfortunately the "Software upgrade" doesn't work on this mac (it  
>>> just
>>> crashes) so I don't know how to upgrade to newer versions (like
>>> 10.4.9).
>>>
>>> Thank you in advance,
>>>
>>>   Tamas
>>>
>>> _______________________________________________
>>> Freeswitch-dev mailing list
>>> Freeswitch-dev at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/ 
>>> freeswitch-dev
>>> http://www.freeswitch.org
>>>
>>
>>
>> _______________________________________________
>> Freeswitch-dev mailing list
>> Freeswitch-dev at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch- 
>> dev
>> http://www.freeswitch.org
>>
>>
>
>
> _______________________________________________
> Freeswitch-dev mailing list
> Freeswitch-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org




More information about the Freeswitch-dev mailing list