Bugs: Browse | Submit New | Admin

[#7577] 'rlock -h' constant redefinition warnings

Date:
2007-01-05 05:42
Priority:
3
Submitted By:
Sergey Volkov (servo)
Assigned To:
ara howard (ahoward)
Category:
None
State:
Open
Summary:
'rlock -h' constant redefinition warnings

Detailed description
lockfile 1.4.1 tested on WinXP, cygwin, Linux 2.6.15-1.2054_FC5smp;
installed via $ gem install lockfile;

Log:
$ rlock -h
/usr/lib/ruby/gems/1.8/gems/lockfile-1.4.1/lib/lockfile-1.4.1.rb:8: warning: already initialized constant VERSION
/usr/lib/ruby/gems/1.8/gems/lockfile-1.4.1/lib/lockfile-1.4.1.rb:54: warning: already initialized constant HOSTNAME
/usr/lib/ruby/gems/1.8/gems/lockfile-1.4.1/lib/lockfile-1.4.1.rb:56: warning: already initialized constant
DEFAULT_RETRIES
/usr/lib/ruby/gems/1.8/gems/lockfile-1.4.1/lib/lockfile-1.4.1.rb:57: warning: already initialized constant
DEFAULT_TIMEOUT
/usr/lib/ruby/gems/1.8/gems/lockfile-1.4.1/lib/lockfile-1.4.1.rb:58: warning: already initialized constant
DEFAULT_MAX_AGE
/usr/lib/ruby/gems/1.8/gems/lockfile-1.4.1/lib/lockfile-1.4.1.rb:59: warning: already initialized constant
DEFAULT_SLEEP_INC
/usr/lib/ruby/gems/1.8/gems/lockfile-1.4.1/lib/lockfile-1.4.1.rb:60: warning: already initialized constant
DEFAULT_MIN_SLEEP
/usr/lib/ruby/gems/1.8/gems/lockfile-1.4.1/lib/lockfile-1.4.1.rb:61: warning: already initialized constant
DEFAULT_MAX_SLEEP
/usr/lib/ruby/gems/1.8/gems/lockfile-1.4.1/lib/lockfile-1.4.1.rb:62: warning: already initialized constant
DEFAULT_SUSPEND
/usr/lib/ruby/gems/1.8/gems/lockfile-1.4.1/lib/lockfile-1.4.1.rb:63: warning: already initialized constant
DEFAULT_REFRESH
/usr/lib/ruby/gems/1.8/gems/lockfile-1.4.1/lib/lockfile-1.4.1.rb:64: warning: already initialized constant
DEFAULT_DONT_CLEAN
/usr/lib/ruby/gems/1.8/gems/lockfile-1.4.1/lib/lockfile-1.4.1.rb:65: warning: already initialized constant
DEFAULT_POLL_RETRIES
/usr/lib/ruby/gems/1.8/gems/lockfile-1.4.1/lib/lockfile-1.4.1.rb:66: warning: already initialized constant
DEFAULT_POLL_MAX_SLEEP
/usr/lib/ruby/gems/1.8/gems/lockfile-1.4.1/lib/lockfile-1.4.1.rb:67: warning: already initialized constant
DEFAULT_DONT_SWEEP
/usr/lib/ruby/gems/1.8/gems/lockfile-1.4.1/lib/lockfile-1.4.1.rb:68: warning: already initialized constant
DEFAULT_DONT_USE_LOCK_ID
/usr/lib/ruby/gems/1.8/gems/lockfile-1.4.1/lib/lockfile-1.4.1.rb:70: warning: already initialized constant
DEFAULT_DEBUG
---------------------

Add A Comment: Notepad

Please login


Followup

Message
Date: 2007-02-22 19:37
Sender: ara howard

i cannot reproduce on any platform with latest ruby and gem installed.
i think this is a gem bug.  nevertheless, a new gem will be released
this week.  i'll attempt to hack in a workaround.

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

Field Old Value Date By
assigned_tonone2007-02-20 18:38zenspider