This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: goAhead compiler error
- From: Gary Thomas <gary at mlbassoc dot com>
- To: J Jordaan <jjordaan at sun dot ac dot za>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Thu, 15 Apr 2004 08:48:16 -0600
- Subject: Re: [ECOS] goAhead compiler error
- Organization: MLB Associates
- References: <004301c422f6$16082bf0$7693e892@komen>
On Thu, 2004-04-15 at 08:29, J Jordaan wrote:
> Hi all
>
> I've been trying to compile the goAhead 2.18 webserver to an eCos platform,
> but I can't get past a couple of errors. I've included files in the uemf.h,
> webcom.c, page.c files that was needed. I don't know if my link line is
> correct. This is the error I get:
>
> arm-elf-gcc -o
> webcomp -lsupc++ -nostartfiles -L/cygdrive/c/Work/ecos/goAhead001/ecos001/e
> cos_install/lib -Wl,--gc-sections -Ttarget.ld -nostdlib -O2 -DWEBS -DUEMF -
> DOS="eCos" -DECOS -D__ECOS -I/cygdrive/c/Work/ecos/goAhead001/ecos001/ecos_
> install/include -I.. ../webcomp.c
> ../webcomp.c: In fuction 'compile':
> ../webcomp.c:73: storage size of 'sbuf' isn't known
> ../webcomp.c:111: 'S_IFDIR' undeclared (first use in this function)
> ../webcomp.c:124: warning : comparison of distinct pointer types lacks a
> cast
> make: *** [webcomp] Error 1
Since you've not provided any more context, it's pretty tough to help.
Try looking at the lines in question and see what they are up to.
Quite possibly, all you're missing is an include of <sys/stat.h>
>
> Does anybody please have some suggestions?
You also might consider using a different, easier to use and configure,
HTTP server. There's one now in the eCos tree. Another choice
(I've had good luck with it) is described on my web site at
http://www.mlbassoc.com/examples/build_httpd.html
--
Gary Thomas <gary@mlbassoc.com>
MLB Associates
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss