Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makefile.mingw and Python #56

Open
GoogleCodeExporter opened this issue Mar 24, 2015 · 11 comments
Open

Makefile.mingw and Python #56

GoogleCodeExporter opened this issue Mar 24, 2015 · 11 comments

Comments

@GoogleCodeExporter
Copy link

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

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant