From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21380 invoked by alias); 4 May 2006 13:02:21 -0000 Received: (qmail 21372 invoked by uid 22791); 4 May 2006 13:02:21 -0000 X-Spam-Check-By: sourceware.org Received: from bay19-f3.bay19.hotmail.com (HELO hotmail.com) (64.4.53.53) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 04 May 2006 13:02:14 +0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 4 May 2006 06:02:12 -0700 Message-ID: Received: from 213.164.18.140 by by19fd.bay19.hotmail.msn.com with HTTP; Thu, 04 May 2006 13:02:08 GMT X-Sender: sebestyenrobert@hotmail.com In-Reply-To: <20060504124025.GE3797@lunn.ch> From: "robert sebestyen" To: andrew@lunn.ch Cc: ecos-discuss@ecos.sourceware.org Bcc: Date: Thu, 04 May 2006 13:02:00 -0000 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] invalid conversion from void* to void** X-SW-Source: 2006-05/txt/msg00012.txt.bz2 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 >To: robert sebestyen >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