jscript FTBFS in Cygwin 1.7.22

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
User avatar
KenSharp
Level 4
Level 4
Posts: 149
Joined: Mon Jul 13, 2009 8:52 pm

jscript FTBFS in Cygwin 1.7.22

Post by KenSharp »

Not sure if this is a Wine bug (as usual) so I'd rather put this here than to open a new bug.

On Cygwin 1.7.22 the compilation stops at jscript, apparently a conflict in the declaration of dtoa.

$ make
ccache cc -c -I/home/ken/wine-git/dlls/jscript -I. -I/home/ken/wine-git/include -I../../include -D__WINESRC__ -D_REENTRANT -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wwrite-strings -Wpointer-arith -Wlogical-op -gdwarf-2 -gstrict-dwarf -fno-omit-frame-pointer -g -O0 -D_WIN32 -o jscript_main.o /home/ken/wine-git/dlls/jscript/jscript_main.c
ccache cc -c -I/home/ken/wine-git/dlls/jscript -I. -I/home/ken/wine-git/include -I../../include -D__WINESRC__ -D_REENTRANT -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wwrite-strings -Wpointer-arith -Wlogical-op -gdwarf-2 -gstrict-dwarf -fno-omit-frame-pointer -g -O0 -D_WIN32 -o lex.o /home/ken/wine-git/dlls/jscript/lex.c
ccache cc -c -I/home/ken/wine-git/dlls/jscript -I. -I/home/ken/wine-git/include -I../../include -D__WINESRC__ -D_REENTRANT -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wwrite-strings -Wpointer-arith -Wlogical-op -gdwarf-2 -gstrict-dwarf -fno-omit-frame-pointer -g -O0 -D_WIN32 -o number.o /home/ken/wine-git/dlls/jscript/number.c
/home/ken/wine-git/dlls/jscript/number.c:57:20: error: conflicting types for ‘dtoa’
In file included from /home/ken/wine-git/include/wine/port.h:47:0,
from /home/ken/wine-git/dlls/jscript/number.c:20:
/usr/include/stdlib.h:161:35: note: previous declaration of ‘dtoa’ was here

Makefile:199: recipe for target `number.o' failed
make: *** [number.o] Error 1

dlls/jscript/number.c:
static inline void dtoa(double d, WCHAR *buf, int size, int *dec_point)

/usr/include/stdlib.h:
char * _EXFUN(dtoa,(double, int, int, int *, int*, char**));
User avatar
KenSharp
Level 4
Level 4
Posts: 149
Joined: Mon Jul 13, 2009 8:52 pm

Re: jscript FTBFS in Cygwin 1.7.22

Post by KenSharp »

Sent to wine-devel which is probably (possibly) a better place.
http://www.winehq.org/pipermail/wine-de ... 00698.html
Locked