[En-Nut-Discussion] Error compiling Ethernut-4.2.1 on OSX

Henk Kampman henk.kampman at secondmove.com
Fri Jun 29 17:48:25 CEST 2007


Op 29-jun-2007, om 17:29 heeft Ole Reinhardt het volgende geschreven:

> Hi,
>
>> Here is what I get after entering "make install"
>
> The missing files belongs to avr-libc. Do you have correctly installed
> it?

I've downloaded and compiled the latest avr-libc but now the compiler  
chokes on wlandrv.c


avr-gcc -c -mmcu=atmega128 -Os -fno-delete-null-pointer-checks -Wall - 
Werror -Wstrict-prototypes -Wa,-ahlms=eth0cs.lst -D__HARVARD_ARCH__ - 
DNUT_CPU_FREQ=14745600 -DETHERNUT2   -I../include  avr/dev/eth0cs.c - 
o avr/dev/eth0cs.o
avr-gcc -c -mmcu=atmega128 -Os -fno-delete-null-pointer-checks -Wall - 
Werror -Wstrict-prototypes -Wa,-ahlms=wlan.lst -D__HARVARD_ARCH__ - 
DNUT_CPU_FREQ=14745600 -DETHERNUT2   -I../include  avr/dev/wlan.c -o  
avr/dev/wlan.o
avr-gcc -c -mmcu=atmega128 -Os -fno-delete-null-pointer-checks -Wall - 
Werror -Wstrict-prototypes -Wa,-ahlms=wlandrv.lst -D__HARVARD_ARCH__ - 
DNUT_CPU_FREQ=14745600 -DETHERNUT2   -I../include  avr/dev/wlandrv.c - 
o avr/dev/wlandrv.o
avr/dev/wlandrv.c: In function 'wi_cmd':
avr/dev/wlandrv.c:299: error: 'ENODEV' undeclared (first use in this  
function)
avr/dev/wlandrv.c:299: error: (Each undeclared identifier is reported  
only once
avr/dev/wlandrv.c:299: error: for each function it appears in.)
avr/dev/wlandrv.c:321: error: 'ETIMEDOUT' undeclared (first use in  
this function)
avr/dev/wlandrv.c:350: error: 'EIO' undeclared (first use in this  
function)
avr/dev/wlandrv.c: In function 'wi_seek_bap':
avr/dev/wlandrv.c:416: error: 'ETIMEDOUT' undeclared (first use in  
this function)
avr/dev/wlandrv.c:423: error: 'EIO' undeclared (first use in this  
function)
avr/dev/wlandrv.c: In function 'wi_read_rid':
avr/dev/wlandrv.c:532: error: 'EIO' undeclared (first use in this  
function)
avr/dev/wlandrv.c:537: error: 'ENOSPC' undeclared (first use in this  
function)
avr/dev/wlandrv.c: In function 'wi_alloc_fid':
avr/dev/wlandrv.c:1169: error: 'ENOMEM' undeclared (first use in this  
function)
avr/dev/wlandrv.c:1178: error: 'ETIMEDOUT' undeclared (first use in  
this function)
avr/dev/wlandrv.c: In function 'wi_write_ssid':
avr/dev/wlandrv.c:1195: error: 'ENOBUFS' undeclared (first use in  
this function)
avr/dev/wlandrv.c: In function 'wlandrv_Attach':
avr/dev/wlandrv.c:1457: error: 'ENXIO' undeclared (first use in this  
function)
make[1]: *** [avr/dev/wlandrv.o] Error 1
make: *** [install] Error 2

Henk








More information about the En-Nut-Discussion mailing list