Status: New
Owner: [email protected]
Labels: Type-Defect Priority-Medium

New issue 662 by [email protected]: zip_output_unittest.sh inevitably fails when compiling with MinGW
http://code.google.com/p/protobuf/issues/detail?id=662

I've compiled zlib v1.2.8 with MinGW (which produced lib/libz.a, lib/libz.dll.a, bin/zlib1.dll and the headers in include) and I'm trying to build/test protobuf with --with-zlib option.

I'm building Protobuf 2.5.0 with patches to atomicops*.h (fix MemoryBarrier), configure.ac and gtest/configure.ac (add -no-undefined to LDFLAGS on WIndows) applied.

My flags/configure options look like this:

CFLAGS/CXXFLAGS/CPPFLAGS = -DNDEBUG -Wno-unused-local-typedefs -Izlib/include -m32 LDFLAGS = -static-libgcc -static-libstdc++ -Lzlib/lib -Lzlib/lib # (I've also tried putting libz.a here or -Wl,-Bstatic -lz)

./configure --prefix=/some/folder --disable-services --with-zlib
make
make check

All tests pass (including IoTest.Gzip*, IoTest.Zlib* and IoTest.Compression*), however no matter what I do the very last test (that checks zcgzip/zcgunzip roundtrip) always fails:

+ TESTFILE=Makefile
+ ./zcgzip
+ gunzip
+ cmp - Makefile
- Makefile differ: char 1731, line52

gunzip: stdout: Broken pipe
FAIL: google/protobuf/io/gzip_stream/unittest.sh

I've tried explicitly linking in libz.a statically which doesn't seem to help.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to