I'm building Protobuf (master) on Solaris 11.3, x86. The compile has an 
issue on common.cc:

libtool: compile:  /opt/developerstudio12.6/bin/CC -DHAVE_CONFIG_H -I. -I.. 
-D_POSIX_PTHREAD_SEMANTICS -mt -DHAVE_PTHREAD=1 -DHAVE_ZLIB=1 -g0 -xO3 
-xlibmil -xdepend -xbuiltin -mt -template=no%extdef -std=c++11 -DNDEBUG 
-m64 -c google/protobuf/stubs/common.cc  -KPIC -DPIC -o 
google/protobuf/stubs/.libs/common.o
"google/protobuf/stubs/common.cc", line 357: Error: Only a function may be 
called.
1 Error(s) detected.

Looking at common.cc : 357 it does look like a valid complaint. It seems 
the function is being cast to accept no arguments but one is being provided:

  static void RunZeroArgFunc(const void* arg) {
    reinterpret_cast<void (*)()>(const_cast<void*>(arg))();  // line 357
  }

What is the recommended way to clear this issue?

Thanks in advance,

Jeff

-- 
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 https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to