James Peach created MESOS-4096:
----------------------------------

             Summary: stout tests fail to build with external protobuf version
                 Key: MESOS-4096
                 URL: https://issues.apache.org/jira/browse/MESOS-4096
             Project: Mesos
          Issue Type: Bug
          Components: build, stout
            Reporter: James Peach


Using the following configure options:
{code}
prefix/configure \
    --disable-java \
    --disable-python \
    --enable-silent-rules \
    --enable-debug \
    --with-apr=$(apr-1-config --prefix) \
    --with-protobuf=$(pkg-config --variable=prefix protobuf-lite)
{code}

The stout tests fail to build because code generated with a different protobuf 
version is checked in and not regenerated:

{code}
  CXX      stout_tests-protobuf_tests.pb.o
In file included from 
/Users/jpeach/src/mesos.git/3rdparty/libprocess/3rdparty/stout/tests/protobuf_tests.pb.cc:5:
/Users/jpeach/src/mesos.git/3rdparty/libprocess/3rdparty/stout/tests/protobuf_tests.pb.h:17:2:
 error: This
      file was generated by an older version of protoc which is
#error This file was generated by an older version of protoc which is
 ^
/Users/jpeach/src/mesos.git/3rdparty/libprocess/3rdparty/stout/tests/protobuf_tests.pb.h:18:2:
 error:
      incompatible with your Protocol Buffer headers. Please
#error incompatible with your Protocol Buffer headers.  Please
 ^
/Users/jpeach/src/mesos.git/3rdparty/libprocess/3rdparty/stout/tests/protobuf_tests.pb.h:19:2:
 error:
      regenerate this file with a newer version of protoc.
#error regenerate this file with a newer version of protoc.
 ^
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to