[ECOS] invalid conversion from void* to void**

robert sebestyen sebestyenrobert@hotmail.com
Thu May 4 13:02:00 GMT 2006


Hi Andrew, you are right it is netbuf_data , occuring that problem,
I tried already the way netbuf_data(buf,(void**)&data,&len);
I got doing that the linkermessages
undefined references to ntohl, netconn_new, and sys_thread_new;
it is somehow crazy cause the objectfiles are existing but he does not found 
the references

obj/maintask.o(.text+0x1f4): In function `httpget':
src/maintask.cxx:281: undefined reference to `netconn_new(netconn_type)'
obj/maintask.o(.text+0x228):src/maintask.cxx:287: undefined reference to 
`ntohl(unsigned long)'
obj/maintask.o(.text+0x250):src/maintask.cxx:287: undefined reference to 
`ntohl(unsigned long)'
obj/maintask.o(.text+0x278):src/maintask.cxx:287: undefined reference to 
`ntohl(unsigned long)'
obj/maintask.o(.text+0x2a0):src/maintask.cxx:287: undefined reference to 
`ntohl(unsigned long)'
obj/maintask.o(.text+0x3ec): In function `ppp_modem()':
src/maintask.cxx:374: undefined reference to `ntohl(unsigned long)'
obj/maintask.o(.text+0x414):src/maintask.cxx:374: more undefined references 
to `ntohl(unsigned long)' follow
obj/maintask.o(.text+0x4a4): In function `ppp_modem()':
src/maintask.cxx:380: undefined reference to `sys_thread_new(void 
(*)(void*), void*, int)'
collect2: ld returned 1 exit status
make: *** [sirf_demo.out] Error 1
make: Target `all' not remade because of errors.


>From: Andrew Lunn <andrew@lunn.ch>
>To: robert sebestyen <sebestyenrobert@hotmail.com>
>CC: ecos-discuss@ecos.sourceware.org
>Subject: Re: [ECOS] invalid conversion from void* to void**
>Date: Thu, 4 May 2006 14:40:25 +0200
>
>On Thu, May 04, 2006 at 01:28:29PM +0200, robert sebestyen wrote:
> > First, I would like to apologize myself  for disturbing you with my 
>problem.
> >
> > I implemented a lwIP into an existing project running on OS ecos, when i
> > call the data i receive always invalid conversion from void* to void**! 
>I
> > call the lwIP with the following code:
>
>You don't say which function call is actually giving you the warnings.
>My guess is it is:
>
> > netbuf_data(buf,(void*)&data,&len);
>
>
>in aph.h we have:
>
>err_t netbuf_data (struct netbuf *buf, void **dataptr, u16_t *len);
>
>your second parameter is wrong. You pass a void *, not a void **.
>
>      Andrew



-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list