What Cygwin version?

What GCC version?

We do test releases on Cygwin so I'm guessing you're using an older version.
 The error looks like a problem that old GCCs had (though we may want to
work around it).

On Sat, Feb 5, 2011 at 3:59 PM, jimo555 <jimo...@gmail.com> wrote:

> Just wanted to pass along a simple fix I had to make to get the
> protobuf package to
> build on cygwin.  I had to make
>
>  const':
> ./google/protobuf/descriptor.h:1152: error:
>
> `google::protobuf::internal::Mutex*google::protobuf::DescriptorPool::mutex_'
>  is private
>
>
> this member field public.  It all built ok after doing this.  (I also
> had to move the dir to C:
> as it had a link error due to being under C:/Documents and Settings.)
>
> Here is the error message excerpt I got:
>
>
> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wall -Wwrite-strings -
> Woverloaded-virtual -Wno-sign-compare -O2 -g -DND
> EBUG -MT structurally_valid.lo -MD -MP -MF .deps/
> structurally_valid.Tpo -c google/protobuf/stubs/structurally_valid.cc
> -DDLL_EXPORT -DPIC -o .libs/structurally_valid.o
> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wall -Wwrite-strings -
> Woverloaded-virtual -Wno-sign-compare -O2 -g -DND
> EBUG -MT structurally_valid.lo -MD -MP -MF .deps/
> structurally_valid.Tpo -c google/protobuf/stubs/structurally_valid.cc
> -
> o structurally_valid.o >/dev/null 2>&1
> mv -f .deps/structurally_valid.Tpo .deps/structurally_valid.Plo
> /bin/sh ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I.
> -I..     -Wall -Wwrite-strings -Woverloaded-virtu
> al -Wno-sign-compare -O2 -g -DNDEBUG -MT descriptor.lo -MD -MP -
> MF .deps/descriptor.Tpo -c -o descriptor.lo `test -f 'go
> ogle/protobuf/descriptor.cc' || echo './'`google/protobuf/
> descriptor.cc
> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wall -Wwrite-strings -
> Woverloaded-virtual -Wno-sign-compare -O2 -g -DND
> EBUG -MT descriptor.lo -MD -MP -MF .deps/descriptor.Tpo -c google/
> protobuf/descriptor.cc  -DDLL_EXPORT -DPIC -o .libs/de
> scriptor.o
> google/protobuf/descriptor.cc: In member function `virtual const
> google::protobuf::FieldDescriptor* google::protobuf::De
>
> scriptorBuilder::OptionInterpreter::AggregateOptionFinder::FindExtension(google::protobuf::Message*,
> const std::string&)
>  const':
> ./google/protobuf/descriptor.h:1152: error:
>
> `google::protobuf::internal::Mutex*google::protobuf::DescriptorPool::mutex_'
>  is private
> google/protobuf/descriptor.cc:4341: error: within this context
> ./google/protobuf/descriptor.h:1152: error:
>
> `google::protobuf::internal::Mutex*google::protobuf::DescriptorPool::mutex_'
>  is private
> google/protobuf/descriptor.cc:4342: error: within this context
> make[2]: *** [descriptor.lo] Error 1
> make[2]: Leaving directory `/cygdrive/c/Documents and Settings/Jim/My
> Documents/java/protobuf-2.4.0a/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/cygdrive/c/Documents and Settings/Jim/My
> Documents/java/protobuf-2.4.0a'
> make: *** [all] Error 2
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To post to this group, send email to protobuf@googlegroups.com.
> To unsubscribe from this group, send email to
> protobuf+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/protobuf?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to