Turns out that is gzip, not cygwin.
I have been looking at the ruby files: amqpgen.rg and cppgen.rb. ---Disclaimer: I am a C++/Java guy, not ruby.
In amqpgen.rb, by adding underscores to type on line 229:
amqp_attr_reader :type, :default, :code, :required
the errors in that file go away, however I get errors in cppgen.rb:
C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/cppgen.rb:151:in `amqp2cpp': undefined method `amqp2cpp' for
from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/0-10/specification.rb:58:in `domain_h'
from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/0-10/specification.rb:173:in `block (3 levels) i
from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/0-10/specification.rb:171:in `each'
from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/0-10/specification.rb:171:in `block (2 levels) i
from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/cppgen.rb:358:in `namespace'
from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/0-10/specification.rb:169:in `block in gen_speci
from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/cppgen.rb:326:in `block in h_file'
from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/amqpgen.rb:502:in `file'
from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/cppgen.rb:322:in `h_file'
from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/0-10/specification.rb:167:in `gen_specification_
from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/0-10/specification.rb:379:in `generate'
from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/0-10/specification.rb:389:in `<top (required)>'
from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/generate:74:in `load'
from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/generate:74:in `block in <main>'
from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/generate:70:in `each'
from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/generate:70:in `<main>'
So looking at the code in that location I see:
149 def amqp2cpp()
150 return "ArrayDomain<#
> " if type_=="array"
151 return type_.amqp2cpp
where on 151 type_ is calling amqp2cpp. This makes me wonder whether putting in those underscores on the declarations of type in amqpgen.rb was the right fix, especially after this comment in cppgen.rb on line 53:
- Names that need a trailing "_" to avoid clashes.
In class String in cppgen.rb, it defines a amqp2cpp method, so I was wondering if that is what "type" should be in the amqpgen.rb and it is passed in some how to the call on line 151 of cppgen.rb. I would then guess that "type_" would be defined in the class AmqpElement.