A
Andrew Milkowski
i there
Hopefully these errors somehow relate to REE, if not, highly
appreciate any feedback and a direction!
Installed latest (from git master) enterprise server and attempting to
build memcached-0.18.0 with ruby compiler version 1.9.2 dev ,
encountered 2 exceptions (one during native compilation of memcached
gem and second during ruby compilation of memcached rails.rb (syntax
error on the usage of alias)
Symptom 1: errors during gem execution of memcache gem
Symptom 2: errors during ruby compilation of memcached .rb file
Using environment:
A) Ruby Server deployment
using ruby enterprise server compiled from sources (git repo:
git://github.com/FooBarWidget/rubyenterpriseedition187.git) with
tmalloc: libtcmalloc_minimal.a compiled from sources:
http://google-perftools.googlecode.com/svn/trunk (google-perftools:
version 1.5 release)
B) OS, Ruby, Gem versions
bash-3.2$ sw_vers;ruby -v; gem -v
ProductName: Mac OS X
ProductVersion: 10.6.2
BuildVersion: 10C540
ruby 1.9.2dev (2010-02-21 trunk 26721) [x86_64-darwin10.2.0]
1.3.5
bash-3.2$
C) Ruby local env
bash-3.2$ gem list
*** LOCAL GEMS ***
actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
fastthread (1.0.7)
minitest (1.5.0)
passenger (2.2.10, 2.2.9)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7)
rdoc (2.2.2)
bash-3.2$
bash-3.2$ which ruby
/opt/local/src/rubyenterpriseserver/current/bin/ruby
bash-3.2$ which gem
/opt/local/src/rubyenterpriseserver/current/bin/gem
bash-3.2$
----------------------------------------------
Steps to reproduce symptom 1:
1. command and stack trace (truncated warning errors showing partial
error stack exception)
bash-3.2$ gem install memcached
Building native extensions. This could take a while...
/opt/local/src/rubyenterpriseserver/trunk/build/lib/ruby/1.9.1/
rubygems/ext/builder.rb:46: warning: Insecure world writable dir /opt/
local/src/mysql/current in PATH, mode 040777
ERROR: Error installing memcached:
ERROR: Failed to build gem native extension.
/opt/local/src/rubyenterpriseserver/trunk/build/bin/ruby extconf.rb
extconf.rb:55: warning: Insecure world writable dir /opt/local/src/
mysql/current in PATH, mode 040777
Libmemcached already built; run 'rake clean' first if you need to
rebuild.
creating Makefile
make
gcc -I. -I/opt/local/src/rubyenterpriseserver/trunk/build/include/
ruby-1.9.1/x86_64-darwin10.2.0 -I/opt/local/src/rubyenterpriseserver/
trunk/build/include/ruby-1.9.1/ruby/backward -I/opt/local/src/
rubyenterpriseserver/trunk/build/include/ruby-1.9.1 -I. -fno-common -
I/opt/local/src/rubyenterpriseserver/trunk/build/gems/memcached-0.18.0/
ext/include -L/opt/local/src/rubyenterpriseserver/trunk/build/gems/
memcached-0.18.0/ext/lib -g -O2 -pipe -g -O2 -pipe -o
rlibmemcached_wrap.o -c rlibmemcached_wrap.c
rlibmemcached_wrap.c: In function
=91_wrap_MemcachedAnalysisSt_average_item_size_set=92:
rlibmemcached_wrap.c:2319: warning: format not a string literal and no
format arguments
rlibmemcached_wrap.c:2325: warning: format not a string literal and no
format arguments
rlibmemcached_wrap.c:2328: warning: format not a string literal and no
format arguments
...
...
gcc -dynamic -bundle -o rlibmemcached.bundle rlibmemcached_wrap.o -L/
opt/local/src/rubyenterpriseserver/trunk/build/gems/memcached-0.18.0/
ext/lib -L/opt/local/src/rubyenterpriseserver/trunk/build/gems/
memcached-0.18.0/ext/lib -L. -L/opt/local/src/google-perftools/current/
lib -L. -L/opt/local/src/google-perftools/current/lib -lpthread -ldl
-lobjc -lmemcached_gem
Undefined symbols:
"_rb_gv_get", referenced from:
_Init_rlibmemcached in rlibmemcached_wrap.o
_Init_rlibmemcached in rlibmemcached_wrap.o
_Init_rlibmemcached in rlibmemcached_wrap.o
"_rb_str_new_cstr", referenced from:
_SWIG_Ruby_NewClassInstance in rlibmemcached_wrap.o
_SWIG_Ruby_NewPointerObj in rlibmemcached_wrap.o
_Ruby_Format_TypeError in rlibmemcached_wrap.o
_memcached_stat_get_rvalue in rlibmemcached_wrap.o
__wrap_memcached_stat_get_keys in rlibmemcached_wrap.o
"_rb_iv_get", referenced from:
_SWIG_Ruby_NewPointerObj in rlibmemcached_wrap.o
_SWIG_Ruby_ConvertPtrAndOwn in rlibmemcached_wrap.o
"_rb_num2long", referenced from:
_SWIG_Ruby_NewPointerObj in rlibmemcached_wrap.o
_SWIG_AUX_NUM2LONG in rlibmemcached_wrap.o
__wrap_MemcachedServerSt_next_retry_set in rlibmemcached_wrap.o
__wrap_MemcachedResultSt_expiration_set in rlibmemcached_wrap.o
__wrap_MemcachedSt_next_distribution_rebuild_set in
rlibmemcached_wrap.o
__wrap_memcached_flush in rlibmemcached_wrap.o
__wrap_memcached_decrement_with_initial in rlibmemcached_wrap.o
__wrap_memcached_increment_with_initial in rlibmemcached_wrap.o
__wrap_memcached_delete in rlibmemcached_wrap.o
__wrap_memcached_cas_by_key in rlibmemcached_wrap.o
__wrap_memcached_append_by_key in rlibmemcached_wrap.o
__wrap_memcached_prepend_by_key in rlibmemcached_wrap.o
__wrap_memcached_replace_by_key in rlibmemcached_wrap.o
__wrap_memcached_add_by_key in rlibmemcached_wrap.o
__wrap_memcached_set_by_key in rlibmemcached_wrap.o
__wrap_memcached_cas in rlibmemcached_wrap.o
__wrap_memcached_prepend in rlibmemcached_wrap.o
__wrap_memcached_append in rlibmemcached_wrap.o
__wrap_memcached_replace in rlibmemcached_wrap.o
__wrap_memcached_add in rlibmemcached_wrap.o
__wrap_memcached_set in rlibmemcached_wrap.o
__wrap_memcached_delete_by_key in rlibmemcached_wrap.o
"_rb_raise", referenced from:
__wrap_new_MemcachedServerSt in rlibmemcached_wrap.o
__wrap_new_MemcachedResultSt in rlibmemcached_wrap.o
__wrap_new_MemcachedSt in rlibmemcached_wrap.o
__wrap_new_MemcachedStatSt in rlibmemcached_wrap.o
__wrap_new_MemcachedAnalysisSt in rlibmemcached_wrap.o
__wrap_memcached_generate_hash_rvalue in rlibmemcached_wrap.o
__wrap_memcached_generate_hash_rvalue in rlibmemcached_wrap.o
__wrap_memcached_generate_hash_value in rlibmemcached_wrap.o
__wrap_memcached_generate_hash_value in rlibmemcached_wrap.o
__wrap_memcached_select_stat_at in rlibmemcached_wrap.o
__wrap_memcached_select_stat_at in rlibmemcached_wrap.o
__wrap_memcached_select_server_at in rlibmemcached_wrap.o
__wrap_memcached_select_server_at in rlibmemcached_wrap.o
__wrap_memcached_server_clone in rlibmemcached_wrap.o
__wrap_memcached_server_clone in rlibmemcached_wrap.o
__wrap_memcached_server_free in rlibmemcached_wrap.o
__wrap_memcached_server_free in rlibmemcached_wrap.o
__wrap_memcached_server_create in rlibmemcached_wrap.o
... exception trace truncated
2. Step to reproduce symptom 2
error while compiling ruby class using memcached gem library (uses
memcached-gem project from : git://github.com/fauna/memcached.git
syntax errors on rails.rb
had to replace lines with following resulting in clean compilation
(did anything change in ruby 1.9.2 regarding alias syntax?)
Description Resource Path Location Type
syntax error, unexpected tSTRING_CONTENT rails.rb
/memcached-gem/lib/
memcached line 110 DLTK Problem
line 110: alias :"[]" :get
replaced with
# alias :"[]" :get
# alias :"[]=3D" :set
alias :[] :get
alias :[]=3D :set
Hopefully these errors somehow relate to REE, if not, highly
appreciate any feedback and a direction!
Installed latest (from git master) enterprise server and attempting to
build memcached-0.18.0 with ruby compiler version 1.9.2 dev ,
encountered 2 exceptions (one during native compilation of memcached
gem and second during ruby compilation of memcached rails.rb (syntax
error on the usage of alias)
Symptom 1: errors during gem execution of memcache gem
Symptom 2: errors during ruby compilation of memcached .rb file
Using environment:
A) Ruby Server deployment
using ruby enterprise server compiled from sources (git repo:
git://github.com/FooBarWidget/rubyenterpriseedition187.git) with
tmalloc: libtcmalloc_minimal.a compiled from sources:
http://google-perftools.googlecode.com/svn/trunk (google-perftools:
version 1.5 release)
B) OS, Ruby, Gem versions
bash-3.2$ sw_vers;ruby -v; gem -v
ProductName: Mac OS X
ProductVersion: 10.6.2
BuildVersion: 10C540
ruby 1.9.2dev (2010-02-21 trunk 26721) [x86_64-darwin10.2.0]
1.3.5
bash-3.2$
C) Ruby local env
bash-3.2$ gem list
*** LOCAL GEMS ***
actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
fastthread (1.0.7)
minitest (1.5.0)
passenger (2.2.10, 2.2.9)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7)
rdoc (2.2.2)
bash-3.2$
bash-3.2$ which ruby
/opt/local/src/rubyenterpriseserver/current/bin/ruby
bash-3.2$ which gem
/opt/local/src/rubyenterpriseserver/current/bin/gem
bash-3.2$
----------------------------------------------
Steps to reproduce symptom 1:
1. command and stack trace (truncated warning errors showing partial
error stack exception)
bash-3.2$ gem install memcached
Building native extensions. This could take a while...
/opt/local/src/rubyenterpriseserver/trunk/build/lib/ruby/1.9.1/
rubygems/ext/builder.rb:46: warning: Insecure world writable dir /opt/
local/src/mysql/current in PATH, mode 040777
ERROR: Error installing memcached:
ERROR: Failed to build gem native extension.
/opt/local/src/rubyenterpriseserver/trunk/build/bin/ruby extconf.rb
extconf.rb:55: warning: Insecure world writable dir /opt/local/src/
mysql/current in PATH, mode 040777
Libmemcached already built; run 'rake clean' first if you need to
rebuild.
creating Makefile
make
gcc -I. -I/opt/local/src/rubyenterpriseserver/trunk/build/include/
ruby-1.9.1/x86_64-darwin10.2.0 -I/opt/local/src/rubyenterpriseserver/
trunk/build/include/ruby-1.9.1/ruby/backward -I/opt/local/src/
rubyenterpriseserver/trunk/build/include/ruby-1.9.1 -I. -fno-common -
I/opt/local/src/rubyenterpriseserver/trunk/build/gems/memcached-0.18.0/
ext/include -L/opt/local/src/rubyenterpriseserver/trunk/build/gems/
memcached-0.18.0/ext/lib -g -O2 -pipe -g -O2 -pipe -o
rlibmemcached_wrap.o -c rlibmemcached_wrap.c
rlibmemcached_wrap.c: In function
=91_wrap_MemcachedAnalysisSt_average_item_size_set=92:
rlibmemcached_wrap.c:2319: warning: format not a string literal and no
format arguments
rlibmemcached_wrap.c:2325: warning: format not a string literal and no
format arguments
rlibmemcached_wrap.c:2328: warning: format not a string literal and no
format arguments
...
...
gcc -dynamic -bundle -o rlibmemcached.bundle rlibmemcached_wrap.o -L/
opt/local/src/rubyenterpriseserver/trunk/build/gems/memcached-0.18.0/
ext/lib -L/opt/local/src/rubyenterpriseserver/trunk/build/gems/
memcached-0.18.0/ext/lib -L. -L/opt/local/src/google-perftools/current/
lib -L. -L/opt/local/src/google-perftools/current/lib -lpthread -ldl
-lobjc -lmemcached_gem
Undefined symbols:
"_rb_gv_get", referenced from:
_Init_rlibmemcached in rlibmemcached_wrap.o
_Init_rlibmemcached in rlibmemcached_wrap.o
_Init_rlibmemcached in rlibmemcached_wrap.o
"_rb_str_new_cstr", referenced from:
_SWIG_Ruby_NewClassInstance in rlibmemcached_wrap.o
_SWIG_Ruby_NewPointerObj in rlibmemcached_wrap.o
_Ruby_Format_TypeError in rlibmemcached_wrap.o
_memcached_stat_get_rvalue in rlibmemcached_wrap.o
__wrap_memcached_stat_get_keys in rlibmemcached_wrap.o
"_rb_iv_get", referenced from:
_SWIG_Ruby_NewPointerObj in rlibmemcached_wrap.o
_SWIG_Ruby_ConvertPtrAndOwn in rlibmemcached_wrap.o
"_rb_num2long", referenced from:
_SWIG_Ruby_NewPointerObj in rlibmemcached_wrap.o
_SWIG_AUX_NUM2LONG in rlibmemcached_wrap.o
__wrap_MemcachedServerSt_next_retry_set in rlibmemcached_wrap.o
__wrap_MemcachedResultSt_expiration_set in rlibmemcached_wrap.o
__wrap_MemcachedSt_next_distribution_rebuild_set in
rlibmemcached_wrap.o
__wrap_memcached_flush in rlibmemcached_wrap.o
__wrap_memcached_decrement_with_initial in rlibmemcached_wrap.o
__wrap_memcached_increment_with_initial in rlibmemcached_wrap.o
__wrap_memcached_delete in rlibmemcached_wrap.o
__wrap_memcached_cas_by_key in rlibmemcached_wrap.o
__wrap_memcached_append_by_key in rlibmemcached_wrap.o
__wrap_memcached_prepend_by_key in rlibmemcached_wrap.o
__wrap_memcached_replace_by_key in rlibmemcached_wrap.o
__wrap_memcached_add_by_key in rlibmemcached_wrap.o
__wrap_memcached_set_by_key in rlibmemcached_wrap.o
__wrap_memcached_cas in rlibmemcached_wrap.o
__wrap_memcached_prepend in rlibmemcached_wrap.o
__wrap_memcached_append in rlibmemcached_wrap.o
__wrap_memcached_replace in rlibmemcached_wrap.o
__wrap_memcached_add in rlibmemcached_wrap.o
__wrap_memcached_set in rlibmemcached_wrap.o
__wrap_memcached_delete_by_key in rlibmemcached_wrap.o
"_rb_raise", referenced from:
__wrap_new_MemcachedServerSt in rlibmemcached_wrap.o
__wrap_new_MemcachedResultSt in rlibmemcached_wrap.o
__wrap_new_MemcachedSt in rlibmemcached_wrap.o
__wrap_new_MemcachedStatSt in rlibmemcached_wrap.o
__wrap_new_MemcachedAnalysisSt in rlibmemcached_wrap.o
__wrap_memcached_generate_hash_rvalue in rlibmemcached_wrap.o
__wrap_memcached_generate_hash_rvalue in rlibmemcached_wrap.o
__wrap_memcached_generate_hash_value in rlibmemcached_wrap.o
__wrap_memcached_generate_hash_value in rlibmemcached_wrap.o
__wrap_memcached_select_stat_at in rlibmemcached_wrap.o
__wrap_memcached_select_stat_at in rlibmemcached_wrap.o
__wrap_memcached_select_server_at in rlibmemcached_wrap.o
__wrap_memcached_select_server_at in rlibmemcached_wrap.o
__wrap_memcached_server_clone in rlibmemcached_wrap.o
__wrap_memcached_server_clone in rlibmemcached_wrap.o
__wrap_memcached_server_free in rlibmemcached_wrap.o
__wrap_memcached_server_free in rlibmemcached_wrap.o
__wrap_memcached_server_create in rlibmemcached_wrap.o
... exception trace truncated
2. Step to reproduce symptom 2
error while compiling ruby class using memcached gem library (uses
memcached-gem project from : git://github.com/fauna/memcached.git
syntax errors on rails.rb
had to replace lines with following resulting in clean compilation
(did anything change in ruby 1.9.2 regarding alias syntax?)
Description Resource Path Location Type
syntax error, unexpected tSTRING_CONTENT rails.rb
/memcached-gem/lib/
memcached line 110 DLTK Problem
line 110: alias :"[]" :get
replaced with
# alias :"[]" :get
# alias :"[]=3D" :set
alias :[] :get
alias :[]=3D :set