class 'OsPtrLock<T>' is implicitly friends with itself

6 views
Skip to first unread message

Chiang

unread,
Sep 23, 2010, 6:39:30 AM9/23/10
to sipxtapi
Hi all,

I think this is the rightful mailing list to ask, as I have mistakenly
placed the same question on the SIP Foundry mailing list!

I'm trying to compile sipXportLib on Linux, and I'm seeing this error:

class 'OsPtrLock<T>' is implicitly friends with itself

I'm using gcc version 4. May I know how can I best get round this
problem?

Thank you.

Chiang

Jaroslav Libak

unread,
Sep 23, 2010, 2:42:47 PM9/23/10
to sipx...@googlegroups.com
Hello

It is now fixed in trunk. Just update the source code. If you discover
any other problems let me know.

Jaro

Chiang schrieb:

Chiang

unread,
Oct 8, 2010, 9:35:01 AM10/8/10
to sipxtapi
Thanks Jaro. It's back to work again for me.

Now found that I have problem calling gettid when compiling
sipXportLib:

os/linux/OsProcessLinux.cpp:359: error: 'gettid' was not declared in
this scope

Should syscall be used instead?

Chiang

Chiang

unread,
Oct 12, 2010, 7:10:59 AM10/12/10
to sipxtapi
I've replaced

return (TID)gettid();

with

return syscall(224);

Not sure if there's a more elegant way to do it, as __NR_gettid is not
declared as well, and hope this is not going to break anything in
sipXtapi.

cheers

Chiang
Reply all
Reply to author
Forward
0 new messages