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

New issue 477 by [email protected]: [Python] Experimental C++ implementation doesn't compile
http://code.google.com/p/protobuf/issues/detail?id=477

What steps will reproduce the problem?
1. Compile Python implementation with PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp

What is the expected output? What do you see instead?
 - The expected output is for the Python extension to compile.
 - Instead, compilation throws an error:

google/protobuf/pyext/python-proto2.cc: In function ‘void google::protobuf::python::ReleaseSubMessage(google::protobuf::Message*, const google::protobuf::FieldDescriptor*, google::protobuf::python::CMessage*)’: google/protobuf/pyext/python-proto2.cc:402:57: error: ‘const Reflection’ has no member named ‘ReleaseMessage’

What version of the product are you using? On what operating system?
 - protobuf 2.5.0
 - Gentoo Linux


build_ext compilation log:

running build_ext
building 'google.protobuf.internal._net_proto2___python' extension
creating /var/tmp/portage/dev-libs/protobuf-2.5.0/work/protobuf-2.5.0-python2_7/temp.linux-i686-2.7 creating /var/tmp/portage/dev-libs/protobuf-2.5.0/work/protobuf-2.5.0-python2_7/temp.linux-i686-2.7/google creating /var/tmp/portage/dev-libs/protobuf-2.5.0/work/protobuf-2.5.0-python2_7/temp.linux-i686-2.7/google/protobuf creating /var/tmp/portage/dev-libs/protobuf-2.5.0/work/protobuf-2.5.0-python2_7/temp.linux-i686-2.7/google/protobuf/pyext i686-pc-linux-gnu-g++ -pthread -O2 -march=core2 -fomit-frame-pointer -pipe -fPIC -I. -I/usr/include/python2.7 -c google/protobuf/pyext/python_descriptor.cc -o /var/tmp/portage/dev-libs/protobuf-2.5.0/work/protobuf-2.5.0-python2_7/temp.linux-i686-2.7/google/protobuf/pyext/python_descriptor.o google/protobuf/pyext/python_descriptor.cc:93:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] google/protobuf/pyext/python_descriptor.cc:93:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] google/protobuf/pyext/python_descriptor.cc:93:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] google/protobuf/pyext/python_descriptor.cc:93:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] google/protobuf/pyext/python_descriptor.cc:93:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] i686-pc-linux-gnu-g++ -pthread -O2 -march=core2 -fomit-frame-pointer -pipe -fPIC -I. -I/usr/include/python2.7 -c google/protobuf/pyext/python_protobuf.cc -o /var/tmp/portage/dev-libs/protobuf-2.5.0/work/protobuf-2.5.0-python2_7/temp.linux-i686-2.7/google/protobuf/pyext/python_protobuf.o i686-pc-linux-gnu-g++ -pthread -O2 -march=core2 -fomit-frame-pointer -pipe -fPIC -I. -I/usr/include/python2.7 -c google/protobuf/pyext/python-proto2.cc -o /var/tmp/portage/dev-libs/protobuf-2.5.0/work/protobuf-2.5.0-python2_7/temp.linux-i686-2.7/google/protobuf/pyext/python-proto2.o google/protobuf/pyext/python-proto2.cc: In function ‘void google::protobuf::python::AddConstants(PyObject*)’: google/protobuf/pyext/python-proto2.cc:132:3: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] google/protobuf/pyext/python-proto2.cc:132:3: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] google/protobuf/pyext/python-proto2.cc:132:3: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] google/protobuf/pyext/python-proto2.cc:132:3: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] google/protobuf/pyext/python-proto2.cc:132:3: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
google/protobuf/pyext/python-proto2.cc: At global scope:
google/protobuf/pyext/python-proto2.cc:268:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] google/protobuf/pyext/python-proto2.cc: In function ‘bool google::protobuf::python::CheckAndGetDouble(PyObject*, double*)’: google/protobuf/pyext/python-proto2.cc:363:44: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] google/protobuf/pyext/python-proto2.cc: In function ‘bool google::protobuf::python::CheckAndGetBool(PyObject*, bool*)’: google/protobuf/pyext/python-proto2.cc:381:43: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] google/protobuf/pyext/python-proto2.cc: In function ‘void google::protobuf::python::ReleaseSubMessage(google::protobuf::Message*, const google::protobuf::FieldDescriptor*, google::protobuf::python::CMessage*)’: google/protobuf/pyext/python-proto2.cc:402:57: error: ‘const Reflection’ has no member named ‘ReleaseMessage’ google/protobuf/pyext/python-proto2.cc: In function ‘bool google::protobuf::python::CheckAndSetString(PyObject*, google::protobuf::Message*, const google::protobuf::FieldDescriptor*, const google::protobuf::Reflection*, bool, int)’: google/protobuf/pyext/python-proto2.cc:431:42: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] google/protobuf/pyext/python-proto2.cc:451:31: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] google/protobuf/pyext/python-proto2.cc: In function ‘bool google::protobuf::python::CheckAndGetInteger(PyObject*, T*, PyObject*, PyObject*) [with T = int, PyObject = _object]’:
google/protobuf/pyext/python-proto2.cc:644:7:   instantiated from here
google/protobuf/pyext/python-proto2.cc:336:5: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] google/protobuf/pyext/python-proto2.cc: In function ‘bool google::protobuf::python::CheckAndGetInteger(PyObject*, T*, PyObject*, PyObject*) [with T = long long int, PyObject = _object]’:
google/protobuf/pyext/python-proto2.cc:649:7:   instantiated from here
google/protobuf/pyext/python-proto2.cc:336:5: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] google/protobuf/pyext/python-proto2.cc: In function ‘bool google::protobuf::python::CheckAndGetInteger(PyObject*, T*, PyObject*, PyObject*) [with T = unsigned int, PyObject = _object]’:
google/protobuf/pyext/python-proto2.cc:654:7:   instantiated from here
google/protobuf/pyext/python-proto2.cc:336:5: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] google/protobuf/pyext/python-proto2.cc: In function ‘bool google::protobuf::python::CheckAndGetInteger(PyObject*, T*, PyObject*, PyObject*) [with T = long long unsigned int, PyObject = _object]’:
google/protobuf/pyext/python-proto2.cc:659:7:   instantiated from here
google/protobuf/pyext/python-proto2.cc:336:5: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]

--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to