public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: robert sebestyen <sebestyenrobert@hotmail.com>
Cc: andrew@lunn.ch, ecos-discuss@ecos.sourceware.org
Subject: Re: [ECOS] invalid conversion from void* to void**
Date: Thu, 04 May 2006 13:19:00 -0000	[thread overview]
Message-ID: <20060504131618.GF3797@lunn.ch> (raw)
In-Reply-To: <BAY19-F3C8F8EC441D6D70DD26C8B7B40@phx.gbl>

On Thu, May 04, 2006 at 03:02:08PM +0200, robert sebestyen wrote:
> 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.

This looks like a header file problem:

include/lwip/inet.h:
#if BYTE_ORDER == BIG_ENDIAN
#define htons(x) (x)
#define ntohs(x) (x)
#define htonl(x) (x)
#define ntohl(x) (x)
#else
#ifdef LWIP_PREFIX_BYTEORDER_FUNCS
/* workaround for naming collisions on some platforms */
#define htons lwip_htons
#define ntohs lwip_ntohs
#define htonl lwip_htonl
#define ntohl lwip_ntohl
#endif

Note you are only getting linker errors in your code. The lwip code
itself is happy.

I guess you have not included the correct header file(s).

  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

  reply	other threads:[~2006-05-04 13:19 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-04 11:43 robert sebestyen
2006-05-04 12:40 ` Andrew Lunn
2006-05-04 13:02   ` robert sebestyen
2006-05-04 13:19     ` Andrew Lunn [this message]
2006-05-04 13:31       ` robert sebestyen
2006-05-04 13:33         ` Andrew Lunn
2006-05-04 13:43           ` robert sebestyen
2006-05-04 13:54             ` Andrew Lunn
2006-05-04 14:16               ` robert sebestyen
2006-05-04 14:31                 ` Andrew Lunn
2006-05-04 20:42                 ` [ECOS] eCos port on SPEAR-07-NC03 Evgeny Belyanco
2006-05-05  7:29                   ` Andrew Lunn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060504131618.GF3797@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=ecos-discuss@ecos.sourceware.org \
    --cc=sebestyenrobert@hotmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).