[ECOS] RE: GoAhead Web Server
Thu Oct 26 12:47:00 GMT 2000
I am also using version 2.1.
I think the redefinition of NFDBITS is because when it compiles it uses the
definition from sys/bsdtypes.h as well as seeing it in the new definition I
added via the patch.
That's scarry if the same version of the web server has different source.
This line refers to default.c line 92 which is:
if (websPageOpen(wp, lpath, path, SOCKET_RDONLY | SOCKET_BINARY,
and SOCKET_RDONLY is defined in wsIntrn.h as O_RDONLY, which is the reason
for the conflict. Do you have O_RDONLY defined somewhere else?
Gary Thomas <firstname.lastname@example.org> writes:
>Exactly what version of the GoAhead server do you have? My patches were
>against the 2.1 version, dated 19 July.
>On 26-Oct-2000 email@example.com wrote:
>> powerpc-eabi-gcc -c -o ../default.o -mcpu=860 -msoft-float -g -Wall -O2
>> S -DB_VERIFY_CAUSES_SEVERE_OVERHEAD -DWEBS -DUEMF -DWEBS_PAGE_ROM
>> -DOS="eCos" -D
>> ECOS -D__ECOS -D__NO_FCNTL=1 -I.. -Wall
>> e/ecoslatest/ecosnetMBX/ecosnetMBX_install/include -ffunction-sections
>> ctions -Wp,-MD,../default.d ../default.c
>> In file included from ../wsIntrn.h:113,
>> from ../default.c:23:
>> ../uemf.h:216: warning: `NFDBITS' redefined
>> ../uemf.h:151: warning: this is the location of the previous definition
>This one shouyldn't hurt anything, but you could check the file "uemf.h"
>and see why it's being defined twice.
>> ../default.c: In function `websDefaultHandler':
>> ../default.c:92: `O_RDONLY' undeclared (first use in this function)
>> ../default.c:92: (Each undeclared identifier is reported only once
>> ../default.c:92: for each function it appears in.)
>You're on your own for this one - this line does not appear in the code
>I obtained from GoAhead.
More information about the Ecos-discuss