Error while building Nut/OS configuration

View: New views
2 Messages — Rating Filter:   Alert me  

Error while building Nut/OS configuration

by Faas, Hylke :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All,
 
we've got a Ethernut 3.0E to use in a embedded project, but we got some
startup problems.
I've been through all the manuals I can't build an OS.
When I do every thing exactly like in the flash movie (on nutwiki), I'll
get the following error:
 
../../nut/crt/setenv.c:195: error: conflicting types for 'unsetenv'
c:/program files/yagarto/lib/gcc/../../arm-elf/sys-include/stdlib.h:181:
error: previous declaration of 'unsetenv' was here
make[1]: *** [setenv.o] Error 1
 
The full output is shown at the end.
 
I work on a Windows XP Pro computer, but don't have administrater
privileges (I can't configure the Ethernet port by my self for example).

Does any one know if the configurtion tool needs administrater
privileges to run?
For what purpose is the nutconfigure.exe, ms dos application that loads
a repository and a ethernut21b.conf and is finished after that?
Do I do something wrong or don't I have enough privileges? (or is it a
bug in ethernut 4.8.2?)
 
Kind regard,
Hylke Faas
 
 
Full error log:
 
10:02:48: Nut/OS Configurator Version 2.0.8
10:02:48: Linked to wxWidgets 2.8.9
10:02:48: Running on Windows XP (build 2600, Service Pack 2)
10:02:48: Working in C:\Program Files\ethernut-4.8.2
10:02:51: Loading nut/conf/repository.nut
10:02:51: Loading C:/Program
Files/ethernut-4.8.2/nut/conf/ethernut30e.conf
10:02:52: OK
10:03:08: Creating Makefiles for arm-gcc in ntbld
10:03:08: Creating header files in ntbld
10:03:09: OK
10:03:11: ----- Running 'make clean' -----
10:03:11: Located C:\Program
Files\ethernut-4.8.2\nut\tools\win32\make.exe
10:03:14: ----- 'make clean' terminated successfully -----
10:03:14: ----- Running 'make all' -----
10:03:14: Located C:\Program
Files\ethernut-4.8.2\nut\tools\win32\make.exe
arm-elf-ar: creating libnutarch.a
arm-elf-ar: creating libnutos.a
arm-elf-ar: creating libnutdev.a
arm-elf-ar: creating libnutc.a
../../nut/crt/setenv.c:195: error: conflicting types for 'unsetenv'
c:/program files/yagarto/lib/gcc/../../arm-elf/sys-include/stdlib.h:181:
error: previous declaration of 'unsetenv' was here
make[1]: *** [setenv.o] Error 1
make: *** [all] Error 2
10:03:45: ----- 'make all' failed with error 2 -----
_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion

Re: Error while building Nut/OS configuration

by Ethernut :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Faas, Hylke wrote:
> ../../nut/crt/setenv.c:195: error: conflicting types for 'unsetenv'
> c:/program files/yagarto/lib/gcc/../../arm-elf/sys-include/stdlib.h:181:
> error: previous declaration of 'unsetenv' was here
> make[1]: *** [setenv.o] Error 1

http://www.google.com/search?q=unsetenv+ethernut

shows

http://www.ethernut.de/nutwiki/NutOsFaq

explains

"Nut/OS borrowed a lot of code from BSD, where unsetenv is a void
function, while Posix specifies an integer return type. Initially newlib
used the BSD variant, but changed to Posix after versions 1.17. The
newlib maintainers, in their infinite wisdom, decided to use a string
constant as a version identifier and refuse to add an integer variant,
which could have been checked automatically by the preprocessor. This is
why you have to select Posix conformance of unsetenv manually in the
Configurator under C Runtime (target specific) / Environment."


_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion