Pekka Pessi wrote:
> 2007/11/6, Youness Alaoui <[EMAIL PROTECTED]>:
>   
>> Attached is a patch that will allow sofia-sip to compile correctly for
>> the iPhone. The issue is that many files (20 files in total) are using
>> printf/fprintf/etc.. without ever including stdio.h which is needed to
>> use these functions. Apparently gcc by default includes that header or
>> something, but with the toolchain for the iPhone it doesn't.
>>     
>
> Thanks for the patch. I'll apply that.
>
>   
Thanks

>> Also note that sofia-sip uses some functions from the
>> SystemConfiguration framework when compiled on Mac OS X (iPhone), but
>> the Makefile doesn't have a "-framework SystemConfiguration" option.
>> This should be fixed too (not included in the attached patch). I fixed
>> it by adding the -framework SystemConfiguration hardcoded into
>> Makefile.in, but it should be fixed differently.
>>     
>
> Is the option -framework SystemConfiguration niided in CFLAGS or
> where? By the way, what kind of toolchain you are using with iPhone?
>
>   
Oh sorry, forgot to mention that the option should be added to the LIBS 
variable. Below is the 'hacked' patch that adds the option to the right 
variable. It should just be moved into adding it from the configure 
instead of hardcoding it in the Makefile (only for Mac compilations and 
don't use 'uname' so that it works even when cross compiling) :

diff -ru sofia-sip-1.12.7.orig/libsofia-sip-ua/Makefile.in 
sofia-sip-1.12.7/libsofia-sip-ua/Makefile.in
--- sofia-sip-1.12.7.orig/libsofia-sip-ua/Makefile.in   2007-10-17 
07:03:32.000000000 -0400
+++ sofia-sip-1.12.7/libsofia-sip-ua/Makefile.in        2007-10-26 
16:18:30.000000000 -0400
@@ -193,7 +193,7 @@
 LD = @LD@
 LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
+LIBS = -framework SystemConfiguration @LIBS@
 LIBTOOL = @LIBTOOL@
 LIBVER_SOFIA_SIP_UA_AGE = @LIBVER_SOFIA_SIP_UA_AGE@
 LIBVER_SOFIA_SIP_UA_CUR = @LIBVER_SOFIA_SIP_UA_CUR@



I was using the iphone-dev team toolchain available at : 
http://code.google.com/p/iphone-dev/

Thanks,
Youness.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to