This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem with HTTPD


Am Donnerstag, den 01.07.2010, 10:59 +0200 schrieb Manuel Borchers:
> Two #defines that are causing this are html_head and html_heading. There
> seem to be even more, because fprintf is called even more with format
> strings pointing to 0xa or 0x2 and the like. For debugging I just
> returned from fprintf in these cases, which resulted in a somewhat
> working index page in my browser.

Well, I don't know why this is happening, but I isolated the functions
that are causing this.

These are all #defines in httpd.h that use fprintf and/or fputs directly
in the define, i.e. are not mapped to cyg_html_* functions.

To solve it for me, I created for all of them such cyg_html_* functions.
Et voila, the monitor runs fine on my target.

Find the gzipped patches to httpd.c and httpd.h attached. Maybe it's of
use for someone else as well, I could be integrated into
CVS/git/whatever.

But the cause of the problem is still unclear to me. Could this be a
compiler problem? What comes to my mind, when writing these lines, is
that I'm using the pre-built arm-eabi toolchain from ecoscentric. I
guess it is built for i386 (32bit) but I'm running a amd64 (64bit)
Linux.

Well, to investigate this further I'd be willing to build a toolchain
myself, but really would like to have a script for this, as I allways
get something wrong (with the options and with which step when) when
building a toolchain myself. Has anyone at ecoscentric such a script for
generating the arm-eabi toolchain?


Cheers,
Manuel

-- 
Manuel Borchers

Web: http://www.matronix.de
eMail: manuel@matronix.de

Attachment: httpd.diffs.tar.gz
Description: application/compressed-tar

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]