Re: [protobuf] header update in building protobuf 2.4.0a on cygwin

2011-02-07 Thread Kenton Varda
Re-adding the list so that someone can consider these problems.

On Mon, Feb 7, 2011 at 5:10 AM, Jim Olson  wrote:

> I think it was gcc/g++ 3.3, yes it's a couple years old.
>
> Other problems I discovered :
> protoc has to be installed parallel to the java/src dir
> otherwise the maven pom.xml can't find it.
> I saw postings about the problems this caused but no solutions.
> Perhaps you can put this in the README or INSTALL.
>
> And cygwin expects ; rather than : as the CLASSPATH
> path separator which I think caused problems in the generated
> add_person_java and list_person_java shell scripts in the examples dir.   It
> took me a while to figure this out
> because I don't usually use cygwin for java work.
>
> Thanks
> Jim Olson
>
>
>
> On Sun, Feb 6, 2011 at 3:33 PM, Kenton Varda  wrote:
>
>> 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  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.



Re: [protobuf] header update in building protobuf 2.4.0a on cygwin

2011-02-06 Thread Kenton Varda
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  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.



[protobuf] header update in building protobuf 2.4.0a on cygwin

2011-02-06 Thread jimo555
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.