[Bug 39117] New: Cross-compilation: Error in zconf.h included from zlib.h included from http.c
wine-bugs at winehq.org
wine-bugs at winehq.org
Wed Aug 19 06:34:04 CDT 2015
https://bugs.winehq.org/show_bug.cgi?id=39117
Bug ID: 39117
Summary: Cross-compilation: Error in zconf.h included from
zlib.h included from http.c
Product: Wine
Version: 1.7.24
Hardware: x86
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: wininet
Assignee: wine-bugs at winehq.org
Reporter: yugiohjcj at 1s.fr
Distribution: ---
Hello,
I try to cross-compile wine-1.7.24 on Slackware 14.1:
$ make
i686-pc-mingw32-gcc -c -o http.o http.c -I. -I../../include -D__WINESRC__
-D_WINX32_ -D_REENTRANT -Wall -pipe \
-fno-strength-reduce -fno-strict-aliasing -Wdeclaration-after-statement
-Wempty-body \
-Wignored-qualifiers -Wstrict-prototypes -Wtype-limits
-Wunused-but-set-parameter -Wvla \
-Wwrite-strings -Wpointer-arith -Wlogical-op -gdwarf-2 -gstrict-dwarf
-fno-omit-frame-pointer \
-g -O2 -D_WIN32
In file included from /usr/i686-pc-mingw32/include/zlib.h:34:0,
from http.c:53:
/usr/i686-pc-mingw32/include/zconf.h:377:22: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'Bytef'
typedef Byte FAR Bytef;
^
/usr/i686-pc-mingw32/include/zconf.h:379:19: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'charf'
typedef char FAR charf;
^
/usr/i686-pc-mingw32/include/zconf.h:380:19: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'intf'
typedef int FAR intf;
^
/usr/i686-pc-mingw32/include/zconf.h:381:19: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'uIntf'
typedef uInt FAR uIntf;
^
/usr/i686-pc-mingw32/include/zconf.h:382:19: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'uLongf'
typedef uLong FAR uLongf;
^
/usr/i686-pc-mingw32/include/zconf.h:386:23: error: expected '=', ',', ';',
'asm' or '__attribute__' before '*' token
typedef void FAR *voidpf;
^
In file included from http.c:53:0:
/usr/i686-pc-mingw32/include/zlib.h:80:17: error: expected declaration
specifiers or '...' before '*' token
typedef voidpf (*alloc_func) OF((voidpf opaque, uInt items, uInt size));
^
In file included from /usr/i686-pc-mingw32/include/zlib.h:34:0,
from http.c:53:
/usr/i686-pc-mingw32/include/zlib.h:81:30: error: unknown type name 'voidpf'
typedef void (*free_func) OF((voidpf opaque, voidpf address));
^
/usr/i686-pc-mingw32/include/zlib.h:81:30: error: unknown type name 'voidpf'
typedef void (*free_func) OF((voidpf opaque, voidpf address));
^
In file included from http.c:53:0:
/usr/i686-pc-mingw32/include/zlib.h:86:13: error: unknown type name 'Bytef'
z_const Bytef *next_in; /* next input byte */
^
/usr/i686-pc-mingw32/include/zlib.h:90:5: error: unknown type name 'Bytef'
Bytef *next_out; /* next output byte should be put there */
^
/usr/i686-pc-mingw32/include/zlib.h:95:31: error: expected ':', ',', ';', '}'
or '__attribute__' before '*' token
struct internal_state FAR *state; /* not visible by applications */
^
/usr/i686-pc-mingw32/include/zlib.h:106:22: error: expected '=', ',', ';',
'asm' or '__attribute__' before '*' token
typedef z_stream FAR *z_streamp;
^
/usr/i686-pc-mingw32/include/zlib.h:117:5: error: unknown type name 'Bytef'
Bytef *extra; /* pointer to extra field or Z_NULL if none */
^
/usr/i686-pc-mingw32/include/zlib.h:120:5: error: unknown type name 'Bytef'
Bytef *name; /* pointer to zero-terminated file name or Z_NULL */
^
/usr/i686-pc-mingw32/include/zlib.h:122:5: error: unknown type name 'Bytef'
Bytef *comment; /* pointer to zero-terminated comment or Z_NULL */
^
/usr/i686-pc-mingw32/include/zlib.h:129:23: error: expected '=', ',', ';',
'asm' or '__attribute__' before '*' token
typedef gz_header FAR *gz_headerp;
^
In file included from /usr/i686-pc-mingw32/include/zlib.h:34:0,
from http.c:53:
/usr/i686-pc-mingw32/include/zlib.h:246:29: error: unknown type name
'z_streamp'
ZEXTERN int ZEXPORT deflate OF((z_streamp strm, int flush));
^
/usr/i686-pc-mingw32/include/zlib.h:353:32: error: unknown type name
'z_streamp'
ZEXTERN int ZEXPORT deflateEnd OF((z_streamp strm));
^
/usr/i686-pc-mingw32/include/zlib.h:392:29: error: unknown type name
'z_streamp'
ZEXTERN int ZEXPORT inflate OF((z_streamp strm, int flush));
^
/usr/i686-pc-mingw32/include/zlib.h:508:32: error: unknown type name
'z_streamp'
ZEXTERN int ZEXPORT inflateEnd OF((z_streamp strm));
^
/usr/i686-pc-mingw32/include/zlib.h:587:42: error: unknown type name
'z_streamp'
ZEXTERN int ZEXPORT deflateSetDictionary OF((z_streamp strm,
^
/usr/i686-pc-mingw32/include/zlib.h:587:42: error: unknown type name 'Bytef'
ZEXTERN int ZEXPORT deflateSetDictionary OF((z_streamp strm,
^
/usr/i686-pc-mingw32/include/zlib.h:631:33: error: unknown type name
'z_streamp'
ZEXTERN int ZEXPORT deflateCopy OF((z_streamp dest,
^
/usr/i686-pc-mingw32/include/zlib.h:631:33: error: unknown type name
'z_streamp'
ZEXTERN int ZEXPORT deflateCopy OF((z_streamp dest,
^
/usr/i686-pc-mingw32/include/zlib.h:649:34: error: unknown type name
'z_streamp'
ZEXTERN int ZEXPORT deflateReset OF((z_streamp strm));
^
/usr/i686-pc-mingw32/include/zlib.h:660:35: error: unknown type name
'z_streamp'
ZEXTERN int ZEXPORT deflateParams OF((z_streamp strm,
^
/usr/i686-pc-mingw32/include/zlib.h:681:33: error: unknown type name
'z_streamp'
ZEXTERN int ZEXPORT deflateTune OF((z_streamp strm,
^
/usr/i686-pc-mingw32/include/zlib.h:698:36: error: unknown type name
'z_streamp'
ZEXTERN uLong ZEXPORT deflateBound OF((z_streamp strm,
^
/usr/i686-pc-mingw32/include/zlib.h:713:36: error: unknown type name
'z_streamp'
ZEXTERN int ZEXPORT deflatePending OF((z_streamp strm,
^
/usr/i686-pc-mingw32/include/zlib.h:728:34: error: unknown type name
'z_streamp'
ZEXTERN int ZEXPORT deflatePrime OF((z_streamp strm,
^
/usr/i686-pc-mingw32/include/zlib.h:745:38: error: unknown type name
'z_streamp'
ZEXTERN int ZEXPORT deflateSetHeader OF((z_streamp strm,
^
/usr/i686-pc-mingw32/include/zlib.h:745:38: error: unknown type name
'gz_headerp'
ZEXTERN int ZEXPORT deflateSetHeader OF((z_streamp strm,
^
/usr/i686-pc-mingw32/include/zlib.h:819:42: error: unknown type name
'z_streamp'
ZEXTERN int ZEXPORT inflateSetDictionary OF((z_streamp strm,
^
/usr/i686-pc-mingw32/include/zlib.h:819:42: error: unknown type name 'Bytef'
ZEXTERN int ZEXPORT inflateSetDictionary OF((z_streamp strm,
^
/usr/i686-pc-mingw32/include/zlib.h:842:42: error: unknown type name
'z_streamp'
ZEXTERN int ZEXPORT inflateGetDictionary OF((z_streamp strm,
^
/usr/i686-pc-mingw32/include/zlib.h:842:42: error: unknown type name 'Bytef'
ZEXTERN int ZEXPORT inflateGetDictionary OF((z_streamp strm,
^
/usr/i686-pc-mingw32/include/zlib.h:857:33: error: unknown type name
'z_streamp'
ZEXTERN int ZEXPORT inflateSync OF((z_streamp strm));
^
/usr/i686-pc-mingw32/include/zlib.h:876:33: error: unknown type name
'z_streamp'
ZEXTERN int ZEXPORT inflateCopy OF((z_streamp dest,
^
/usr/i686-pc-mingw32/include/zlib.h:876:33: error: unknown type name
'z_streamp'
ZEXTERN int ZEXPORT inflateCopy OF((z_streamp dest,
^
/usr/i686-pc-mingw32/include/zlib.h:892:34: error: unknown type name
'z_streamp'
ZEXTERN int ZEXPORT inflateReset OF((z_streamp strm));
^
/usr/i686-pc-mingw32/include/zlib.h:902:35: error: unknown type name
'z_streamp'
ZEXTERN int ZEXPORT inflateReset2 OF((z_streamp strm,
^
/usr/i686-pc-mingw32/include/zlib.h:914:34: error: unknown type name
'z_streamp'
ZEXTERN int ZEXPORT inflatePrime OF((z_streamp strm,
^
/usr/i686-pc-mingw32/include/zlib.h:935:34: error: unknown type name
'z_streamp'
ZEXTERN long ZEXPORT inflateMark OF((z_streamp strm));
^
/usr/i686-pc-mingw32/include/zlib.h:963:38: error: unknown type name
'z_streamp'
ZEXTERN int ZEXPORT inflateGetHeader OF((z_streamp strm,
^
/usr/i686-pc-mingw32/include/zlib.h:963:38: error: unknown type name
'gz_headerp'
ZEXTERN int ZEXPORT inflateGetHeader OF((z_streamp strm,
^
/usr/i686-pc-mingw32/include/zlib.h:1025:29: error: expected ';', ',' or ')'
before '*' token
typedef unsigned (*in_func) OF((void FAR *,
^
/usr/i686-pc-mingw32/include/zlib.h:1027:25: error: expected ';', ',' or ')'
before '*' token
typedef int (*out_func) OF((void FAR *, unsigned char FAR *, unsigned));
^
/usr/i686-pc-mingw32/include/zlib.h:1029:33: error: unknown type name
'z_streamp'
ZEXTERN int ZEXPORT inflateBack OF((z_streamp strm,
^
/usr/i686-pc-mingw32/include/zlib.h:1029:33: error: unknown type name 'in_func'
ZEXTERN int ZEXPORT inflateBack OF((z_streamp strm,
^
/usr/i686-pc-mingw32/include/zlib.h:1029:33: error: expected ';', ',' or ')'
before '*' token
ZEXTERN int ZEXPORT inflateBack OF((z_streamp strm,
^
/usr/i686-pc-mingw32/include/zlib.h:1099:36: error: unknown type name
'z_streamp'
ZEXTERN int ZEXPORT inflateBackEnd OF((z_streamp strm));
^
/usr/i686-pc-mingw32/include/zlib.h:1160:30: error: unknown type name 'Bytef'
ZEXTERN int ZEXPORT compress OF((Bytef *dest, uLongf *destLen,
^
/usr/i686-pc-mingw32/include/zlib.h:1160:30: error: unknown type name 'uLongf'
ZEXTERN int ZEXPORT compress OF((Bytef *dest, uLongf *destLen,
^
/usr/i686-pc-mingw32/include/zlib.h:1160:30: error: unknown type name 'Bytef'
ZEXTERN int ZEXPORT compress OF((Bytef *dest, uLongf *destLen,
^
/usr/i686-pc-mingw32/include/zlib.h:1174:31: error: unknown type name 'Bytef'
ZEXTERN int ZEXPORT compress2 OF((Bytef *dest, uLongf *destLen,
^
/usr/i686-pc-mingw32/include/zlib.h:1174:31: error: unknown type name 'uLongf'
ZEXTERN int ZEXPORT compress2 OF((Bytef *dest, uLongf *destLen,
^
/usr/i686-pc-mingw32/include/zlib.h:1174:31: error: unknown type name 'Bytef'
ZEXTERN int ZEXPORT compress2 OF((Bytef *dest, uLongf *destLen,
^
/usr/i686-pc-mingw32/include/zlib.h:1197:32: error: unknown type name 'Bytef'
ZEXTERN int ZEXPORT uncompress OF((Bytef *dest, uLongf *destLen,
^
/usr/i686-pc-mingw32/include/zlib.h:1197:32: error: unknown type name 'uLongf'
ZEXTERN int ZEXPORT uncompress OF((Bytef *dest, uLongf *destLen,
^
/usr/i686-pc-mingw32/include/zlib.h:1197:32: error: unknown type name 'Bytef'
ZEXTERN int ZEXPORT uncompress OF((Bytef *dest, uLongf *destLen,
^
/usr/i686-pc-mingw32/include/zlib.h:1569:31: error: unknown type name 'Bytef'
ZEXTERN uLong ZEXPORT adler32 OF((uLong adler, const Bytef *buf, uInt len));
^
/usr/i686-pc-mingw32/include/zlib.h:1600:31: error: unknown type name 'Bytef'
ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len));
^
/usr/i686-pc-mingw32/include/zlib.h:1633:34: error: unknown type name
'z_streamp'
ZEXTERN int ZEXPORT deflateInit_ OF((z_streamp strm, int level,
^
/usr/i686-pc-mingw32/include/zlib.h:1635:34: error: unknown type name
'z_streamp'
ZEXTERN int ZEXPORT inflateInit_ OF((z_streamp strm,
^
/usr/i686-pc-mingw32/include/zlib.h:1637:35: error: unknown type name
'z_streamp'
ZEXTERN int ZEXPORT deflateInit2_ OF((z_streamp strm, int level, int method,
^
/usr/i686-pc-mingw32/include/zlib.h:1641:35: error: unknown type name
'z_streamp'
ZEXTERN int ZEXPORT inflateInit2_ OF((z_streamp strm, int windowBits,
^
/usr/i686-pc-mingw32/include/zlib.h:1643:38: error: unknown type name
'z_streamp'
ZEXTERN int ZEXPORT inflateBackInit_ OF((z_streamp strm, int windowBits,
^
/usr/i686-pc-mingw32/include/zlib.h:1643:38: error: expected ';', ',' or ')'
before '*' token
ZEXTERN int ZEXPORT inflateBackInit_ OF((z_streamp strm, int windowBits,
^
In file included from http.c:53:0:
/usr/i686-pc-mingw32/include/zlib.h:1748:27: error: expected '=', ',', ';',
'asm' or '__attribute__' before '*' token
ZEXTERN const z_crc_t FAR * ZEXPORT get_crc_table OF((void));
^
In file included from /usr/i686-pc-mingw32/include/zlib.h:34:0,
from http.c:53:
/usr/i686-pc-mingw32/include/zlib.h:1749:49: error: expected ')' before 'int'
ZEXTERN int ZEXPORT inflateUndermine OF((z_streamp, int));
^
http.c: In function 'gzip_read':
http.c:471:26: warning: assignment from incompatible pointer type
zstream->next_in = gzip_stream->buf+gzip_stream->buf_pos;
^
http.c:473:27: warning: assignment from incompatible pointer type
zstream->next_out = buf+ret_read;
^
http.c:475:9: warning: implicit declaration of function 'inflate'
[-Wimplicit-function-declaration]
zres = inflate(&gzip_stream->zstream, 0);
^
http.c:479:51: error: invalid operands to binary - (have 'int *' and 'BYTE *')
gzip_stream->buf_size -= zstream->next_in -
(gzip_stream->buf+gzip_stream->buf_pos);
^
http.c:480:48: error: invalid operands to binary - (have 'int *' and 'BYTE *')
gzip_stream->buf_pos = zstream->next_in-gzip_stream->buf;
^
http.c:484:13: warning: implicit declaration of function 'inflateEnd'
[-Wimplicit-function-declaration]
inflateEnd(zstream);
^
http.c: At top level:
http.c:526:8: error: unknown type name 'voidpf'
static voidpf wininet_zalloc(voidpf opaque, uInt items, uInt size)
^
http.c:526:30: error: unknown type name 'voidpf'
static voidpf wininet_zalloc(voidpf opaque, uInt items, uInt size)
^
http.c:531:27: error: unknown type name 'voidpf'
static void wininet_zfree(voidpf opaque, voidpf address)
^
http.c:531:42: error: unknown type name 'voidpf'
static void wininet_zfree(voidpf opaque, voidpf address)
^
http.c: In function 'init_gzip_stream':
http.c:546:25: error: 'z_stream' has no member named 'zalloc'
gzip_stream->zstream.zalloc = wininet_zalloc;
^
http.c:546:35: error: 'wininet_zalloc' undeclared (first use in this function)
gzip_stream->zstream.zalloc = wininet_zalloc;
^
http.c:546:35: note: each undeclared identifier is reported only once for each
function it appears in
http.c:547:25: error: 'z_stream' has no member named 'zfree'
gzip_stream->zstream.zfree = wininet_zfree;
^
http.c:547:34: error: 'wininet_zfree' undeclared (first use in this function)
gzip_stream->zstream.zfree = wininet_zfree;
^
http.c:549:5: warning: implicit declaration of function 'inflateInit2_'
[-Wimplicit-function-declaration]
zres = inflateInit2(&gzip_stream->zstream, is_gzip ? 0x1f : -15);
^
make: *** [http.o] Error 1
Any idea how to fix that?
Thank you.
Best regards.
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
More information about the wine-bugs
mailing list