In the meantime, did anyone manage to build Protobuf3 on OpenBSD 6.0 amd64, 
or -current?

I have tried to build Protobuf v3.1.0, v3.2.0, as well as Master branch on
OpenBSD 6.(more-or-less current) amd64, using 
autoconf-2.69p2, autogen-5.8.7p4, automake-1.15p0, libtool-2.4.2p0, and gcc 
v4.2.1 .

However, my attempts with v3.1.0 fail as it had not the patch for OpenBSD 
yet, and make of v3.2.0 as well as of Master fail quite early, as follows:

[rs@apuA:protobuf]$ make 
make all-recursive
Making all in .
Making all in src
depbase=`echo google/protobuf/api.pb.lo | sed 
's|[^/]*$|.deps/&|;s|\.lo$||'`; /bin/sh ../libtool --tag=CXX --mode=compile 
g++ -DHAVE_CONFIG_H -I. -I.. -pthread -DHAVE_PTHREAD=1 -DHAVE_ZLIB=1 -Wall 
-Wno-sign-compare -O2 -g -DNDEBUG -MT google/protobuf/api.pb.lo -MD -MP -MF 
$depbase.Tpo -c -o google/protobuf/api.pb.lo google/protobuf/api.pb.cc && 
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -pthread -DHAVE_PTHREAD=1 
-DHAVE_ZLIB=1 -Wall -Wno-sign-compare -O2 -g -DNDEBUG -MT 
google/protobuf/api.pb.lo -MD -MP -MF google/protobuf/.deps/api.pb.Tpo -c 
google/protobuf/api.pb.cc -fPIC -DPIC -o google/protobuf/.libs/api.pb.o
./google/protobuf/arena.h: In static member function 'static GenericType* 
<Type>::NewFromPrototype(const GenericType*, google::protobuf::Arena*) 
[with GenericType = google::protobuf::Mixin]':
./google/protobuf/arena.h:643: sorry, unimplemented: inlining failed in 
call to 'static T* 
google::protobuf::Arena::CreateMaybeMessage(google::protobuf::Arena*, ...) 
[with T =google::protobuf::Mixin]': function not inlinable
./google/protobuf/repeated_field.h:588: sorry, unimplemented: called from 
*** Error 1 in src (Makefile:3968 'google/protobuf/api.pb.lo')
*** Error 1 in . (Makefile:1414 'all-recursive')
*** Error 1 in /home/rs/protobuf/protobuf (Makefile:1296 'all') 

Under Ubuntu Linux, I did manage to build them, and they pass make check.

How did you get v3.2.0 to build with eg++ under OpenBSD 6.0, so that you 
were able to run make check?

Thank you,

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.

Reply via email to