[ 
https://issues.apache.org/jira/browse/QPID-3083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12999638#comment-12999638
 ] 

David Hickerson commented on QPID-3083:
---------------------------------------

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

and 248:
  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
nil:NilClass (NoMethodError)
        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
n gen_specification_fwd'
        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
n gen_specification_fwd'
        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
fication_fwd'
        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_
fwd'
        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>'
Generated C:/dev/tools/Qpid/qpid-0.8/cpp/src/tests/allSegmentTypes.h
Generated C:/dev/tools/Qpid/qpid-0.8/cpp/src/qpid/amqp_0_10/exceptions.h
Generated C:/dev/tools/Qpid/qpid-0.8/cpp/src/qpid/amqp_0_10/handlers.h

So looking at the code in that location I see:
149  def amqp2cpp()
150    return "ArrayDomain<#{array_type(name).amqp2cpp}> " if type_=="array"
151    return type_.amqp2cpp
152  end

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. 




> C++ Windows Build is looking for 'qpid/framing/constants.h', but that file is 
> not in the distribution at that location
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: QPID-3083
>                 URL: https://issues.apache.org/jira/browse/QPID-3083
>             Project: Qpid
>          Issue Type: Bug
>          Components: Build Tools, C++ Broker, C++ Client, C++ Clustering
>    Affects Versions: 0.8
>         Environment: Windows 7 OS, MS Visual Studio 2008, CMake, Ruby, Python
>            Reporter: David Hickerson
>              Labels: build
>         Attachments: cmake_output.txt, env.txt
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> qpid/Exception.h:  #include "qpid/framing/constants.h" 
> in the cpp portion of the Full Source Distribution of the 0.8 source, 
> constants.h does not exist at that location. One was found at 
> qpid-0.8\cpp\src\qpid\replication , but it is not clear as to if that was the 
> intended file.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to