[protobuf] OpenBSD 6.0 make check fails/core dumped

2016-10-27 Thread ramrunner0xff
Hi there list!

I am compiling protobuf-cpp-3.1.0.tar.gz on:

OpenBSD 6.00 GENERIC.MP#2319 amd64
with

$ eg++ -v
Using built-in specs.
COLLECT_GCC=eg++
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-unknown-openbsd6.0/4.9.3/lto-wrapper
Target: x86_64-unknown-openbsd6.0
Configured with: /usr/obj/ports/gcc-4.9.3/gcc-4.9.3/configure 
--enable-libgcj --without-jar --verbose --program-transform-name='s,^,e,' 
--disable-nls --with-system-zlib --disable-libmudflap --disable-libgomp 
--disable-tls
+--with-as=/usr/bin/as --with-ld=/usr/bin/ld --with-gnu-ld --with-gnu-as 
--enable-threads=posix --enable-wchar_t --with-gmp=/usr/local 
--enable-languages=c,c++,fortran,objc,java,ada --disable-libstdcxx-pch 
--enable-cpp
+--prefix=/usr/local --sysconfdir=/etc --mandir=/usr/local/man 
--infodir=/usr/local/info --localstatedir=/var --disable-silent-rules 
--disable-gtk-doc
Thread model: posix
gcc version 4.9.3 (GCC)

$ /usr/local/bin/libtool --version
libtool (GNU libtool) 2.4.2

autoconf-2.69, automake-1.15.

Only one patch applied to define no thread local storage as per pull request
https://github.com/google/protobuf/pull/2290 that i submitted yesterday.

The binaries and libs compile successfully but make check fails wdith one 
error and a dumped core.
attaching the test-suite.log

about the core: it's on protobuf-test. i recompiled with debugging symbols 
and:
it gets triggered on file:

src/google/protobuf/util/internal/expecting_objectwriter.h
function  virtual ObjectWriter* RenderBool(StringPiece name, bool value)
line:
EXPECT_CALL(*mock_, RenderBool(IsEmpty(), 
TypedEq(value))).WillOnce(Return(mock_)).RetiresOnSaturation();

value is 1

backtrace:
#0  0x0e595df65110 in 
testing::internal::linked_ptr::operator* (this=0x1) 
at gtest-linked_ptr.h:174
174 gtest-linked_ptr.h: No such file or directory.
in gtest-linked_ptr.h
(gdb) bt
#0  0x0e595df65110 in 
testing::internal::linked_ptr::operator* (this=0x1) 
at gtest-linked_ptr.h:174
#1  0x0e595df5f941 in testing::Sequence::AddExpectation (this=0x1, 
expectation=@0x7f7e) at gmock-spec-builders.cc:785
#2  0x0e57174d93b0 in ?? () from 
/usr/ports/pobj/protobuf-3.1.0/protobuf-3.1.0/src/.libs/protobuf-test
#3  0x0e5939bb2050 in ?? ()
#4  0x0e591a8ea1f8 in ?? ()
#5  0x7f7e0080 in ?? ()
#6  0x00850008 in ?? ()
#7  0x0e5717fcfc10 in ?? () from 
/usr/ports/pobj/protobuf-3.1.0/protobuf-3.1.0/src/.libs/protobuf-test
#8  0x0e591a8ea1a8 in ?? ()
#9  0x0e59ada99700 in ?? ()
#10 0x0001 in ?? ()
#11 0x0e59ada99700 in ?? ()
#12 0x0e595b6ab818 in ?? ()
#13 0x0e59ada99700 in ?? ()
#14 0x7f7dfff8 in ?? ()
#15 0x7f7e00c0 in ?? ()
#16 0xac297ac738fd6771 in ?? ()
#17 0x0001 in ?? ()
#18 0x0e5927b4ba14 in 
_ZN7testing8internalL19TearDownEnvironmentEPNS_11EnvironmentE () at 
gtest.cc:4211
#19 0x0e57174d2d83 in ?? () from 
/usr/ports/pobj/protobuf-3.1.0/protobuf-3.1.0/src/.libs/protobuf-test
#20 0x0e571874fb10 in ?? () from 
/usr/ports/pobj/protobuf-3.1.0/protobuf-3.1.0/src/.libs/protobuf-test
#21 0x0e5717fcfd10 in ?? () from 
/usr/ports/pobj/protobuf-3.1.0/protobuf-3.1.0/src/.libs/protobuf-test
#22 0x0e5717fcfc04 in ?? () from 
/usr/ports/pobj/protobuf-3.1.0/protobuf-3.1.0/src/.libs/protobuf-test
#23 0x00851a8ea018 in ?? ()
#24 0x0e5717fcfc10 in ?? () from 
/usr/ports/pobj/protobuf-3.1.0/protobuf-3.1.0/src/.libs/protobuf-test
#25 0x0e591a8ea1f0 in ?? ()
#26 0x7f7e0050 in ?? ()
#27 0x0e571874fd50 in ?? () from 
/usr/ports/pobj/protobuf-3.1.0/protobuf-3.1.0/src/.libs/protobuf-test
#28 0x0e59c2236718 in ?? ()
#29 0x7f7e0030 in ?? ()
#30 0x0e592fc43798 in ?? ()
#31 0xac297ac738fd6771 in ?? ()
#32 0x0e592261f0d8 in ?? ()
#33 0x0001 in ?? ()
#34 0x0e598018b4d8 in ?? ()
#35 0x0e57174cb08e in ?? () from 
/usr/ports/pobj/protobuf-3.1.0/protobuf-3.1.0/src/.libs/protobuf-test
#36 0x0e5932e66f98 in ?? ()
#37 0xac297ac738fd6771 in ?? ()
#38 0x7f7e01f0 in ?? ()
#39 0x0001 in ?? ()
#40 0x7f7e0250 in ?? ()
#41 0x0e57174cc123 in ?? () from 
/usr/ports/pobj/protobuf-3.1.0/protobuf-3.1.0/src/.libs/protobuf-test
#42 0x0e5925902289 in _dl_find_symbol (name=0xe5716e392c3 
"_ZN6google8protobuf8internal10LogMessageD1Ev", this=0x7f7e01b8, 
flags=0, ref_sym=0xe591a8ea690, req_obj=0x0, pobj=0x7f01fffe01b0)
at /usr/src/libexec/ld.so/resolve.c:669
#43 0x0e591a8ea018 in ?? ()
#44 0x0e57188a4ad0 in ?? () from 
/usr/ports/pobj/protobuf-3.1.0/protobuf-3.1.0/src/.libs/protobuf-test
#45 0x0e597a2ee968 in ?? ()
#46 0x0e59266be920 in ?? ()
#47 0x0e5a129be570 in ?? ()
#48 0x7f7e01b8 in ?? ()
#49 0xe6f986665be5894f in ?? ()
#50 0x0004 in ?? ()
#51 0x0e571874faf0 in ?? () from 
/usr/ports/pobj/protobuf-3.1.0/protobuf-3.1.0/src/.libs/protobuf-test
#52 0x0e59ab382e00 in ?? ()
#53 0x0e59ada997b0 in ?? ()
#54 0x0e591f55d240 

[protobuf] Best practices for storing .proto files

2016-10-27 Thread buchanae . ohsu
I have a simple server/clients setup with protobufs. The server API code 
lives in one VCS repository, and multiple clients live in multiple other 
repositories. Are there any best practices or common patterns for how to 
store the .proto files related these interfaces?

It seems like the best option would be to have each repository store its 
own .proto file, thereby documenting the interface it supports. Seems like 
one of the major features of protobufs is allowing clients to have an out 
of date schema, and this approach seems to fall in line with that.

Thoughts?

Thanks!

-- 
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 protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.