This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: I have a problem about ecos support "opendir" function or not? thank you~
- From: Gary Thomas <gary at mlbassoc dot com>
- To: =?big5?b?IsHCqMmq9yh0b20pIg==?= <palapala at iii dot org dot tw>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Fri, 22 Sep 2006 03:46:01 -0600
- Subject: Re: [ECOS] I have a problem about ecos support "opendir" function or not? thank you~
- References: <0e217ed8834deb7b46bdaf9c6bd54104@iii.org.tw>
Á¨ɪ÷(tom) wrote:
> Hi,
>
> I was trying to run kvm (cldc 1.1) on ecos. And my host os is red hat9 running on VMware workstation 5. The target I choose when I install ecos is ¡§i386-elf¡¨.
>
> I will test on linux, so I created a configuration ecos.ecc for linux (ecosconfig new linux) and make the kernel. (include and lib)
>
> After making the ecos kernel, I was changing the cc to i386-elf-gcc of preverify tool in cldc 1.1
>
> When making the file, there will have problem that ¡§DIR¡¨ is undeclared. As you can see below, the dirent.h in ecos kernel has extern ¡§DIR¡¨. However, there is no lib for DIR in ecos kernel.(there is no lib which declare the struct of DIR in ecos kernel)
>
> So I want to ask is ecos support opendir operation? I was check on google, but it is hardly to find the same problem with me. I think is the problem happened because my ecos kernel has building in a wrong way. Or actually, ecos does not support the directory operation like opendir or readdir, etc.
> Thank you ~
Your eCos configuration is too limited - the 'default' template doesn't
have this support built in. Try configuring eCos via:
% ecosconfig new linux net
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss