Compile error on Snow Leopard

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Replace third_party/portaudio with the latest from portaudio trunk.
That did the trick for me on Snow Leopard.

Best regards,

Even Andr?

On 7. nov. 2009, at 20.36, Saul Ibarra Corretge wrote:

> Hi,
>
> On Nov 3, 2009, at 8:20 AM, Saul Ibarra Corretge wrote:
>
>> Hi Perry,
>>
>> I made some progress, but I can't get it working yet. I upgraded  
>> portaudio to revision 1420 (todays trunk) and it compiles, but when  
>> trying to make a call I get the following assertion error from  
>> portaudio:
>>
>> Assertion failed: (sizeof( UInt32 ) == sizeof( long )), function
>> ringBufferIOProc, file src
>> /../../../portaudio/src/hostapi/coreaudio/
>>
>> pa_mac_core.c, line 1722.
>>
>
> According to the portaudio guys there is a bug somewhere which  
> prevents it from compiling...
>
>> I guess that it has something to do with some compiler flag, but  
>> couldn't figure it out yet. Any clue? Also if I add the '-arch  
>> x86_64' CFLAG I get the same result.
>>
>> Last test I made was passing '-arch i386' CFLAG and now I'm getting  
>> errors in the PJSIP side:
>>
>> ld: warning: in output/pjlib-test-i386-apple-darwin10.0.0/main.o,  
>> file is not of required architecture
>> ld: warning: in output/pjlib-test-i386-apple-darwin10.0.0/ 
>> activesock.o, file is not of required architecture
>> ld: warning: in output/pjlib-test-i386-apple-darwin10.0.0/atomic.o,  
>> file is not of required architecture
>> ld: warning: in output/pjlib-test-i386-apple-darwin10.0.0/ 
>> echo_clt.o, file is not of required architecture
>> ld: warning: in output/pjlib-test-i386-apple-darwin10.0.0/errno.o,  
>> file is not of required architecture
>> ld: warning: in output/pjlib-test-i386-apple-darwin10.0.0/ 
>> exception.o, file is not of required architecture
>> ld: warning: in output/pjlib-test-i386-apple-darwin10.0.0/ 
>> fifobuf.o, file is not of required architecture
>> ld: warning: in output/pjlib-test-i386-apple-darwin10.0.0/file.o,  
>> file is not of required architecture
>> ld: warning: in output/pjlib-test-i386-apple-darwin10.0.0/ 
>> hash_test.o, file is not of required architecture
>> ld: warning: in output/pjlib-test-i386-apple-darwin10.0.0/ 
>> ioq_perf.o, file is not of required architecture
>> ld: warning: in output/pjlib-test-i386-apple-darwin10.0.0/ 
>> ioq_udp.o, file is not of required architecture
>> ld: warning: in output/pjlib-test-i386-apple-darwin10.0.0/ 
>> ioq_unreg.o, file is not of required architecture
>> ld: warning: in output/pjlib-test-i386-apple-darwin10.0.0/ 
>> ioq_tcp.o, file is not of required architecture
>> ld: warning: in output/pjlib-test-i386-apple-darwin10.0.0/list.o,  
>> file is not of required architecture
>> ld: warning: in output/pjlib-test-i386-apple-darwin10.0.0/mutex.o,  
>> file is not of required architecture
>> ld: warning: in output/pjlib-test-i386-apple-darwin10.0.0/os.o,  
>> file is not of required architecture
>> ld: warning: in output/pjlib-test-i386-apple-darwin10.0.0/pool.o,  
>> file is not of required architecture
>> ld: warning: in output/pjlib-test-i386-apple-darwin10.0.0/ 
>> pool_perf.o, file is not of required architecture
>> ld: warning: in output/pjlib-test-i386-apple-darwin10.0.0/rand.o,  
>> file is not of required architecture
>> ld: warning: in output/pjlib-test-i386-apple-darwin10.0.0/rbtree.o,  
>> file is not of required architecture
>> ld: warning: in output/pjlib-test-i386-apple-darwin10.0.0/select.o,  
>> file is not of required architecture
>> ld: warning: in output/pjlib-test-i386-apple-darwin10.0.0/sleep.o,  
>> file is not of required architecture
>> ld: warning: in output/pjlib-test-i386-apple-darwin10.0.0/sock.o,  
>> file is not of required architecture
>> ld: warning: in output/pjlib-test-i386-apple-darwin10.0.0/ 
>> sock_perf.o, file is not of required architecture
>> ld: warning: in output/pjlib-test-i386-apple-darwin10.0.0/string.o,  
>> file is not of required architecture
>> ld: warning: in output/pjlib-test-i386-apple-darwin10.0.0/test.o,  
>> file is not of required architecture
>> ld: warning: in output/pjlib-test-i386-apple-darwin10.0.0/thread.o,  
>> file is not of required architecture
>> ld: warning: in output/pjlib-test-i386-apple-darwin10.0.0/timer.o,  
>> file is not of required architecture
>> ld: warning: in output/pjlib-test-i386-apple-darwin10.0.0/ 
>> timestamp.o, file is not of required architecture
>> ld: warning: in output/pjlib-test-i386-apple-darwin10.0.0/ 
>> udp_echo_srv_sync.o, file is not of required architecture
>> ld: warning: in output/pjlib-test-i386-apple-darwin10.0.0/ 
>> udp_echo_srv_ioqueue.o, file is not of required architecture
>> ld: warning: in output/pjlib-test-i386-apple-darwin10.0.0/util.o,  
>> file is not of required architecture
>> ld: warning: in ../lib/libpj-i386-apple-darwin10.0.0.a, file is not  
>> of required architecture
>> Undefined symbols:
>> "_main", referenced from:
>>     start in crt1.10.6.o
>> ld: symbol(s) not found
>> collect2: ld returned 1 exit status
>> make[2]: *** [../bin/pjlib-test-i386-apple-darwin10.0.0] Error 1
>> make[1]: *** [pjlib-test] Error 2
>> make: *** [all] Error 1
>>
>
> But this seems to be related to the pjsip compilation itself. I  
> tried to enforece 32bits by adding -arch i386 -m32 but I get the  
> same errors...
>
> Is there something else I can try?
>
> Thanks!
>
>
> -- 
> Saul Ibarra Corretge
> AG Projects
>
>
>
>
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org





[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux