[libnice] fail to run simple-example on ARM...

Jack Wang antirazin at gmail.com
Mon Aug 31 04:13:09 PDT 2015


Hi,


I put the simple-example (by libnice 0.1.13) and required libraries
(libgio-2.0.so.0  , libglib-2.0.so.0   ,  libgmodule-2.0.so.0 ,
libgobject-2.0.so.0  , libgthread-2.0.so.0 and libffi.so.6) into the same
folder,
of course ,
all files be compiled in ARM architecture.

But when I run the sample binary file,
I got the following error:

=================================================
mv7:/tmp# ./simple-example 0 stun-turn.org

** (process:23277): ERROR **: Failed to start candidate gathering
Trace/breakpoint trap
=================================================

I traced the error back in codes of libnice and found the following part in
socket/udp-bsd.c

--
118   /* GSocket: All socket file descriptors are set to be close-on-exec.
*/
119   g_socket_set_blocking (gsock, false);
120   gaddr = g_socket_address_new_from_native (&name.addr, sizeof (name));
121   if (gaddr != NULL) {
122     gret = g_socket_bind (gsock, gaddr, FALSE, NULL);
123     g_object_unref (gaddr);
124   }
--


In line 122, the g_socket_bind  return a negative value,
I think this means it's the socket bind error,
however , I don't know why this happen in ARM.

Any suggestions?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/nice/attachments/20150831/b4528204/attachment.html>


More information about the nice mailing list