[Zlib-devel] C++ and Z_SOLO
Paul Marquess
Paul.Marquess at ntlworld.com
Sat Mar 17 12:41:30 EDT 2012
With the C++ patch I just posted applied, I'm seeing problems with C++ and
solo mode.
$ CC=g++ ./configure --solo
Checking for shared library support...
Building shared library libz.so.1.2.7-motley with g++.
Checking for off64_t... Yes.
Checking for fseeko... Yes.
Checking for strerror... Yes.
Checking for unistd.h... Yes.
Checking for stdarg.h... Yes.
Checking whether to use vs[n]printf() or s[n]printf()... using
vs[n]printf().
Checking for vsnprintf() in stdio.h... Yes.
Checking for return value of vsnprintf()... Yes.
Checking for attribute(visibility) support... Yes.
$ make
g++ -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -I. -c -o example.o
test/example.c
g++ -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o adler32.o adler32.c
g++ -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o crc32.o crc32.c
g++ -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o deflate.o deflate.c
deflate.c: In function 'int deflateCopy(z_stream*, z_stream*)':
deflate.c:1029: error: invalid conversion from 'void*' to 'Bytef*'
deflate.c:1029: error: initializing argument 1 of 'void zmemcpy(Bytef*,
const Bytef*, uInt)'
deflate.c:1029: error: invalid conversion from 'void*' to 'const Bytef*'
deflate.c:1029: error: initializing argument 2 of 'void zmemcpy(Bytef*,
const Bytef*, uInt)'
deflate.c:1034: error: invalid conversion from 'void*' to 'Bytef*'
deflate.c:1034: error: initializing argument 1 of 'void zmemcpy(Bytef*,
const Bytef*, uInt)'
deflate.c:1034: error: invalid conversion from 'void*' to 'const Bytef*'
deflate.c:1034: error: initializing argument 2 of 'void zmemcpy(Bytef*,
const Bytef*, uInt)'
deflate.c:1050: error: invalid conversion from 'void*' to 'Bytef*'
deflate.c:1050: error: initializing argument 1 of 'void zmemcpy(Bytef*,
const Bytef*, uInt)'
deflate.c:1050: error: invalid conversion from 'void*' to 'const Bytef*'
deflate.c:1050: error: initializing argument 2 of 'void zmemcpy(Bytef*,
const Bytef*, uInt)'
deflate.c:1051: error: invalid conversion from 'void*' to 'Bytef*'
deflate.c:1051: error: initializing argument 1 of 'void zmemcpy(Bytef*,
const Bytef*, uInt)'
deflate.c:1051: error: invalid conversion from 'void*' to 'const Bytef*'
deflate.c:1051: error: initializing argument 2 of 'void zmemcpy(Bytef*,
const Bytef*, uInt)'
make: *** [deflate.o] Error 1
The enclosed patch sorts it out.
Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://madler.net/pipermail/zlib-devel_madler.net/attachments/20120317/5439fb93/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zlib-solo.diff
Type: application/octet-stream
Size: 2842 bytes
Desc: not available
URL: <http://madler.net/pipermail/zlib-devel_madler.net/attachments/20120317/5439fb93/attachment.obj>
More information about the Zlib-devel
mailing list