[libnice] fail to run simple-example on ARM...
Philip Withnall
philip at tecnocode.co.uk
Mon Aug 31 04:41:49 PDT 2015
Hi,
On Mon, 2015-08-31 at 19:13 +0800, Jack Wang wrote:
> 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 }
> --
Try changing the g_socket_bind() line to:
GError *bind_error = NULL;
gret = g_socket_bind (gsock, gaddr, FALSE, &bind_error);
if (bind_error != NULL) {
g_message ("%s: Bind error for %s: %s", G_STRFUNC,
nice_address_to_string (addr), bind_error->message);
g_error_free (bind_error);
}
and see what error message is printed.
Philip
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 213 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/nice/attachments/20150831/1cc9ae31/attachment.sig>
More information about the nice
mailing list