AW: [En-Nut-Discussion] compile problem in ethernut 4.x ?

def at fea.kiev.ua def at fea.kiev.ua
Fri Feb 3 11:21:13 CET 2006


On Fri, February 3, 2006 11:55 am, Ing. Joachim Skale wrote:
> if i'm not totally blind, there aren't any differences.
>

I comment 2 strings do disable dhcp configure of network inteface

Another words I wand use ny own configuration of network interface without
any EEPROM configuration and DHCP.

> -----Ursprüngliche Nachricht-----
> Von: en-nut-discussion-bounces at egnite.de
> [mailto:en-nut-discussion-bounces at egnite.de]Im Auftrag von
> def at fea.kiev.ua Gesendet: Freitag, 03. Februar 2006 10:17
> An: en-nut-discussion at egnite.de
> Betreff: [En-Nut-Discussion] compile problem in ethernut 4.x ?
>
>
>
> Hi!
> I try to compile exsamle in ethernut 4.0.1 "httpd" with winavr-20050214
> All compile without problem, but if I make some change:
>
>
> /*
> * LAN configuration using EEPROM values or DHCP/ARP method.
> * If it fails, use fixed values.
> */
> if (NutDhcpIfConfig("eth0", 0, 60000)) { u_char mac[] = { MYMAC }; u_long
> ip_addr = inet_addr(MYIP); u_long ip_mask = inet_addr(MYMASK);
>
> puts("EEPROM/DHCP/ARP config failed"); NutNetIfConfig("eth0", mac,
> ip_addr, ip_mask); }
>
>
> convert to:
>
> /*
> * LAN configuration using EEPROM values or DHCP/ARP method.
> * If it fails, use fixed values.
> */
> //    if (NutDhcpIfConfig("eth0", 0, 60000)) {
> u_char mac[] = { MYMAC }; u_long ip_addr = inet_addr(MYIP); u_long
ip_mask =
> inet_addr(MYMASK);
>
> puts("EEPROM/DHCP/ARP config failed"); NutNetIfConfig("eth0", mac,
> ip_addr, ip_mask); //    }
>
>
> I get that compile error:
>
>
> c:\Work\ethernut\ethernut-4.0.1\nutapp\httpd>make
> avr-gcc -c -mmcu=atmega128 -Os -fno-delete-null-pointer-checks -Wall
> -Wstrict-pr
> ototypes -Wa,-ahlms=httpserv.lst -DETHERNUT1 -D__HARVARD_ARCH__
> -Ic:/WORK/ethern
> ut/ethernut-4.0.1/nutbld//include
> -Ic:/WORK/ethernut/ethernut-4.0.1/nut//includ
> e  httpserv.c -o httpserv.o httpserv.c: In function `ShowSockets':
> httpserv.c:341: warning: assignment discards qualifiers from pointer
> target type
>
> httpserv.c:344: warning: assignment discards qualifiers from pointer
> target type
>
> httpserv.c:347: warning: assignment discards qualifiers from pointer
> target type
>
> httpserv.c:350: warning: assignment discards qualifiers from pointer
> target type
>
> httpserv.c:353: warning: assignment discards qualifiers from pointer
> target type
>
> httpserv.c:356: warning: assignment discards qualifiers from pointer
> target type
>
> httpserv.c:359: warning: assignment discards qualifiers from pointer
> target type
>
> httpserv.c:362: warning: assignment discards qualifiers from pointer
> target type
>
> httpserv.c:365: warning: assignment discards qualifiers from pointer
> target type
>
> httpserv.c:368: warning: assignment discards qualifiers from pointer
> target type
>
> httpserv.c:371: warning: assignment discards qualifiers from pointer
> target type
>
> httpserv.c:374: warning: assignment discards qualifiers from pointer
> target type
>
> c:\work\ethernut\ethernut-4.0.1\nut\tools\win32\crurom.exe -r -ourom.c
> sample avr-gcc -c -mmcu=atmega128 -Os -fno-delete-null-pointer-checks
> -Wall
> -Wstrict-pr
> ototypes -Wa,-ahlms=urom.lst -DETHERNUT1 -D__HARVARD_ARCH__
> -Ic:/WORK/ethernut/e
> thernut-4.0.1/nutbld//include
> -Ic:/WORK/ethernut/ethernut-4.0.1/nut//include  u
> rom.c -o urom.o avr-gcc httpserv.o urom.o -mmcu=atmega128
> -Wl,--defsym=main=0,-Map=httpserv.map,
> --cref -Lc:/WORK/ethernut/ethernut-4.0.1/nutbld/lib/
> c:/WORK/ethernut/ethernut-4
> .0.1/nutbld/lib//nutinit.o  -lnutpro -lnutos -lnutarch -lnutdev -lnutnet
> -lnutfs
> -lnutcrt -o httpserv.elf
> c:/WORK/ethernut/ethernut-4.0.1/nutbld/lib/\libnutarch.a(nicrtl.o)(.text+0
> x348):
> In function `NicInterrupt':
> : undefined reference to `NutEventPostFromIrq'
> c:/WORK/ethernut/ethernut-4.0.1/nutbld/lib/\libnutarch.a(nicrtl.o)(.text+0
> x420):
> In function `NicRx':
> : undefined reference to `NutEventWait'
> c:/WORK/ethernut/ethernut-4.0.1/nutbld/lib/\libnutnet.a(tcpsock.o)(.text+0
> x4a2):
> In function `NutTcpSend':
> : undefined reference to `NutEventWait'
> c:/WORK/ethernut/ethernut-4.0.1/nutbld/lib/\libnutnet.a(tcpsock.o)(.text+0
> x5a4):
> In function `NutTcpReceive':
> : undefined reference to `NutEventWait'
> c:/WORK/ethernut/ethernut-4.0.1/nutbld/lib/\libnutnet.a(ifconfig.o)(.text+
> 0x2b4)
> : In function `NutNetIfConfig2':
> : undefined reference to `NutEventBroadcast'
> c:/WORK/ethernut/ethernut-4.0.1/nutbld/lib/\libnutnet.a(ifconfig.o)(.text+
> 0x2d8)
> : In function `NutNetIfConfig2':
> : undefined reference to `NutEventWait'
> c:/WORK/ethernut/ethernut-4.0.1/nutbld/lib/\libnutnet.a(tcpsm.o)(.text+0x3
> 18):
> I
> n function `NutTcpStateChange': : undefined reference to
> `NutEventPostAsync'
> c:/WORK/ethernut/ethernut-4.0.1/nutbld/lib/\libnutnet.a(tcpsm.o)(.text+0x3
> 28):
> I
> n function `NutTcpStateChange': : undefined reference to
> `NutEventBroadcast'
> c:/WORK/ethernut/ethernut-4.0.1/nutbld/lib/\libnutnet.a(tcpsm.o)(.text+0x3
> 32):
> I
> n function `NutTcpStateChange': : undefined reference to
> `NutEventBroadcast'
> c:/WORK/ethernut/ethernut-4.0.1/nutbld/lib/\libnutnet.a(tcpsm.o)(.text+0x3
> 3c):
> I
> n function `NutTcpStateChange': : undefined reference to
> `NutEventBroadcast'
> c:/WORK/ethernut/ethernut-4.0.1/nutbld/lib/\libnutnet.a(tcpsm.o)(.text+0x3
> 7e):
> I
> n function `NutTcpStatePassiveOpenEvent': : undefined reference to
> `NutEventWait'
> c:/WORK/ethernut/ethernut-4.0.1/nutbld/lib/\libnutnet.a(tcpsm.o)(.text+0x3
> ac):
> I
> n function `NutTcpStateActiveOpenEvent': : undefined reference to
> `NutEventWait'
> c:/WORK/ethernut/ethernut-4.0.1/nutbld/lib/\libnutnet.a(tcpsm.o)(.text+0x4
> 84):
> I
> n function `NutTcpAbortSocket': : undefined reference to
> `NutEventBroadcast'
> c:/WORK/ethernut/ethernut-4.0.1/nutbld/lib/\libnutnet.a(tcpsm.o)(.text+0x4
> 8c):
> I
> n function `NutTcpAbortSocket': : undefined reference to
> `NutEventBroadcast'
> c:/WORK/ethernut/ethernut-4.0.1/nutbld/lib/\libnutnet.a(tcpsm.o)(.text+0x4
> 96):
> I
> n function `NutTcpAbortSocket': : undefined reference to
> `NutEventBroadcast'
> c:/WORK/ethernut/ethernut-4.0.1/nutbld/lib/\libnutnet.a(tcpsm.o)(.text+0x4
> a0):
> I
> n function `NutTcpAbortSocket': : undefined reference to
> `NutEventBroadcast'
> c:/WORK/ethernut/ethernut-4.0.1/nutbld/lib/\libnutnet.a(tcpsm.o)(.text+0x7
> 60):
> I
> n function `NutTcpSm': : undefined reference to `NutEventWait'
> c:/WORK/ethernut/ethernut-4.0.1/nutbld/lib/\libnutnet.a(tcpsm.o)(.text+0xb
> be):
> I
> n function `NutTcpSm': : undefined reference to `NutEventPost'
> c:/WORK/ethernut/ethernut-4.0.1/nutbld/lib/\libnutnet.a(tcpsm.o)(.text+0xc
> 5c):
> I
> n function `NutTcpSm': : undefined reference to `NutEventBroadcast'
> c:/WORK/ethernut/ethernut-4.0.1/nutbld/lib/\libnutnet.a(tcpsm.o)(.text+0xd
> 1c):
> I
> n function `NutTcpSm': : undefined reference to `NutEventPost'
> c:/WORK/ethernut/ethernut-4.0.1/nutbld/lib/\libnutnet.a(tcpsm.o)(.text+0xe
> 34):
> I
> n function `NutTcpSm': : undefined reference to `NutEventPost'
> c:/WORK/ethernut/ethernut-4.0.1/nutbld/lib/\libnutnet.a(tcpsm.o)(.text+0xe
> 40):
> I
> n function `NutTcpSm': : undefined reference to `NutEventPost'
> c:/WORK/ethernut/ethernut-4.0.1/nutbld/lib/\libnutnet.a(tcpsm.o)(.text+0xe
> a8):
> I
> n function `NutTcpSm': : undefined reference to `NutEventPost'
> c:/WORK/ethernut/ethernut-4.0.1/nutbld/lib/\libnutnet.a(tcpsm.o)(.text+0xf
> 40):
> I
> n function `NutTcpSm': : undefined reference to `NutEventPost'
> c:/WORK/ethernut/ethernut-4.0.1/nutbld/lib/\libnutnet.a(tcpsm.o)(.text+0x1
> 142):
> more undefined references to `NutEventPost' follow
> c:/WORK/ethernut/ethernut-4.0.1/nutbld/lib/\libnutnet.a(arpcache.o)(.text
> +0x22):
> In function `ArpCacheFlush':
> : undefined reference to `NutEventBroadcastAsync'
> c:/WORK/ethernut/ethernut-4.0.1/nutbld/lib/\libnutnet.a(arpcache.o)(.text+
> 0x218)
> : In function `NutArpCacheUpdate':
> : undefined reference to `NutEventBroadcast'
> c:/WORK/ethernut/ethernut-4.0.1/nutbld/lib/\libnutnet.a(arpcache.o)(.text+
> 0x33c)
> : In function `NutArpCacheQuery':
> : undefined reference to `NutEventWait'
> c:/WORK/ethernut/ethernut-4.0.1/nutbld/lib/\libnutnet.a(udpin.o)(.text+0xd
> 8):
> In
> function `NutUdpInput': : undefined reference to `NutEventPost'
> c:/WORK/ethernut/ethernut-4.0.1/nutbld/lib/\libnutnet.a(udpsock.o)(.text+0
> x150):
> In function `NutUdpReceiveFrom':
> : undefined reference to `NutEventWait'
> make: *** [httpserv.elf] Error 1
>
>
> c:\Work\ethernut\ethernut-4.0.1\nutapp\httpd>
>
>
> Ethernut was compiled with ethernut13g.conf
>
>
> P/S
> Same problem I get in 4.1.3 8(
>
>
> _______________________________________________
> En-Nut-Discussion mailing list
> En-Nut-Discussion at egnite.de
> http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
>
>
> _______________________________________________
> En-Nut-Discussion mailing list
> En-Nut-Discussion at egnite.de
> http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
>
>





More information about the En-Nut-Discussion mailing list