Conflict on compiling Soket

36 views
Skip to first unread message

Fatemeh

unread,
Apr 16, 2011, 7:50:44 AM4/16/11
to Siphon
Hi dears,
In building project for checking network I got error conflicting types
for socklen_t, when I removed the Reachability files from project my
app build successful and I can make a call but I need to check WIFI
connection and so need to reachability files. I know the headers are
defined on .m file that make conflict by headers that are defined on
socket.h file of PJSIP lib.
The reach abilityheaders:
#import <sys/socket.h>
#import <netinet/in.h>
#import <netinet6/in6.h>
#import <arpa/inet.h>
#import <ifaddrs.h>
#include <netdb.h>

Please help me...
Thanks

Samuel Vinson

unread,
Apr 16, 2011, 8:57:28 AM4/16/11
to sip...@googlegroups.com, Fatemeh
Hi

Which version of pjsip do you use ?
Did you define PJ_AUTOCONF to 1 when you compile Siphon (processing directive) ?

Regards

Samuel

2011/4/16 Fatemeh <fa.sh...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Siphon" group.
To post to this group, send email to sip...@googlegroups.com.
To unsubscribe from this group, send email to siphon+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/siphon?hl=en.


Alejandro Orellana

unread,
Apr 16, 2011, 11:14:18 AM4/16/11
to sip...@googlegroups.com
i commented the definition in pjsip.  and has worked just fine for me.

Cheers

fatemeh shapouri

unread,
Apr 17, 2011, 8:03:47 AM4/17/11
to sip...@googlegroups.com
@samuel : No I did not do any config on PJ_AUTOCONF. Where I should define this 1?
@Alejandro: Thanks
--
Regard,
Fatemeh

Samuel Vinson

unread,
Apr 17, 2011, 9:16:03 AM4/17/11
to sip...@googlegroups.com
In the xcode project, you could define it in preprocessor macros (gcc 4.2 - Preprocessing)

Samuel

2011/4/17 fatemeh shapouri <fa.sh...@gmail.com>

Fatemeh

unread,
Apr 19, 2011, 3:59:00 AM4/19/11
to Siphon
Thanks Samuel for your help, My problem fixed.

On Apr 17, 5:16 pm, Samuel Vinson <samuelv0...@gmail.com> wrote:
> In the xcode project, you could define it in preprocessor macros (gcc 4.2 -
> Preprocessing)
>
> Samuel
>
> 2011/4/17 fatemeh shapouri <fa.shapo...@gmail.com>
>
>
>
>
>
>
>
> > @samuel : No I did not do any config on PJ_AUTOCONF. Where I should define
> > this 1?
> > @Alejandro: Thanks
>
> > On Sat, Apr 16, 2011 at 7:44 PM, Alejandro Orellana <
> > chilote.orell...@gmail.com> wrote:
>
> >> i commented the definition in pjsip.  and has worked just fine for me.
>
> >> Cheers
>
Reply all
Reply to author
Forward
0 new messages