[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] problems compiling lwIP
From: |
jack W |
Subject: |
Re: [lwip-users] problems compiling lwIP |
Date: |
Fri, 10 Dec 2004 09:33:21 +0800 |
hi franz keuner,
these errors are grammar errors, the files that you write following is
required to run lwip on your project.you must have patience.
>Hi,
>I tried to find out which files I need for my project (no operating system,
>ip, icmp, tcp and udp support).
>
>I studied the lwIP architecture (I created a document with doxygen using the
>sourcecode -head version of lwIP; thanks for the piece of advice concerning
>the Task compiler problem)).
>
>I added the listed below files (newest version where it`s possible) to my
>project. Anything important missing?
>
>In my main file I try to initialise the stack with the following commands:
> mem_init(); memp_init(); pbuf_init(); netif_init(); ip_init(); udp_init();
>tcp_init(); that`s all for the moment.
>
>If I try to compile this main function I get some errors ("lwipopts.h" not
>found,"arch/sys_arch.h" not found). As a result I added a lwipopts.h for my
>MCU specifing that I don't use an operating system.
>With this file main compiled successfully.
>
>But trying to execute "make" for my project there are errors:
>netif\cs8900if.c:
> 631: p = etharp_output(netif, ipaddr, p);
>E 160: pointer mismatch at '='
> 683: q = etharp_ip_input(netif, p);
>E 160: pointer mismatch at '='
> 693: q = etharp_arp_input(netif, (struct eth_addr *)&netif->hwaddr,
>p);
>E 160: pointer mismatch at '='
>
>(when I`m using an older version of the file etharp.h the compiling process
>goes a little bit further.)
>the next error again in connection with etharp:
>lwip\src\netif\etharp.c:
>if ((ETHARP_ALWAYS_INSERT) || (flags & ARP_INSERT_FLAG))
>E 117: "ETHARP_ALWAYS_INSERT" undefined
>
>if I modify the code of etharp.c by adding:
>#ifndef ETHARP_ALWAYS_INSERT
>#define ETHARP_ALWAYS_INSERT 1
>#endif
>
>The making process ends with this modifications but not really successful:
>Linking and locating to project.out
>E 243: module inet.obj (INET_C): symbol '_htons': multiply defined
>E 243: module inet.obj (INET_C): symbol '_ntohs': multiply defined
>E 243: module inet.obj (INET_C): symbol '_htonl': multiply defined
>E 243: module inet.obj (INET_C): symbol '_ntohl': multiply defined
>total errors: 4, warnings: 0
>
>I hope somebody can help...
>Thanks and regards,
>
>Franz
>
>
>
>Files included at the moment:
>..\src\c167\lib.c
>..\src\c167\main.c
>..\src\c167\perf.c
>..\src\c167\include\arch\cc.h
>..\src\c167\include\arch\cpu.h
>..\src\c167\include\arch\lib.h
>..\src\c167\include\arch\perf.h
>..\src\c167\include\netif\cs8900if.h
>..\src\c167\netif\cs8900if.c
>..\src\lwip\src\core\inet.c
>..\src\lwip\src\core\mem.c
>..\src\lwip\src\core\memp.c
>..\src\lwip\src\core\netif.c
>..\src\lwip\src\core\pbuf.c
>..\src\lwip\src\core\raw.c
>..\src\lwip\src\core\stats.c
>..\src\lwip\src\core\tcp.c
>..\src\lwip\src\core\tcp_in.c
>..\src\lwip\src\core\tcp_out.c
>..\src\lwip\src\core\udp.c
>..\src\lwip\src\core\ipv4\icmp.c
>..\src\lwip\src\core\ipv4\ip.c
>..\src\lwip\src\core\ipv4\ip_addr.c
>..\src\lwip\src\core\ipv4\ip_frag.c
>..\src\lwip\src\include\ipv4\lwip\icmp.h
>..\src\lwip\src\include\ipv4\lwip\inet.h
>..\src\lwip\src\include\ipv4\lwip\ip.h
>..\src\lwip\src\include\ipv4\lwip\ip_addr.h
>..\src\lwip\src\include\ipv4\lwip\ip_frag.h
>..\src\lwip\src\include\ipv6\lwip\ip.h
>..\src\lwip\src\include\lwip\arch.h
>..\src\lwip\src\include\lwip\debug.h
>..\src\lwip\src\include\lwip\def.h
>..\src\lwip\src\include\lwip\err.h
>..\src\lwip\src\include\lwip\etharp.h
>..\src\lwip\src\include\lwip\loopif.h
>..\src\lwip\src\include\lwip\mem.h
>..\src\lwip\src\include\lwip\memp.h
>..\src\lwip\src\include\lwip\netif.h
>..\src\lwip\src\include\lwip\opt.h
>..\src\lwip\src\include\lwip\pbuf.h
>..\src\lwip\src\include\lwip\raw.h
>..\src\lwip\src\include\lwip\stats.h
>..\src\lwip\src\include\lwip\tcp.h
>..\src\lwip\src\include\lwip\udp.h
>..\src\lwip\src\include\netif\etharp.h
>..\src\lwip\src\include\netif\loopif.h
>..\src\lwip\src\netif\etharp.c
>..\src\lwip\src\netif\loopif.c
>..\src\lwip\src\include\lwip\lwipopts.h
>
>--
>NEU +++ DSL Komplett von GMX +++ http://www.gmx.net/de/go/dsl
>GMX DSL-Netzanschluss + Tarif zum superg�nstigen Komplett-Preis!
>
>
>_______________________________________________
>lwip-users mailing list
>address@hidden
>http://lists.nongnu.org/mailman/listinfo/lwip-users
= = = = = = = = = = = = = = = = = = = =
致
礼!
jack W
address@hidden
2004-12-10