This project is archived and is in readonly mode.
[fix] "warning: already initialized constant Racc_Runtime_Version",etc
Reported by Cezary Baginski | October 2nd, 2009 @ 09:20 AM
Problem:
I get this warning every time since a recent ruby 1.9.2:
racc/parser.rb:33: warning: already initialized constant
Racc_Runtime_Version
etc.
Reason:
actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/parser.rb
has the same definitions as:
/usr/local/lib/ruby/1.9.1/racc/parser.rb
and requiring 'yaml' already loads the latter.
Solution?
- modify files to load ruby/1.9.1 version if present ? (tmail/{header,address}.rb)
Comments and changes to this ticket
-
Priit Tamboom October 10th, 2009 @ 12:55 PM
I got same warnings with ruby 1.9.2dev (2009-10-08 trunk 25259) [i686-linux] and Rails 3.0.pre
[10.10.2009] and this patch fixed it. However, I wonder should you open the ticket at TMail instead cos TMail is vendored? -
Cezary Baginski October 11th, 2009 @ 09:55 AM
Quick update:
sudo gem install tmail
might fix this issue (gem version seems to check for racc/parser). I'll check tomorrow if I don't forget. Until then, if it works for anyone else, this can be considered closed.
-
Rohit Arondekar June 15th, 2010 @ 12:12 PM
- State changed from new to invalid
I'm closing this ticket, feel free to make a comment and I'll reopen it.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>