回复: 回复: rtems libbsd gethostbyname did not work
葡萄
29171383 at qq.com
Fri Jul 1 01:52:01 UTC 2016
sorrry jonhs, I am not familiar with maillist,I will try to study how to use maillist
------------------ 原始邮件 ------------------
发件人: "Chris Johns";<chrisj at rtems.org>;
发送时间: 2016年7月1日(星期五) 上午9:45
收件人: "葡萄"<29171383 at qq.com>;
主题: Re: 回复: rtems libbsd gethostbyname did not work
Please reply to the list.Thanks.
On 01/07/2016 11:43, 葡萄 wrote:
>
> I use libbsd version 4.11 ,git from github, rtems version is 4.11 from
> github, tools version is
> arm-rtems4.11-gcc --version
> arm-rtems4.11-gcc (GCC) 4.9.3 20150626 (RTEMS 4.11, RSB
> 1675a733536d1aec2020011e5e522497a442561a-modified, Newlib 2.2.0.20150423)
> Copyright (C) 2015 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> i think i did not do some simple thing right
>
> ------------------ 原始邮件 ------------------
> *发件人:* "Chris Johns";<chrisj at rtems.org>;
> *发送时间:* 2016年7月1日(星期五) 上午9:38
> *收件人:* "葡萄"<29171383 at qq.com>; "users"<users at rtems.org>;
> *主题:* Re: rtems libbsd gethostbyname did not work
>
> On 30/06/2016 23:42, 葡萄 wrote:
> > hi,I port a usb driver form freebsd for 4G dongle, it work ,but I cannot
> > use gethostbyname ,I add some code for debug,find in
> > freebsd/lib/libc/net/gethostnamadr.c line 581 _nsdispatch return
> > failure, in function _nsdispatch ,
> >
> > if (isthreaded) {
> > result = _pthread_rwlock_rdlock(&nss_lock);
> > if (result != 0) {
> > printf("nsdispatch pthread rd lock failure %d!\n",result);
> > result = NS_UNAVAIL;
> > goto fin;
> > }
> > }
> > _pthread_rwlock_rdlock return invalid, can you give me some advise? how
> > can i let gethostbyname work?
>
> Thank you for reporting this.
>
> > *** RTEMS Info ***
> > COPYRIGHT (c) 1989-2008.
> > On-Line Applications Research Corporation (OAR).
> > rtems-4.10.99.0(ARM/ARMv4/am335x)
>
> What version of libbsd, RTEMS, and tools are you using?
>
> Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20160701/a77ef2c8/attachment-0002.html>
More information about the users
mailing list