Qpid
  1. Qpid
  2. QPID-3083

Generating amqp code via ruby fails with ruby 1.9

    Details

      Description

      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.

      1. env.txt
        3 kB
        David Hickerson
      2. cmake_output.txt
        36 kB
        David Hickerson

        Issue Links

          Activity

          Hide
          Chuck Rolke added a comment -

          The file is not part of the source kit. It is generated when you run CMake.

          When you run CMake from a given directory, say <dir>, it will produce file <dir>\qpid-cpp.sln.
          Then from there CMake will produce <dir>\include\qpid\framing\constants.h.

          When I first started on this project I was running CMake in the qpid\cpp directory. This works
          for just one platform, say x86, but fails if you try to build a second platform like x64. Lately
          I run CMake from a directory under qpid\ to be a peer directory of qpid\cpp. Usually I create
          qpid\b32 and qpid\b64 to build 32-bit and 64-bit variants.

          So if you can get CMake to work your constants.h file will be generated in a directory relative
          to where CMake ran.

          Show
          Chuck Rolke added a comment - The file is not part of the source kit. It is generated when you run CMake. When you run CMake from a given directory, say <dir>, it will produce file <dir>\qpid-cpp.sln. Then from there CMake will produce <dir>\include\qpid\framing\constants.h. When I first started on this project I was running CMake in the qpid\cpp directory. This works for just one platform, say x86, but fails if you try to build a second platform like x64. Lately I run CMake from a directory under qpid\ to be a peer directory of qpid\cpp. Usually I create qpid\b32 and qpid\b64 to build 32-bit and 64-bit variants. So if you can get CMake to work your constants.h file will be generated in a directory relative to where CMake ran.
          Hide
          David Hickerson added a comment -

          I ran cmake -i under the quip\cpp like what was stated in the INSTALL-WINDOWS file, but did get this cmake error:
          CMake Error at src/CMakeLists.txt:224 (include):
          include could not find load file:

          C:/dev/tools/Qpid/qpid-0.8/cpp/src/rubygen.cmake

          I had read the wiki stating that the cmake build method was not finished and had got project files out of the cmake -i, so I assumed that was an in work issue that did not affect the current build.

          rubygen.cmake is no where in the distro, so I assume that is the real issue here.

          Show
          David Hickerson added a comment - I ran cmake -i under the quip\cpp like what was stated in the INSTALL-WINDOWS file, but did get this cmake error: CMake Error at src/CMakeLists.txt:224 (include): include could not find load file: C:/dev/tools/Qpid/qpid-0.8/cpp/src/rubygen.cmake I had read the wiki stating that the cmake build method was not finished and had got project files out of the cmake -i, so I assumed that was an in work issue that did not affect the current build. rubygen.cmake is no where in the distro, so I assume that is the real issue here.
          Hide
          Chuck Rolke added a comment -

          Hi David,

          rubygen.cmake is another generated file. There's a lot of generated files.

          In qpid-0.8 the Windows build should work. There were a few missing files in qpid-cpp-0.8 that are being corrected for 0.10, so don't use qpid-cpp-0.8 under windows.

          Could you post a listing of your environment (command prompt SET output) and the cmake output?

          -Chuck

          Show
          Chuck Rolke added a comment - Hi David, rubygen.cmake is another generated file. There's a lot of generated files. In qpid-0.8 the Windows build should work. There were a few missing files in qpid-cpp-0.8 that are being corrected for 0.10, so don't use qpid-cpp-0.8 under windows. Could you post a listing of your environment (command prompt SET output) and the cmake output? -Chuck
          Hide
          David Hickerson added a comment -

          HI Chuck,

          Looking back though the cmake output, I found this:
          C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/amqpgen.rb:233:in `uses': undefined local variable or method
          `type_' for #<AmqpDomain(segment-type)> (NameError)
          from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/amqpgen.rb:226:in `initialize'
          from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/amqpgen.rb:118:in `new'
          from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/amqpgen.rb:118:in `wrap'
          from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/amqpgen.rb:125:in `block in initialize'
          from C:/Ruby192/lib/ruby/1.9.1/rexml/element.rb:906:in `block in each'
          from C:/Ruby192/lib/ruby/1.9.1/rexml/xpath.rb:64:in `each'
          from C:/Ruby192/lib/ruby/1.9.1/rexml/xpath.rb:64:in `each'
          from C:/Ruby192/lib/ruby/1.9.1/rexml/element.rb:906:in `each'
          from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/amqpgen.rb:125:in `map'
          from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/amqpgen.rb:125:in `initialize'
          from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/amqpgen.rb:434:in `initialize'
          from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/generate:44:in `new'
          from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/generate:44:in `block in parse_specs'
          from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/generate:43:in `each'
          from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/generate:43:in `parse_specs'
          from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/generate:68:in `<main>'

          In amqpgen.rb, I am seeing :
          class AmqpDomain < AmqpElement
          def initialize(xml, parent)
          super
          root.used_by[uses].push(fqname) if uses and uses.index('.')
          end

          amqp_attr_reader :type <--- I am no ruby guy, but are we missing a _ on type here????
          amqp_single_child_reader :struct # preview
          amqp_single_child_reader :enum

          def uses() type_=="array" ? ArrayTypes[name] : type_; end
          end

          I added a underscore and tried cmake again and it complained at 244 of the same problem.

          I am including my outputs as requested.

          Thanks,

          Dave

          Show
          David Hickerson added a comment - HI Chuck, Looking back though the cmake output, I found this: C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/amqpgen.rb:233:in `uses': undefined local variable or method `type_' for #<AmqpDomain(segment-type)> (NameError) from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/amqpgen.rb:226:in `initialize' from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/amqpgen.rb:118:in `new' from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/amqpgen.rb:118:in `wrap' from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/amqpgen.rb:125:in `block in initialize' from C:/Ruby192/lib/ruby/1.9.1/rexml/element.rb:906:in `block in each' from C:/Ruby192/lib/ruby/1.9.1/rexml/xpath.rb:64:in `each' from C:/Ruby192/lib/ruby/1.9.1/rexml/xpath.rb:64:in `each' from C:/Ruby192/lib/ruby/1.9.1/rexml/element.rb:906:in `each' from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/amqpgen.rb:125:in `map' from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/amqpgen.rb:125:in `initialize' from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/amqpgen.rb:434:in `initialize' from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/generate:44:in `new' from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/generate:44:in `block in parse_specs' from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/generate:43:in `each' from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/generate:43:in `parse_specs' from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/generate:68:in `<main>' In amqpgen.rb, I am seeing : class AmqpDomain < AmqpElement def initialize(xml, parent) super root.used_by [uses] .push(fqname) if uses and uses.index('.') end amqp_attr_reader :type <--- I am no ruby guy, but are we missing a _ on type here???? amqp_single_child_reader :struct # preview amqp_single_child_reader :enum def uses() type_=="array" ? ArrayTypes [name] : type_; end end I added a underscore and tried cmake again and it complained at 244 of the same problem. I am including my outputs as requested. Thanks, Dave
          Hide
          Chuck Rolke added a comment -

          Sorry I haven't had time to set up my Win 7 environment today.

          Looking at your env.txt, though, I can see something for you to try. Your path has

          C:\Program Files (x86)\GnuWin32\bin

          ahead of your installed CMake, doxygen, Python, and Ruby. Make sure that you are not running a GnuWin32 version of any of those utilities. Or temporarily take GnuWin32 out of your path and try again. I use 'which' or '--version' to ID the copy of the utility that'll run from my command prompt.

          Again, I can't prove anything but I've been burned when cygwin snuck in usurped some commands used in the build with bad results. Cygwin even hijacks command prompt builtins (mkdir, echo) so I often run with no cygwin in my path at all.

          Show
          Chuck Rolke added a comment - Sorry I haven't had time to set up my Win 7 environment today. Looking at your env.txt, though, I can see something for you to try. Your path has C:\Program Files (x86)\GnuWin32\bin ahead of your installed CMake, doxygen, Python, and Ruby. Make sure that you are not running a GnuWin32 version of any of those utilities. Or temporarily take GnuWin32 out of your path and try again. I use 'which' or '--version' to ID the copy of the utility that'll run from my command prompt. Again, I can't prove anything but I've been burned when cygwin snuck in usurped some commands used in the build with bad results. Cygwin even hijacks command prompt builtins (mkdir, echo) so I often run with no cygwin in my path at all.
          Hide
          David Hickerson added a comment -

          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:

          1. 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.

          Show
          David Hickerson added a comment - 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.
          Hide
          Steve Huston added a comment -

          Unless the ruby scripts were damaged during packaging/unpackaging there shouldn't be any errors - they run correctly on Windows and Linux in development.

          Could you please, at the command prompt where you are running cmake, type:

          ruby --version

          and let us know what you get?

          Show
          Steve Huston added a comment - Unless the ruby scripts were damaged during packaging/unpackaging there shouldn't be any errors - they run correctly on Windows and Linux in development. Could you please, at the command prompt where you are running cmake, type: ruby --version and let us know what you get?
          Hide
          David Hickerson added a comment -

          I have version:
          ruby 1.9.2p136 (2010-12-25) [i386-mingw32]

          Thanks,

          Dave

          Show
          David Hickerson added a comment - I have version: ruby 1.9.2p136 (2010-12-25) [i386-mingw32] Thanks, Dave
          Hide
          David Hickerson added a comment -

          I downloaded and unpacked 0.8 full source distribution again just to make sure the files were the same and they are. I ran cmake -i from C:\dev\tools\Qpid\qpid-0.8\cpp , which generated the following output and error:

          Would you like to see advanced options? [No]:
          Please wait while cmake processes CMakeLists.txt files....

          – Building for: Visual Studio 9 2008
          C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/amqpgen.rb:233:in `uses': undefined local
          variable or method `type_' for #<AmqpDomain(segment-type)> (NameError)
          from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/amqpgen.rb:226:in `initializ
          e'
          from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/amqpgen.rb:118:in `new'
          from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/amqpgen.rb:118:in `wrap'
          from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/amqpgen.rb:125:in `block in
          initialize'
          from C:/Ruby192/lib/ruby/1.9.1/rexml/element.rb:906:in `block in each'
          from C:/Ruby192/lib/ruby/1.9.1/rexml/xpath.rb:64:in `each'
          from C:/Ruby192/lib/ruby/1.9.1/rexml/xpath.rb:64:in `each'
          from C:/Ruby192/lib/ruby/1.9.1/rexml/element.rb:906:in `each'
          from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/amqpgen.rb:125:in `map'
          from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/amqpgen.rb:125:in `initializ
          e'
          from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/amqpgen.rb:434:in `initializ
          e'
          from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/generate:44:in `new'
          from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/generate:44:in `block in par
          se_specs'
          from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/generate:43:in `each'
          from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/generate:43:in `parse_specs'

          from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/generate:68:in `<main>'
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/System.
          h
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Broker.
          h
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Agent.h

          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Vhost.h

          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Queue.h

          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Exchang
          e.h
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Binding
          .h
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Subscri
          ption.h
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Connect
          ion.h
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Link.h
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Bridge.
          h
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Session
          .h
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Managem
          entSetupState.h
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/System.
          cpp
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Broker.
          cpp
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Agent.c
          pp
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Vhost.c
          pp
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Queue.c
          pp
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Exchang
          e.cpp
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Binding
          .cpp
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Subscri
          ption.cpp
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Connect
          ion.cpp
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Link.cp
          p
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Bridge.
          cpp
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Session
          .cpp
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Managem
          entSetupState.cpp
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/ArgsBro
          kerEcho.h
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/ArgsBro
          kerConnect.h
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/ArgsBro
          kerQueueMoveMessages.h
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/ArgsQue
          uePurge.h
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/ArgsQue
          ueReroute.h
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/ArgsLin
          kBridge.h
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventCl
          ientConnect.h
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventCl
          ientConnectFail.h
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventCl
          ientDisconnect.h
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventBr
          okerLinkUp.h
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventBr
          okerLinkDown.h
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventQu
          eueDeclare.h
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventQu
          eueDelete.h
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventEx
          changeDeclare.h
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventEx
          changeDelete.h
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventBi
          nd.h
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventUn
          bind.h
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventSu
          bscribe.h
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventUn
          subscribe.h
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventCl
          ientConnect.cpp
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventCl
          ientConnectFail.cpp
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventCl
          ientDisconnect.cpp
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventBr
          okerLinkUp.cpp
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventBr
          okerLinkDown.cpp
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventQu
          eueDeclare.cpp
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventQu
          eueDelete.cpp
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventEx
          changeDeclare.cpp
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventEx
          changeDelete.cpp
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventBi
          nd.cpp
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventUn
          bind.cpp
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventSu
          bscribe.cpp
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventUn
          subscribe.cpp
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Package
          .h
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Package
          .cpp
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\acl/Acl.h
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\acl/Acl.cpp
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\acl/EventAllow
          .h
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\acl/EventDeny.
          h
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\acl/EventFileL
          oaded.h
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\acl/EventFileL
          oadFailed.h
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\acl/EventAllow
          .cpp
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\acl/EventDeny.
          cpp
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\acl/EventFileL
          oaded.cpp
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\acl/EventFileL
          oadFailed.cpp
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\acl/Package.h
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\acl/Package.cp
          p
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\cluster/Cluste
          r.h
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\cluster/Cluste
          r.cpp
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\cluster/ArgsCl
          usterStopClusterNode.h
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\cluster/Packag
          e.h
          Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\cluster/Packag
          e.cpp
          Generated: managementgen.cmake
          CMake Error at src/CMakeLists.txt:224 (include):
          include could not find load file:

          C:/dev/tools/Qpid/qpid-0.8/cpp/src/rubygen.cmake

          Variable Name: BUILD_ACL
          Description: Build ACL enforcement broker plugin
          Current Value: ON
          New Value (Enter to keep current value):
          ^C

          Thanks,

          Dave

          Show
          David Hickerson added a comment - I downloaded and unpacked 0.8 full source distribution again just to make sure the files were the same and they are. I ran cmake -i from C:\dev\tools\Qpid\qpid-0.8\cpp , which generated the following output and error: Would you like to see advanced options? [No] : Please wait while cmake processes CMakeLists.txt files.... – Building for: Visual Studio 9 2008 C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/amqpgen.rb:233:in `uses': undefined local variable or method `type_' for #<AmqpDomain(segment-type)> (NameError) from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/amqpgen.rb:226:in `initializ e' from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/amqpgen.rb:118:in `new' from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/amqpgen.rb:118:in `wrap' from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/amqpgen.rb:125:in `block in initialize' from C:/Ruby192/lib/ruby/1.9.1/rexml/element.rb:906:in `block in each' from C:/Ruby192/lib/ruby/1.9.1/rexml/xpath.rb:64:in `each' from C:/Ruby192/lib/ruby/1.9.1/rexml/xpath.rb:64:in `each' from C:/Ruby192/lib/ruby/1.9.1/rexml/element.rb:906:in `each' from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/amqpgen.rb:125:in `map' from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/amqpgen.rb:125:in `initializ e' from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/amqpgen.rb:434:in `initializ e' from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/generate:44:in `new' from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/generate:44:in `block in par se_specs' from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/generate:43:in `each' from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/generate:43:in `parse_specs' from C:/dev/tools/Qpid/qpid-0.8/cpp/rubygen/generate:68:in `<main>' Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/System. h Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Broker. h Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Agent.h Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Vhost.h Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Queue.h Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Exchang e.h Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Binding .h Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Subscri ption.h Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Connect ion.h Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Link.h Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Bridge. h Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Session .h Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Managem entSetupState.h Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/System. cpp Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Broker. cpp Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Agent.c pp Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Vhost.c pp Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Queue.c pp Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Exchang e.cpp Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Binding .cpp Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Subscri ption.cpp Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Connect ion.cpp Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Link.cp p Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Bridge. cpp Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Session .cpp Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Managem entSetupState.cpp Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/ArgsBro kerEcho.h Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/ArgsBro kerConnect.h Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/ArgsBro kerQueueMoveMessages.h Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/ArgsQue uePurge.h Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/ArgsQue ueReroute.h Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/ArgsLin kBridge.h Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventCl ientConnect.h Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventCl ientConnectFail.h Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventCl ientDisconnect.h Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventBr okerLinkUp.h Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventBr okerLinkDown.h Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventQu eueDeclare.h Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventQu eueDelete.h Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventEx changeDeclare.h Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventEx changeDelete.h Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventBi nd.h Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventUn bind.h Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventSu bscribe.h Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventUn subscribe.h Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventCl ientConnect.cpp Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventCl ientConnectFail.cpp Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventCl ientDisconnect.cpp Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventBr okerLinkUp.cpp Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventBr okerLinkDown.cpp Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventQu eueDeclare.cpp Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventQu eueDelete.cpp Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventEx changeDeclare.cpp Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventEx changeDelete.cpp Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventBi nd.cpp Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventUn bind.cpp Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventSu bscribe.cpp Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/EventUn subscribe.cpp Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Package .h Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\broker/Package .cpp Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\acl/Acl.h Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\acl/Acl.cpp Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\acl/EventAllow .h Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\acl/EventDeny. h Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\acl/EventFileL oaded.h Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\acl/EventFileL oadFailed.h Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\acl/EventAllow .cpp Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\acl/EventDeny. cpp Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\acl/EventFileL oaded.cpp Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\acl/EventFileL oadFailed.cpp Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\acl/Package.h Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\acl/Package.cp p Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\cluster/Cluste r.h Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\cluster/Cluste r.cpp Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\cluster/ArgsCl usterStopClusterNode.h Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\cluster/Packag e.h Generated: c:\dev\tools\qpid\qpid-0.8\cpp\src\qmf\org\apache\qpid\cluster/Packag e.cpp Generated: managementgen.cmake CMake Error at src/CMakeLists.txt:224 (include): include could not find load file: C:/dev/tools/Qpid/qpid-0.8/cpp/src/rubygen.cmake Variable Name: BUILD_ACL Description: Build ACL enforcement broker plugin Current Value: ON New Value (Enter to keep current value): ^C Thanks, Dave
          Hide
          Steve Huston added a comment -

          The ruby version may be it... I've been using 1.8, and RHEL 5 ships 1.8.something. I'm told that ruby 1.9 is different but I don't know enough details to know if that's the whole story.

          Is there a chance you can drop back to a 1.8.something ruby and retry?

          Show
          Steve Huston added a comment - The ruby version may be it... I've been using 1.8, and RHEL 5 ships 1.8.something. I'm told that ruby 1.9 is different but I don't know enough details to know if that's the whole story. Is there a chance you can drop back to a 1.8.something ruby and retry?
          Hide
          Steve Huston added a comment -

          Just another mention... (and thanks for the complete build output!) the files that do get generated are QMF-related and are generated via python. So the kit itself is probably intact.

          Show
          Steve Huston added a comment - Just another mention... (and thanks for the complete build output!) the files that do get generated are QMF-related and are generated via python. So the kit itself is probably intact.
          Hide
          David Hickerson added a comment -

          It is the newer version of Ruby (1.9.2) that was causing the problems. I uninstalled it and installed 1.8.6, and the build script worked. It created the .sln and .vcproj files. I have it compiling now and so far have seen no errors.

          So there is an issue with the current build system and using Ruby 1.9.2. I would recommend renaming this issue to 'Build script issue with new Ruby version 1.9.2' or closing and opening a new one cleaned up some.

          Steve, Thank you.

          Dave

          Show
          David Hickerson added a comment - It is the newer version of Ruby (1.9.2) that was causing the problems. I uninstalled it and installed 1.8.6, and the build script worked. It created the .sln and .vcproj files. I have it compiling now and so far have seen no errors. So there is an issue with the current build system and using Ruby 1.9.2. I would recommend renaming this issue to 'Build script issue with new Ruby version 1.9.2' or closing and opening a new one cleaned up some. Steve, Thank you. Dave
          Hide
          Steve Huston added a comment -

          Glad to hear you have this working now, David.

          Renaming this to more accurately reflect the cause of the problems. I doubt this is isolated to Windows, but have not tested that theory.

          Show
          Steve Huston added a comment - Glad to hear you have this working now, David. Renaming this to more accurately reflect the cause of the problems. I doubt this is isolated to Windows, but have not tested that theory.
          Hide
          Steve Huston added a comment -

          Duplicate of QPID-3116; QPID-3116 has a patch that could resolve the problem.

          Show
          Steve Huston added a comment - Duplicate of QPID-3116 ; QPID-3116 has a patch that could resolve the problem.

            People

            • Assignee:
              Unassigned
              Reporter:
              David Hickerson
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified

                  Development