[libnice] fail to run simple-example on ARM...
Jack Wang
antirazin at gmail.com
Tue Sep 8 05:43:45 PDT 2015
Just using some api to set with my interface card :P
You mean this?
2015-09-04 15:22 GMT+08:00 Philip Withnall <philip at tecnocode.co.uk>:
> On Tue, 2015-09-01 at 11:04 +0800, Jack Wang wrote:
> > Hi Philip,
> >
> > Thanks for your quick reply :)
> > I got the following log after applying the changes:
> >
> > =======================================
> >
> > libnice-socket-Message: nice_udp_bsd_socket_new: Bind error for
> > fc00::1: Error binding to address: Cannot assign requested address
> >
> > =======================================
> >
> *snip*
> >
> > It declared that fc00::/8 is undefined so far and fd::00/8 are
> > similar to private address of IPv4,
> > so if I want to define a default IPv6 local address, I should set a
> > fd00 prefix one, right?
>
> Correct. Where are you setting this address?
>
> Philip
>
> > Anyway, thanks for help! :)
> >
> > 2015-08-31 19:41 GMT+08:00 Philip Withnall <philip at tecnocode.co.uk>:
> > > 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 --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/nice/attachments/20150908/d6bd74ec/attachment.html>
More information about the nice
mailing list