From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.204.20.129 with SMTP id f1cs23714bkb; Sat, 9 Oct 2010 10:43:52 -0700 (PDT) Received: by 10.42.166.8 with SMTP id m8mr213045icy.90.1286646231965; Sat, 09 Oct 2010 10:43:51 -0700 (PDT) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id e12si12789840ibb.62.2010.10.09.10.43.51; Sat, 09 Oct 2010 10:43:51 -0700 (PDT) Received-SPF: pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org; dkim=neutral (body hash did not verify) header.i=@gmail.com Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id F193A19783BA; Sat, 9 Oct 2010 13:43:50 -0400 (EDT) Received: from mail-qy0-f178.google.com (mail-qy0-f178.google.com [209.85.216.178]) by rubyforge.org (Postfix) with ESMTP id 3C69F19782DB for ; Sat, 9 Oct 2010 13:41:02 -0400 (EDT) Received: by qyk4 with SMTP id 4so2229865qyk.2 for ; Sat, 09 Oct 2010 10:41:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=bcFjdjaUMamxqwPKkVwTm8myEkwVKqGrCYjoO+WC040=; b=Ct1tztHC2s8Zi9/wMys9R2MQCXSL7b53sNLgCnZrpN27drGVby06FxEmoJxjOlrqRc 8OHGSiQ7CX6Ki/Zo5qX+b+yEI9B5CPwd9/WA4RJhZc+iwwKb23OxvlMLQ8kKWycuy++Q qO00Rc2OW+mZrgob9Nd95YH8O0oX3AEYATvkE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=l7bEQu+AHZiBXOGNkZhpn2S2ZJexwKIig2xowGTqPFi8BHVjPV5ZdOf8jXJvpkSLLW 6gg3kwsndp/nTEudP3vUebhuDFhjDt+tkafc+2v+w3EADMQqg78ir6llNlFMo16H6J9f nrUmrb9JqIozT+b/00K5O3YfNRxHanVbNG6FE= MIME-Version: 1.0 Received: by 10.224.11.20 with SMTP id r20mr566459qar.388.1286646061913; Sat, 09 Oct 2010 10:41:01 -0700 (PDT) Received: by 10.229.231.141 with HTTP; Sat, 9 Oct 2010 10:41:01 -0700 (PDT) Date: Sat, 9 Oct 2010 18:41:01 +0100 Message-ID: From: Hamish D To: sup-devel@rubyforge.org Subject: [sup-devel] trouble running git version X-BeenThere: sup-devel@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Sup developer discussion List-Id: Sup developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org Hello I'm cloned the git repository, and I've even written a patch, but it's untested as I don't seem to be able to run a development version. The error I get is: $ ruby -Ilib -Ilib/sup -w bin/sup ./lib/sup/thread.rb:256: undefined method `bool_reader' for Redwood::ThreadSet:Class (NoMethodError) from /usr/lib/ruby/1.8/rubygems.rb:11:in `require' from /usr/lib/ruby/1.8/rubygems.rb:11 from bin/sup:3:in `require' from bin/sup:3 bool_reader does exist in lib/sup/util.rb I am running Ubuntu (10.10/maverick) and have the sup-mail package installed. The installed sup works fine. $ ruby --version ruby 1.8.7 (2010-06-23 patchlevel 299) [x86_64-linux] I'm wondering if my ruby paths are part of the problem. You might have noticed that I specified -I lib -I lib/sup above. If I miss out the second include I get: $ ruby -Ilib bin/sup /usr/lib/ruby/1.8/sup/poll.rb:31: undefined method `[]' for nil:NilClass (NoMethodError) from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require' from ./lib/sup.rb:341 from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require' from bin/sup:15 Here ruby has picked up the sup/poll.rb from the installed version rather than the checked out version. Adding -w to this version gives a few warnings that I don't get when using -Isup/lib: $ ruby -Ilib -w bin/sup ./lib/sup/util.rb:316: warning: `&' interpreted as argument prefix ./lib/sup/util.rb:19: warning: method redefined; discarding old gen_lock_id ./lib/sup/util.rb:30: warning: method redefined; discarding old dump_lock_id ./lib/sup/message-chunks.rb:36: warning: method redefined; discarding old make_tmpname ./lib/sup/message.rb:285: warning: `&' interpreted as argument prefix ./lib/sup/index.rb:553: warning: `&' interpreted as argument prefix /usr/lib/ruby/1.8/chronic/repeaters/repeater_month_name.rb:13: warning: useless use of > in void context /usr/lib/ruby/1.8/chronic/repeaters/repeater_month_name.rb:19: warning: useless use of > in void context /usr/lib/ruby/1.8/chronic/repeaters/repeater_month_name.rb:25: warning: useless use of < in void context /usr/lib/ruby/1.8/sup/poll.rb:31: warning: global variable `$config' not initialized /usr/lib/ruby/1.8/sup/poll.rb:31: undefined method `[]' for nil:NilClass (NoMethodError) from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require' from ./lib/sup.rb:341 from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require' from bin/sup:15 I've looked at the code, but the bool_reader is something messing about with modules and classes at a deep-ish level and is beyond my ruby understanding. Any ideas appreciated. Hamish _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel