You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jake Farrell (Commented) (JIRA)" <ji...@apache.org> on 2012/02/20 21:59:35 UTC

[jira] [Commented] (THRIFT-1519) Thirft Build Failure referencing rb_intern2 symbol

    [ https://issues.apache.org/jira/browse/THRIFT-1519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13212069#comment-13212069 ] 

Jake Farrell commented on THRIFT-1519:
--------------------------------------

tested with ruby 1.8.7 using bundler 1.0.18, ext/thrift_native shared library created successfully (tested on os x and linux). are you using rvm?
                
> Thirft Build Failure referencing rb_intern2 symbol
> --------------------------------------------------
>
>                 Key: THRIFT-1519
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1519
>             Project: Thrift
>          Issue Type: Bug
>          Components: Ruby - Library
>    Affects Versions: 0.8
>         Environment: bash-3.00# uname -a
> SunOS nc17a 5.10 Generic_127127-11 sun4u sparc SUNW,A70 Solaris
> python 2.6
> bash-3.00# ruby -v
> ruby 1.8.7 (2008-08-11 patchlevel 72) [sparc-solaris2.10]
> bash-3.00# gem list
> actionmailer (3.2.1)
> actionpack (3.2.1)
> activemodel (3.2.1)
> activerecord (3.2.1)
> activeresource (3.2.1)
> activesupport (3.2.1)
> arel (3.0.0)
> builder (3.0.0)
> bundler (1.0.22)
> cgi_multipart_eof_fix (2.5.0)
> daemons (1.1.8)
> diff-lcs (1.1.3)
> erubis (2.7.0)
> fastthread (1.0.7)
> gem_plugin (0.2.3)
> hike (1.2.1)
> i18n (0.6.0)
> journey (1.0.1)
> json (1.6.5)
> mail (2.4.1)
> mime-types (1.17.2)
> mongrel (1.1.5)
> mongrel_cluster (1.0.5)
> multi_json (1.0.4)
> polyglot (0.3.3)
> rack (1.4.1)
> rack-cache (1.1)
> rack-ssl (1.3.2)
> rack-test (0.6.1)
> rails (3.2.1)
> railties (3.2.1)
> rake (0.9.2.2)
> rdoc (3.12)
> rest-client (1.6.7)
> rspec (2.8.0, 1.3.2)
> rspec-core (2.8.0)
> rspec-expectations (2.8.0)
> rspec-mocks (2.8.0)
> spec (0.0.0)
> sprockets (2.1.2)
> thor (0.14.6)
> thrift (0.8.0)
> thrift_client (0.8.1)
> tilt (1.3.3)
> treetop (1.4.10)
> tzinfo (0.3.31)
>            Reporter: Thomas Wroblewski
>            Assignee: Jake Farrell
>            Priority: Critical
>              Labels: build, newbie
>
> This is an output of the rake command from build. The warnings while bother some do not appear to be the issue. 
> ** Invoke default (first_time)
> ** Invoke gem (first_time)
> ** Invoke spec (first_time)
> ** Invoke gen-rb (first_time)
> ** Invoke gen-rb:spec (first_time)
> ** Execute gen-rb:spec
> ../../compiler/cpp/thrift --gen rb -o /opt/Scribes/thrift-0.8.0/lib/rb/spec /opt/Scribes/thrift-0.8.0/lib/rb/spec/ThriftSpec.thrift
> ** Invoke gen-rb:benchmark (first_time)
> ** Execute gen-rb:benchmark
> ../../compiler/cpp/thrift --gen rb -o /opt/Scribes/thrift-0.8.0/lib/rb/benchmark /opt/Scribes/thrift-0.8.0/lib/rb/benchmark/Benchmark.thrift
> ** Invoke gen-rb:debug_proto (first_time)
> ** Execute gen-rb:debug_proto
> mkdir -p test/debug_proto
> ../../compiler/cpp/thrift --gen rb -o test/debug_proto ../../test/DebugProtoTest.thrift
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:41] 64-bit constant "10000000000" may not work in all languages.
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:173] 64-bit constant "1099511627775" may not work in all languages.
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:183] 64-bit constant "4294967295" may not work in all languages.
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:183] 64-bit constant "1099511627775" may not work in all languages.
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:183] 64-bit constant "281474976710655" may not work in all languages.
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:183] 64-bit constant "72057594037927935" may not work in all languages.
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:183] 64-bit constant "9223372036854775807" may not work in all languages.
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:192] 64-bit constant "4294967295" may not work in all languages.
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:192] 64-bit constant "1099511627775" may not work in all languages.
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:192] 64-bit constant "281474976710655" may not work in all languages.
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:192] 64-bit constant "72057594037927935" may not work in all languages.
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:192] 64-bit constant "9223372036854775807" may not work in all languages.
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:201] 64-bit constant "9223372036854775807" may not work in all languages.
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:208] 64-bit constant "9223372036854775807" may not work in all languages.
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:355] No field key specified for field1, resulting protocol may have conflicts or not be backwards compatible!
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:356] No field key specified for field2, resulting protocol may have conflicts or not be backwards compatible!
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:357] No field key specified for field3, resulting protocol may have conflicts or not be backwards compatible!
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:358] No field key specified for field4, resulting protocol may have conflicts or not be backwards compatible!
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:359] No field key specified for field5, resulting protocol may have conflicts or not be backwards compatible!
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:360] No field key specified for field6, resulting protocol may have conflicts or not be backwards compatible!
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:361] No field key specified for field7, resulting protocol may have conflicts or not be backwards compatible!
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:362] No field key specified for field8, resulting protocol may have conflicts or not be backwards compatible!
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:363] No field key specified for field9, resulting protocol may have conflicts or not be backwards compatible!
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:364] No field key specified for field10, resulting protocol may have conflicts or not be backwards compatible!
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:365] No field key specified for field11, resulting protocol may have conflicts or not be backwards compatible!
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:366] No field key specified for field12, resulting protocol may have conflicts or not be backwards compatible!
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:41] 64-bit constant "10000000000" may not work in all languages.
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:173] 64-bit constant "1099511627775" may not work in all languages.
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:183] 64-bit constant "4294967295" may not work in all languages.
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:183] 64-bit constant "1099511627775" may not work in all languages.
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:183] 64-bit constant "281474976710655" may not work in all languages.
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:183] 64-bit constant "72057594037927935" may not work in all languages.
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:183] 64-bit constant "9223372036854775807" may not work in all languages.
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:192] 64-bit constant "4294967295" may not work in all languages.
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:192] 64-bit constant "1099511627775" may not work in all languages.
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:192] 64-bit constant "281474976710655" may not work in all languages.
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:192] 64-bit constant "72057594037927935" may not work in all languages.
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:192] 64-bit constant "9223372036854775807" may not work in all languages.
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:201] 64-bit constant "9223372036854775807" may not work in all languages.
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:208] 64-bit constant "9223372036854775807" may not work in all languages.
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:355] No field key specified for field1, resulting protocol may have conflicts or not be backwards compatible!
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:356] No field key specified for field2, resulting protocol may have conflicts or not be backwards compatible!
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:357] No field key specified for field3, resulting protocol may have conflicts or not be backwards compatible!
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:358] No field key specified for field4, resulting protocol may have conflicts or not be backwards compatible!
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:359] No field key specified for field5, resulting protocol may have conflicts or not be backwards compatible!
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:360] No field key specified for field6, resulting protocol may have conflicts or not be backwards compatible!
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:361] No field key specified for field7, resulting protocol may have conflicts or not be backwards compatible!
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:362] No field key specified for field8, resulting protocol may have conflicts or not be backwards compatible!
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:363] No field key specified for field9, resulting protocol may have conflicts or not be backwards compatible!
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:364] No field key specified for field10, resulting protocol may have conflicts or not be backwards compatible!
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:365] No field key specified for field11, resulting protocol may have conflicts or not be backwards compatible!
> [WARNING:/opt/Scribes/thrift-0.8.0/test/DebugProtoTest.thrift:366] No field key specified for field12, resulting protocol may have conflicts or not be backwards compatible!
> ** Execute gen-rb
> ** Invoke build_ext (first_time)
> ** Invoke gen-rb 
> ** Execute build_ext
> ruby extconf.rb
> checking for strlcpy() in string.h... yes
> creating Makefile
> make
> make: Nothing to be done for `all'.
> ** Invoke realspec (first_time)
> ** Execute realspec
> ld.so.1: ruby: fatal: relocation error: file /opt/Scribes/thrift-0.8.0/lib/rb/spec/../ext/thrift_native.so: symbol rb_intern2: referenced symbol not found
> Killed
> rake aborted!
> Command /usr/local/bin/ruby -I"lib"  "/usr/local/lib/ruby/gems/1.8/gems/rspec-1.3.2/bin/spec" "spec/base_protocol_spec.rb" "spec/base_transport_spec.rb" "spec/binary_protocol_accelerated_spec.rb" "spec/binary_protocol_spec.rb" "spec/client_spec.rb" "spec/compact_protocol_spec.rb" "spec/exception_spec.rb" "spec/http_client_spec.rb" "spec/mongrel_http_server_spec.rb" "spec/nonblocking_server_spec.rb" "spec/processor_spec.rb" "spec/serializer_spec.rb" "spec/server_socket_spec.rb" "spec/server_spec.rb" "spec/socket_spec.rb" "spec/struct_spec.rb" "spec/types_spec.rb" "spec/union_spec.rb" "spec/unix_socket_spec.rb" --color failed
> /usr/local/lib/ruby/gems/1.8/gems/rspec-1.3.2/lib/spec/rake/spectask.rb:177:in `define'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:60:in `verbose'
> /usr/local/lib/ruby/gems/1.8/gems/rspec-1.3.2/lib/spec/rake/spectask.rb:153:in `define'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `execute'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `invoke_with_call_chain'
> /usr/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:176:in `invoke_prerequisites'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `each'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `invoke_prerequisites'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:157:in `invoke_with_call_chain'
> /usr/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:176:in `invoke_prerequisites'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `each'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `invoke_prerequisites'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:157:in `invoke_with_call_chain'
> /usr/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:176:in `invoke_prerequisites'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `each'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `invoke_prerequisites'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:157:in `invoke_with_call_chain'
> /usr/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `run'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/bin/rake:33
> /usr/local/bin/rake:19:in `load'
> /usr/local/bin/rake:19
> Tasks: TOP => default => gem => spec => realspec

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira