qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Danushka Menikkumbura <danus...@wso2.com>
Subject Re: Build break on C++ with latest checkout
Date Tue, 29 Apr 2008 11:11:42 GMT

Senaka,
    I don't think its a good idea to have this in the INSTALL file as 
this is kind of a hack.

Danushka

Senaka Fernando wrote:
> OK,
>
> ruby1.8.6.114 gets it built for me too.
>
> Now, isn't it better to have this on the INSTALL file?
>
> Regards,
> Senaka
>
> On Tue, Apr 29, 2008 at 3:42 PM, Senaka Fernando <senakafdo@gmail.com>
> wrote:
>
>   
>> Well as on ruby-lang.org, it seems that 1.9.0 is not stable, but this
>> likely might be an idication of what things might be in the future. But, it
>> is downloadable from the apt repository for Ubuntu Gutsy, meaning that some
>> users might opt to use this version of ruby.
>>
>> Regards,
>> Senaka
>>
>>
>> On Tue, Apr 29, 2008 at 3:33 PM, Senaka Fernando <senakafdo@gmail.com>
>> wrote:
>>
>>     
>>> Hi Gordon,
>>>
>>> I upgraded to ruby 1.9.0 (Installed in parallel to 1.8.6), and see these
>>> errors.
>>>
>>> $ make
>>> Making all in src
>>> make[1]: Entering directory `/home/senaka/qpid/cpp/src'
>>> ruby -I ../rubygen ../rubygen/generate ./gen
>>> /home/senaka/qpid/cpp/./../specs/amqp.0-10-qpid-errata.xml all ./
>>> rubygen.mk
>>> /usr/lib/ruby/1.9/rexml/parsers/treeparser.rb:90:in `raise':
>>> #<REXML::ParseException: #<ArgumentError: character encodings differ>
>>> (REXML::ParseException)
>>> /usr/lib/ruby/1.9/rexml/parsers/baseparser.rb:350:in `scan'
>>> /usr/lib/ruby/1.9/rexml/parsers/baseparser.rb:350:in `pull'
>>> /usr/lib/ruby/1.9/rexml/parsers/treeparser.rb:21:in `parse'
>>> /usr/lib/ruby/1.9/rexml/document.rb:233:in `build'
>>> /usr/lib/ruby/1.9/rexml/document.rb:42:in `initialize'
>>> /home/senaka/qpid/cpp/rubygen/amqpgen.rb:394:in `new'
>>> /home/senaka/qpid/cpp/rubygen/amqpgen.rb:394:in `get_root'
>>> /home/senaka/qpid/cpp/rubygen/amqpgen.rb:401:in `initialize'
>>> ../rubygen/generate:26:in `new'
>>> ../rubygen/generate:26:in `block in parse_specs'
>>> ../rubygen/generate:25:in `each'
>>> ../rubygen/generate:25:in `parse_specs'
>>> ../rubygen/generate:50:in `<main>'
>>> ...
>>> Exception parsing
>>> Line: 127
>>> Position: 7309
>>> Last 80 unconsumed characters:
>>>       
>>> /usr/lib/ruby/1.9/rexml/parsers/baseparser.rb:378:in `raise'
>>> /usr/lib/ruby/1.9/rexml/parsers/baseparser.rb:378:in `rescue in pull'
>>> /usr/lib/ruby/1.9/rexml/parsers/baseparser.rb:312:in `pull'
>>> /usr/lib/ruby/1.9/rexml/parsers/treeparser.rb:21:in `parse'
>>> /usr/lib/ruby/1.9/rexml/document.rb:233:in `build'
>>> /usr/lib/ruby/1.9/rexml/document.rb:42:in `initialize'
>>> /home/senaka/qpid/cpp/rubygen/amqpgen.rb:394:in `new'
>>> /home/senaka/qpid/cpp/rubygen/amqpgen.rb:394:in `get_root'
>>> /home/senaka/qpid/cpp/rubygen/amqpgen.rb:401:in `initialize'
>>> ../rubygen/generate:26:in `new'
>>> ../rubygen/generate:26:in `block in parse_specs'
>>> ../rubygen/generate:25:in `each'
>>> ../rubygen/generate:25:in `parse_specs'
>>> ../rubygen/generate:50:in `<main>'
>>> ...
>>> #<ArgumentError: character encodings differ>
>>> /usr/lib/ruby/1.9/rexml/parsers/baseparser.rb:350:in `scan'
>>> /usr/lib/ruby/1.9/rexml/parsers/baseparser.rb:350:in `pull'
>>> /usr/lib/ruby/1.9/rexml/parsers/treeparser.rb:21:in `parse'
>>> /usr/lib/ruby/1.9/rexml/document.rb:233:in `build'
>>> /usr/lib/ruby/1.9/rexml/document.rb:42:in `initialize'
>>> /home/senaka/qpid/cpp/rubygen/amqpgen.rb:394:in `new'
>>> /home/senaka/qpid/cpp/rubygen/amqpgen.rb:394:in `get_root'
>>> /home/senaka/qpid/cpp/rubygen/amqpgen.rb:401:in `initialize'
>>> ../rubygen/generate:26:in `new'
>>> ../rubygen/generate:26:in `block in parse_specs'
>>> ../rubygen/generate:25:in `each'
>>> ../rubygen/generate:25:in `parse_specs'
>>> ../rubygen/generate:50:in `<main>'
>>> ...
>>> Exception parsing
>>> Line: 127
>>> Position: 7309
>>> Last 80 unconsumed characters:
>>>
>>> Line: 127
>>> Position: 7309
>>> Last 80 unconsumed characters:
>>>         from /usr/lib/ruby/1.9/rexml/parsers/treeparser.rb:90:in `rescue
>>> in parse'
>>>         from /usr/lib/ruby/1.9/rexml/parsers/treeparser.rb:19:in `parse'
>>>         from /usr/lib/ruby/1.9/rexml/document.rb:233:in `build'
>>>         from /usr/lib/ruby/1.9/rexml/document.rb:42:in `initialize'
>>>         from /home/senaka/qpid/cpp/rubygen/amqpgen.rb:394:in `new'
>>>         from /home/senaka/qpid/cpp/rubygen/amqpgen.rb:394:in `get_root'
>>>         from /home/senaka/qpid/cpp/rubygen/amqpgen.rb:401:in
>>> `initialize'
>>>         from ../rubygen/generate:26:in `new'
>>>         from ../rubygen/generate:26:in `block in parse_specs'
>>>         from ../rubygen/generate:25:in `each'
>>>         from ../rubygen/generate:25:in `parse_specs'
>>>         from ../rubygen/generate:50:in `<main>'
>>> make[1]: *** [rubygen.mk] Error 1
>>> make[1]: Leaving directory `/home/senaka/qpid/cpp/src'
>>> make: *** [all-recursive] Error 1
>>>
>>> Regards,
>>> Senaka
>>>
>>>
>>> On Tue, Apr 29, 2008 at 3:03 PM, Danushka Menikkumbura <
>>> danushka@wso2.com> wrote:
>>>
>>>       
>>>> Hi Gordon,
>>>>   That works. I upgraded ruby to 1.8.6.114 and the generated classes
>>>> are fine. :)
>>>>
>>>> Thanks,
>>>> Danushka
>>>>
>>>>
>>>> Gordon Sim wrote:
>>>>
>>>>         
>>>>> Senaka Fernando wrote:
>>>>>
>>>>>           
>>>>>> My version of ruby is,
>>>>>>
>>>>>> ruby 1.8.6 (2007-06-07 patchlevel 36) [i486-linux]
>>>>>>
>>>>>>             
>>>>> The problem does appear to be related to ruby version. Arnaud hit
>>>>> the same problem with 1.8.6.111 and on upgrading to 1.8.6.114 the
>>>>> problem went away and the files were generated as expected.
>>>>>
>>>>> It would be nice to get to the bottom of the issue, but for now at
>>>>> least you will hopefully be able to progress if you update ruby.
>>>>>
>>>>>
>>>>>
>>>>>           
>>>>         
>
>   



Mime
View raw message