Skip to content

Instantly share code, notes, and snippets.

@ognevsky
Created August 25, 2011 13:34
Show Gist options
  • Save ognevsky/1170670 to your computer and use it in GitHub Desktop.
Save ognevsky/1170670 to your computer and use it in GitHub Desktop.
TMail Ruby 1.9.2 installation error
Installing tmail (1.2.3.1) with native extensions /Users/elfxf/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:551:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
/Users/elfxf/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb
creating Makefile
make
gcc-4.2 -I. -I/Users/elfxf/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/x86_64-darwin11.1.0 -I/Users/elfxf/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/ruby/backward -I/Users/elfxf/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -fno-common -pipe -D_FILE_OFFSET_BITS=64 -o tmailscanner.o -c tmailscanner.c
tmailscanner.c:19:16: error: re.h: No such file or directory
tmailscanner.c: In function 'mails_s_new':
tmailscanner.c:75: error: 'struct RString' has no member named 'ptr'
tmailscanner.c:77: error: 'struct RString' has no member named 'len'
tmailscanner.c:87: warning: assignment makes pointer from integer without a cast
tmailscanner.c: In function 'digit_p':
tmailscanner.c:379: error: 'struct RString' has no member named 'ptr'
tmailscanner.c:380: error: 'struct RString' has no member named 'len'
tmailscanner.c:381: error: 'struct RString' has no member named 'ptr'
tmailscanner.c:381: error: 'struct RString' has no member named 'ptr'
tmailscanner.c: In function 'atomsym':
tmailscanner.c:399: error: 'struct RString' has no member named 'ptr'
tmailscanner.c: In function 'debug_print':
tmailscanner.c:420: error: 'struct RString' has no member named 'ptr'
tmailscanner.c:421: error: 'struct RString' has no member named 'ptr'
make: *** [tmailscanner.o] Error 1
Gem files will remain installed in /Users/elfxf/code/contribution/github-services/vendor/gems/ruby/1.9.1/gems/tmail-1.2.3.1 for inspection.
Results logged to /Users/elfxf/code/contribution/github-services/vendor/gems/ruby/1.9.1/gems/tmail-1.2.3.1/ext/tmailscanner/tmail/gem_make.out
from /Users/elfxf/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:529:in `block in build_extensions'
from /Users/elfxf/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:504:in `each'
from /Users/elfxf/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:504:in `build_extensions'
from /Users/elfxf/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:180:in `install'
from /Users/elfxf/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.18/lib/bundler/source.rb:101:in `block in install'
from /Users/elfxf/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.18/lib/bundler/rubygems_integration.rb:78:in `preserve_paths'
from /Users/elfxf/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.18/lib/bundler/source.rb:91:in `install'
from /Users/elfxf/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.18/lib/bundler/installer.rb:58:in `block (2 levels) in run'
from /Users/elfxf/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.18/lib/bundler/rubygems_integration.rb:93:in `with_build_args'
from /Users/elfxf/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.18/lib/bundler/installer.rb:57:in `block in run'
from /Users/elfxf/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.18/lib/bundler/installer.rb:49:in `run'
from /Users/elfxf/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.18/lib/bundler/installer.rb:8:in `install'
from /Users/elfxf/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.18/lib/bundler/cli.rb:220:in `install'
from /Users/elfxf/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.18/lib/bundler/vendor/thor/task.rb:22:in `run'
from /Users/elfxf/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.18/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
from /Users/elfxf/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.18/lib/bundler/vendor/thor.rb:263:in `dispatch'
from /Users/elfxf/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.18/lib/bundler/vendor/thor/base.rb:386:in `start'
from /Users/elfxf/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.18/bin/bundle:13:in `<top (required)>'
from /Users/elfxf/.rvm/gems/ruby-1.9.2-p290@global/bin/bundle:19:in `load'
from /Users/elfxf/.rvm/gems/ruby-1.9.2-p290@global/bin/bundle:19:in `<main>'
@geekdreamzz
Copy link

I inherited an app using this version of the tmail gem. Do you by the 1 in a million chance still remember 3 years later anything about a fix for this issue?

@ZASMan
Copy link

ZASMan commented Jul 31, 2018

I too have inherited an application with this problem. Any idea what it was, four years later from the last comment ,and way longer since the original?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment