[En-Nut-Discussion] Compile CVS version for Ethernut as Unix-Emulation

Matthias Ringwald mringwal at inf.ethz.ch
Tue Apr 13 10:35:42 CEST 2004


hi Thomas

thanks for your report.

On 12.04.2004, at 17:12, Thomas Drüke wrote:

> ..</snip>
>
> I tracked down the problem to the file "types_orig.h". It has just one
> line
>
> #include "/usr/include/bits/types.h"

this file did result from my hacks trying to include both the
original sys/types.h and the nut/os sys/types.h

to achieve this ./configure tries to get the absolute path to the
system sys/types.h and creates the types_orig.h file which includes
it.

>

> According to the doc in the header "bits/types.h" this file should 
> never
> be included directly on a Linux system. Instead it should include the
> file "sys/types.h". Changing the above line into
>
> #include "/usr/include/sys/types.h"

that would be the correct one.
this means that my first shot was wrong.

could you try to change:

     gcc -E include_test.c | grep types | head -1 | \
          sed 's/#....\(\/.*\/types.h\).*/#include "\1"/' > 
include/sys/types_orig.h

to

     gcc -E include_test.c | grep types | head -1 | \
          sed 's/#....\(\/.*\/sy/types.h\).*/#include "\1"/' > 
include/sys/types_orig.h

in ./configure and try again?


a comment: the unix emulation is brand new, not everything is working.
right out of my head: the os part: threads, memory management, events, 
msgs (should) work.
the unix_dev emulation that would map /dev/ttyS0 to uart0 is work in 
progres. have a look
into dev/unix_devs.c to see what you can expect to work and what now.


best regards,

matthias



More information about the En-Nut-Discussion mailing list