You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. Compilation with MinGW is broken. Details below.
First symptom is this:
In file included from xdelta3.c:269:
xdelta3.h:102: error: conflicting types for 'ssize_t'
This is easily fixed by the attached patch, but you
specifically use _strtoi64 for win32: is it an msvc
thing? Both mingw and lcc provide strtoimax (through
inttypes.h), and strtoll. strtoi64 isn't there for
mingw32. Is there an issue with strtoll itself, or
does msvc not provide it?
Besides, I must pass -DEXTERNAL_COMPRESSION=0 to the
compiler, right?
Anyways, here's the output for xdelta3-decoder target:
/usr/local/cross-tools/bin/i386-mingw32msvc-gcc -O3 -Wall -Wshadow xdelta3.c \
-DXD3_ENCODER=0 -DXD3_MAIN=1 -DSECONDARY_FGK=0 -DSECONDARY_DJW=0 \
-DXD3_STDIO=1 -DEXTERNAL_COMPRESSION=0 -DVCDIFF_TOOLS=0 \
-o xdelta3-decoder
In file included from xdelta3.c:269:
xdelta3.h:102: error: conflicting types for 'ssize_t'
/usr/local/cross-tools/lib/gcc/i386-mingw32msvc/3.4.5/../../../../i386-mingw32ms
vc/include/sys/types.h:104:
error: previous declaration of 'ssize_t' was here
In file included from xdelta3.c:789:
xdelta3-main.h: In function `get_millisecs_now':
xdelta3-main.h:537: warning: dereferencing type-punned pointer will break
strict-aliasing rules
xdelta3-main.h: In function `main_strtoxoff':
xdelta3-main.h:607: warning: implicit declaration of function `_strtoi64'
xdelta3.c: At top level:
xdelta3.h:1117: warning: 'xd3_init_config' defined but not used
xdelta3.h:1154: warning: 'xd3_encoder_srcbase' defined but not used
xdelta3.h:1158: warning: 'xd3_encoder_srclen' defined but not used
xdelta3.h:1165: warning: 'xd3_set_flags' defined but not used
xdelta3.c:363: warning: 'xd3_rlist_init' defined but not used
xdelta3.c:363: warning: 'xd3_rlist_push_back' defined but not used
xdelta3.c:363: warning: 'xd3_rlist_remove' defined but not used
xdelta3.c:363: warning: 'xd3_rlist_pop_back' defined but not used
xdelta3.c:363: warning: 'xd3_rlist_pop_front' defined but not used
xdelta3.c:363: warning: 'xd3_rlist_empty' defined but not used
xdelta3.c:363: warning: 'xd3_rlist_front' defined but not used
xdelta3.c:363: warning: 'xd3_rlist_back' defined but not used
xdelta3.c:363: warning: 'xd3_rlist_end' defined but not used
xdelta3.c:363: warning: 'xd3_rlist_next' defined but not used
xdelta3.c:363: warning: 'xd3_rlist_length' defined but not used
xdelta3-hash.h:137: warning: 'xd3_checksum_hash' defined but not used
xdelta3-hash.h:148: warning: 'xd3_lcksum' defined but not used
xdelta3-hash.h:177: warning: 'xd3_scksum' defined but not used
xdelta3-main.h:258: warning: 'main_blklru_list_pop_back' defined but not used
xdelta3-main.h:258: warning: 'main_blklru_list_front' defined but not used
xdelta3-main.h:258: warning: 'main_blklru_list_back' defined but not used
xdelta3-main.h:258: warning: 'main_blklru_list_end' defined but not used
xdelta3-main.h:258: warning: 'main_blklru_list_next' defined but not used
xdelta3-main.h:258: warning: 'main_blklru_list_length' defined but not used
make: *** [xdelta3-decoder] Error 1
Original issue reported on code.google.com by [email protected] on 14 Dec 2007 at 11:40
Original issue reported on code.google.com by
[email protected]
on 14 Dec 2007 at 11:40Attachments:
The text was updated successfully, but these errors were encountered: