[En-Nut-Discussion] Problem compiling httpd demo

Richard Tóth riso at dorm.utc.sk
Thu Feb 23 19:00:09 CET 2006


Hi all,

>>>i tryied to copy the comiled libraries as you suggested, but nothing changed.

RT> then i installed AVRStudio 4.08 and tryied STK500 in its enviroment. detecting failed.

ok, i don't know what i have done, but now it works!!! programming.
also the demo is running, but. i haven't dhcp server, then i modified the source in the demo
FROM:

if (NutDhcpIfConfig("eth0", 0, 1000))
{
   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);
}

TO:

//if (NutDhcpIfConfig("eth0", 0, 1000))
//{
   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);
//}

and now it wont's to build up.
the make all process show:

D:\Hamshack\ethernut\nutapp\httpd>make all
avr-gcc -c -mmcu=atmega128 -Os -fno-delete-null-pointer-checks -Wall -Wstrict-prototypes -Wa,-ahlms=httpserv.lst -DETHERNUT1 -D__HARVARD_ARCH__ -ID:/Hamshack/ethernut/build/include  -ID:/Hamshack/ethernut/ethernut-4.0.2/nut/include  httpserv.c -o httpserv.o
httpserv.c: In function `ShowSockets':
httpserv.c:342: warning: assignment discards qualifiers from pointer target type
httpserv.c:345: warning: assignment discards qualifiers from pointer target type
httpserv.c:348: warning: assignment discards qualifiers from pointer target type
httpserv.c:351: warning: assignment discards qualifiers from pointer target type
httpserv.c:354: warning: assignment discards qualifiers from pointer target type
httpserv.c:357: warning: assignment discards qualifiers from pointer target type
httpserv.c:360: warning: assignment discards qualifiers from pointer target type
httpserv.c:363: warning: assignment discards qualifiers from pointer target type
httpserv.c:366: warning: assignment discards qualifiers from pointer target type
httpserv.c:369: warning: assignment discards qualifiers from pointer target type
httpserv.c:372: warning: assignment discards qualifiers from pointer target type
httpserv.c:375: warning: assignment discards qualifiers from pointer target type
avr-gcc httpserv.o urom.o -mmcu=atmega128 -Wl,--defsym=main=0,-Map=httpserv.map,--cref -LD:/Hamshack/ethernut/build/lib D:/Hamshack/ethernut/build/lib/nutinit.o  -lnutpro -lnutos -lnutarch -lnutdev -lnutnet -lnutfs -lnutcrt -o httpserv.elf
D:/Hamshack/ethernut/build/lib\libnutarch.a(nicrtl.o): In function `NicInterrupt':
nicrtl.c:(.text+0x232): undefined reference to `NutEventPostFromIrq'
D:/Hamshack/ethernut/build/lib\libnutarch.a(nicrtl.o): In function `NicRx':
nicrtl.c:(.text+0x30a): undefined reference to `NutEventWait'
D:/Hamshack/ethernut/build/lib\libnutnet.a(tcpsock.o): In function `NutTcpSend':
tcpsock.c:(.text+0x4a4): undefined reference to `NutEventWait'
D:/Hamshack/ethernut/build/lib\libnutnet.a(tcpsock.o): In function `NutTcpReceive':
tcpsock.c:(.text+0x5a6): undefined reference to `NutEventWait'
D:/Hamshack/ethernut/build/lib\libnutnet.a(ifconfig.o): In function `NutNetIfConfig2':
ifconfig.c:(.text+0x2aa): undefined reference to `NutEventBroadcast'
ifconfig.c:(.text+0x2ce): undefined reference to `NutEventWait'
D:/Hamshack/ethernut/build/lib\libnutnet.a(tcpsm.o): In function `NutTcpStateChange':
tcpsm.c:(.text+0x318): undefined reference to `NutEventPostAsync'
tcpsm.c:(.text+0x328): undefined reference to `NutEventBroadcast'
tcpsm.c:(.text+0x332): undefined reference to `NutEventBroadcast'
tcpsm.c:(.text+0x33c): undefined reference to `NutEventBroadcast'
D:/Hamshack/ethernut/build/lib\libnutnet.a(tcpsm.o): In function `NutTcpStatePassiveOpenEvent':
tcpsm.c:(.text+0x37e): undefined reference to `NutEventWait'
D:/Hamshack/ethernut/build/lib\libnutnet.a(tcpsm.o): In function `NutTcpStateActiveOpenEvent':
tcpsm.c:(.text+0x3ac): undefined reference to `NutEventWait'
D:/Hamshack/ethernut/build/lib\libnutnet.a(tcpsm.o): In function `NutTcpAbortSocket':
tcpsm.c:(.text+0x484): undefined reference to `NutEventBroadcast'
tcpsm.c:(.text+0x48c): undefined reference to `NutEventBroadcast'
tcpsm.c:(.text+0x496): undefined reference to `NutEventBroadcast'
tcpsm.c:(.text+0x4a0): undefined reference to `NutEventBroadcast'
D:/Hamshack/ethernut/build/lib\libnutnet.a(tcpsm.o): In function `NutTcpSm':
tcpsm.c:(.text+0x760): undefined reference to `NutEventWait'
tcpsm.c:(.text+0xbb0): undefined reference to `NutEventPost'
tcpsm.c:(.text+0xc4e): undefined reference to `NutEventBroadcast'
tcpsm.c:(.text+0xd0e): undefined reference to `NutEventPost'
tcpsm.c:(.text+0xe26): undefined reference to `NutEventPost'
tcpsm.c:(.text+0xe32): undefined reference to `NutEventPost'
tcpsm.c:(.text+0xe9a): undefined reference to `NutEventPost'
tcpsm.c:(.text+0xf32): undefined reference to `NutEventPost'
D:/Hamshack/ethernut/build/lib\libnutnet.a(tcpsm.o):tcpsm.c:(.text+0x1126): more undefined references to `NutEventPost' follow
D:/Hamshack/ethernut/build/lib\libnutnet.a(arpcache.o): In function `ArpCacheFlush':
arpcache.c:(.text+0x22): undefined reference to `NutEventBroadcastAsync'
D:/Hamshack/ethernut/build/lib\libnutnet.a(arpcache.o): In function `NutArpCacheUpdate':
arpcache.c:(.text+0x208): undefined reference to `NutEventBroadcast'
D:/Hamshack/ethernut/build/lib\libnutnet.a(arpcache.o): In function `NutArpCacheQuery':
arpcache.c:(.text+0x32c): undefined reference to `NutEventWait'
D:/Hamshack/ethernut/build/lib\libnutnet.a(udpin.o): In function `NutUdpInput':
udpin.c:(.text+0xd8): undefined reference to `NutEventPost'
D:/Hamshack/ethernut/build/lib\libnutnet.a(udpsock.o): In function `NutUdpReceiveFrom':
udpsock.c:(.text+0x150): undefined reference to `NutEventWait'
make: *** [httpserv.elf] Error 1


-- 
S pozdravom,                         
 Risko 

 mailto:riso at dorm.utc.sk
 ICQ: 223531718
 http://www.risko.org
 http://www.zuzo.sk




More information about the En-Nut-Discussion mailing list