Skip to content

Instantly share code, notes, and snippets.

@kmarsh
Created October 30, 2009 04:53
Show Gist options
  • Save kmarsh/222135 to your computer and use it in GitHub Desktop.
Save kmarsh/222135 to your computer and use it in GitHub Desktop.
kmarsh@storage_a:~/src/eventmachine-eventmachine-1250ffc$ uname -a
SunOS storage_a 5.11 NexentaOS_20081207 i86pc i386 i86pc Solaris
kmarsh@storage_a:~/src/eventmachine-eventmachine-1250ffc$ rake build
(in /export/home/kmarsh/src/eventmachine-eventmachine-1250ffc)
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31: command not found: git ls-files
cd ext
/usr/bin/ruby1.8 extconf.rb
checking for rb_trap_immediate in ruby.h,rubysig.h... yes
checking for rb_thread_blocking_region()... no
checking for sys/event.h... no
checking for main() in -lnsl... yes
checking for main() in -lsocket... yes
creating Makefile
cd -
cd ext/fastfilereader
/usr/bin/ruby1.8 extconf.rb
checking for main() in -lnsl... yes
checking for main() in -lsocket... yes
creating Makefile
cd -
cd ext
make
g++ -I. -I. -I/usr/lib/ruby/1.8/i386-solaris2.11 -I. -DBUILD_FOR_RUBY -DHAVE_RB_TRAP_IMMEDIATE -DHAVE_RBTRAP -DOS_UNIX -DOS_SOLARIS8 -DWITH_SSL -KPIC -KPIC -G -c pipe.cpp
g++: unrecognized option '-KPIC'
g++: unrecognized option '-KPIC'
In file included from /usr/lib/ruby/1.8/i386-solaris2.11/ruby.h:24,
from em.h:34,
from project.h:106,
from pipe.cpp:20:
/usr/lib/ruby/1.8/i386-solaris2.11/config.h:17:1: warning: "_FILE_OFFSET_BITS" redefined
In file included from /usr/include/iso/locale_iso.h:48,
from /usr/include/locale.h:32,
from /usr/include/c++/4.2/clocale:51,
from /usr/include/c++/4.2/i386-pc-solaris2.11/bits/c++locale.h:47,
from /usr/include/c++/4.2/iosfwd:45,
from /usr/include/c++/4.2/ios:43,
from /usr/include/c++/4.2/ostream:45,
from /usr/include/c++/4.2/iostream:45,
from project.h:29,
from pipe.cpp:20:
/usr/include/sys/feature_tests.h:209:1: warning: this is the location of the previous definition
g++ -I. -I. -I/usr/lib/ruby/1.8/i386-solaris2.11 -I. -DBUILD_FOR_RUBY -DHAVE_RB_TRAP_IMMEDIATE -DHAVE_RBTRAP -DOS_UNIX -DOS_SOLARIS8 -DWITH_SSL -KPIC -KPIC -G -c cmain.cpp
g++: unrecognized option '-KPIC'
g++: unrecognized option '-KPIC'
In file included from /usr/lib/ruby/1.8/i386-solaris2.11/ruby.h:24,
from em.h:34,
from project.h:106,
from cmain.cpp:20:
/usr/lib/ruby/1.8/i386-solaris2.11/config.h:17:1: warning: "_FILE_OFFSET_BITS" redefined
In file included from /usr/include/iso/locale_iso.h:48,
from /usr/include/locale.h:32,
from /usr/include/c++/4.2/clocale:51,
from /usr/include/c++/4.2/i386-pc-solaris2.11/bits/c++locale.h:47,
from /usr/include/c++/4.2/iosfwd:45,
from /usr/include/c++/4.2/ios:43,
from /usr/include/c++/4.2/ostream:45,
from /usr/include/c++/4.2/iostream:45,
from project.h:29,
from cmain.cpp:20:
/usr/include/sys/feature_tests.h:209:1: warning: this is the location of the previous definition
g++ -I. -I. -I/usr/lib/ruby/1.8/i386-solaris2.11 -I. -DBUILD_FOR_RUBY -DHAVE_RB_TRAP_IMMEDIATE -DHAVE_RBTRAP -DOS_UNIX -DOS_SOLARIS8 -DWITH_SSL -KPIC -KPIC -G -c rubymain.cpp
g++: unrecognized option '-KPIC'
g++: unrecognized option '-KPIC'
In file included from /usr/lib/ruby/1.8/i386-solaris2.11/ruby.h:24,
from em.h:34,
from project.h:106,
from rubymain.cpp:20:
/usr/lib/ruby/1.8/i386-solaris2.11/config.h:17:1: warning: "_FILE_OFFSET_BITS" redefined
In file included from /usr/include/iso/locale_iso.h:48,
from /usr/include/locale.h:32,
from /usr/include/c++/4.2/clocale:51,
from /usr/include/c++/4.2/i386-pc-solaris2.11/bits/c++locale.h:47,
from /usr/include/c++/4.2/iosfwd:45,
from /usr/include/c++/4.2/ios:43,
from /usr/include/c++/4.2/ostream:45,
from /usr/include/c++/4.2/iostream:45,
from project.h:29,
from rubymain.cpp:20:
/usr/include/sys/feature_tests.h:209:1: warning: this is the location of the previous definition
g++ -I. -I. -I/usr/lib/ruby/1.8/i386-solaris2.11 -I. -DBUILD_FOR_RUBY -DHAVE_RB_TRAP_IMMEDIATE -DHAVE_RBTRAP -DOS_UNIX -DOS_SOLARIS8 -DWITH_SSL -KPIC -KPIC -G -c ssl.cpp
g++: unrecognized option '-KPIC'
g++: unrecognized option '-KPIC'
^[[HIn file included from /usr/lib/ruby/1.8/i386-solaris2.11/ruby.h:24,
from em.h:34,
from project.h:106,
from ssl.cpp:23:
/usr/lib/ruby/1.8/i386-solaris2.11/config.h:17:1: warning: "_FILE_OFFSET_BITS" redefined
In file included from /usr/include/iso/locale_iso.h:48,
from /usr/include/locale.h:32,
from /usr/include/c++/4.2/clocale:51,
from /usr/include/c++/4.2/i386-pc-solaris2.11/bits/c++locale.h:47,
from /usr/include/c++/4.2/iosfwd:45,
from /usr/include/c++/4.2/ios:43,
from /usr/include/c++/4.2/ostream:45,
from /usr/include/c++/4.2/iostream:45,
from project.h:29,
from ssl.cpp:23:
/usr/include/sys/feature_tests.h:209:1: warning: this is the location of the previous definition
g++ -I. -I. -I/usr/lib/ruby/1.8/i386-solaris2.11 -I. -DBUILD_FOR_RUBY -DHAVE_RB_TRAP_IMMEDIATE -DHAVE_RBTRAP -DOS_UNIX -DOS_SOLARIS8 -DWITH_SSL -KPIC -KPIC -G -c page.cpp
g++: unrecognized option '-KPIC'
g++: unrecognized option '-KPIC'
In file included from /usr/lib/ruby/1.8/i386-solaris2.11/ruby.h:24,
from em.h:34,
from project.h:106,
from page.cpp:21:
/usr/lib/ruby/1.8/i386-solaris2.11/config.h:17:1: warning: "_FILE_OFFSET_BITS" redefined
In file included from /usr/include/iso/locale_iso.h:48,
from /usr/include/locale.h:32,
from /usr/include/c++/4.2/clocale:51,
from /usr/include/c++/4.2/i386-pc-solaris2.11/bits/c++locale.h:47,
from /usr/include/c++/4.2/iosfwd:45,
from /usr/include/c++/4.2/ios:43,
from /usr/include/c++/4.2/ostream:45,
from /usr/include/c++/4.2/iostream:45,
from project.h:29,
from page.cpp:21:
/usr/include/sys/feature_tests.h:209:1: warning: this is the location of the previous definition
g++ -I. -I. -I/usr/lib/ruby/1.8/i386-solaris2.11 -I. -DBUILD_FOR_RUBY -DHAVE_RB_TRAP_IMMEDIATE -DHAVE_RBTRAP -DOS_UNIX -DOS_SOLARIS8 -DWITH_SSL -KPIC -KPIC -G -c kb.cpp
g++: unrecognized option '-KPIC'
g++: unrecognized option '-KPIC'
In file included from /usr/lib/ruby/1.8/i386-solaris2.11/ruby.h:24,
from em.h:34,
from project.h:106,
from kb.cpp:20:
/usr/lib/ruby/1.8/i386-solaris2.11/config.h:17:1: warning: "_FILE_OFFSET_BITS" redefined
In file included from /usr/include/iso/locale_iso.h:48,
from /usr/include/locale.h:32,
from /usr/include/c++/4.2/clocale:51,
from /usr/include/c++/4.2/i386-pc-solaris2.11/bits/c++locale.h:47,
from /usr/include/c++/4.2/iosfwd:45,
from /usr/include/c++/4.2/ios:43,
from /usr/include/c++/4.2/ostream:45,
from /usr/include/c++/4.2/iostream:45,
from project.h:29,
from kb.cpp:20:
/usr/include/sys/feature_tests.h:209:1: warning: this is the location of the previous definition
g++ -I. -I. -I/usr/lib/ruby/1.8/i386-solaris2.11 -I. -DBUILD_FOR_RUBY -DHAVE_RB_TRAP_IMMEDIATE -DHAVE_RBTRAP -DOS_UNIX -DOS_SOLARIS8 -DWITH_SSL -KPIC -KPIC -G -c files.cpp
g++: unrecognized option '-KPIC'
g++: unrecognized option '-KPIC'
In file included from /usr/lib/ruby/1.8/i386-solaris2.11/ruby.h:24,
from em.h:34,
from project.h:106,
from files.cpp:20:
/usr/lib/ruby/1.8/i386-solaris2.11/config.h:17:1: warning: "_FILE_OFFSET_BITS" redefined
In file included from /usr/include/iso/locale_iso.h:48,
from /usr/include/locale.h:32,
from /usr/include/c++/4.2/clocale:51,
from /usr/include/c++/4.2/i386-pc-solaris2.11/bits/c++locale.h:47,
from /usr/include/c++/4.2/iosfwd:45,
from /usr/include/c++/4.2/ios:43,
from /usr/include/c++/4.2/ostream:45,
from /usr/include/c++/4.2/iostream:45,
from project.h:29,
from files.cpp:20:
/usr/include/sys/feature_tests.h:209:1: warning: this is the location of the previous definition
g++ -I. -I. -I/usr/lib/ruby/1.8/i386-solaris2.11 -I. -DBUILD_FOR_RUBY -DHAVE_RB_TRAP_IMMEDIATE -DHAVE_RBTRAP -DOS_UNIX -DOS_SOLARIS8 -DWITH_SSL -KPIC -KPIC -G -c emwin.cpp
g++: unrecognized option '-KPIC'
g++: unrecognized option '-KPIC'
g++ -I. -I. -I/usr/lib/ruby/1.8/i386-solaris2.11 -I. -DBUILD_FOR_RUBY -DHAVE_RB_TRAP_IMMEDIATE -DHAVE_RBTRAP -DOS_UNIX -DOS_SOLARIS8 -DWITH_SSL -KPIC -KPIC -G -c cplusplus.cpp
g++: unrecognized option '-KPIC'
g++: unrecognized option '-KPIC'
In file included from /usr/lib/ruby/1.8/i386-solaris2.11/ruby.h:24,
from em.h:34,
from project.h:106,
from cplusplus.cpp:21:
/usr/lib/ruby/1.8/i386-solaris2.11/config.h:17:1: warning: "_FILE_OFFSET_BITS" redefined
In file included from /usr/include/iso/locale_iso.h:48,
from /usr/include/locale.h:32,
from /usr/include/c++/4.2/clocale:51,
from /usr/include/c++/4.2/i386-pc-solaris2.11/bits/c++locale.h:47,
from /usr/include/c++/4.2/iosfwd:45,
from /usr/include/c++/4.2/ios:43,
from /usr/include/c++/4.2/ostream:45,
from /usr/include/c++/4.2/iostream:45,
from project.h:29,
from cplusplus.cpp:21:
/usr/include/sys/feature_tests.h:209:1: warning: this is the location of the previous definition
g++ -I. -I. -I/usr/lib/ruby/1.8/i386-solaris2.11 -I. -DBUILD_FOR_RUBY -DHAVE_RB_TRAP_IMMEDIATE -DHAVE_RBTRAP -DOS_UNIX -DOS_SOLARIS8 -DWITH_SSL -KPIC -KPIC -G -c em.cpp
g++: unrecognized option '-KPIC'
g++: unrecognized option '-KPIC'
In file included from /usr/lib/ruby/1.8/i386-solaris2.11/ruby.h:24,
from em.h:34,
from project.h:106,
from em.cpp:24:
/usr/lib/ruby/1.8/i386-solaris2.11/config.h:17:1: warning: "_FILE_OFFSET_BITS" redefined
In file included from /usr/include/iso/locale_iso.h:48,
from /usr/include/locale.h:32,
from /usr/include/c++/4.2/clocale:51,
from /usr/include/c++/4.2/i386-pc-solaris2.11/bits/c++locale.h:47,
from /usr/include/c++/4.2/iosfwd:45,
from /usr/include/c++/4.2/ios:43,
from /usr/include/c++/4.2/ostream:45,
from /usr/include/c++/4.2/iostream:45,
from project.h:29,
from em.cpp:24:
/usr/include/sys/feature_tests.h:209:1: warning: this is the location of the previous definition
g++ -I. -I. -I/usr/lib/ruby/1.8/i386-solaris2.11 -I. -DBUILD_FOR_RUBY -DHAVE_RB_TRAP_IMMEDIATE -DHAVE_RBTRAP -DOS_UNIX -DOS_SOLARIS8 -DWITH_SSL -KPIC -KPIC -G -c ed.cpp
g++: unrecognized option '-KPIC'
g++: unrecognized option '-KPIC'
In file included from /usr/lib/ruby/1.8/i386-solaris2.11/ruby.h:24,
from em.h:34,
from project.h:106,
from ed.cpp:20:
/usr/lib/ruby/1.8/i386-solaris2.11/config.h:17:1: warning: "_FILE_OFFSET_BITS" redefined
In file included from /usr/include/iso/locale_iso.h:48,
from /usr/include/locale.h:32,
from /usr/include/c++/4.2/clocale:51,
from /usr/include/c++/4.2/i386-pc-solaris2.11/bits/c++locale.h:47,
from /usr/include/c++/4.2/iosfwd:45,
from /usr/include/c++/4.2/ios:43,
from /usr/include/c++/4.2/ostream:45,
from /usr/include/c++/4.2/iostream:45,
from project.h:29,
from ed.cpp:20:
/usr/include/sys/feature_tests.h:209:1: warning: this is the location of the previous definition
g++ -I. -I. -I/usr/lib/ruby/1.8/i386-solaris2.11 -I. -DBUILD_FOR_RUBY -DHAVE_RB_TRAP_IMMEDIATE -DHAVE_RBTRAP -DOS_UNIX -DOS_SOLARIS8 -DWITH_SSL -KPIC -KPIC -G -c sigs.cpp
g++: unrecognized option '-KPIC'
g++: unrecognized option '-KPIC'
In file included from /usr/lib/ruby/1.8/i386-solaris2.11/ruby.h:24,
from em.h:34,
from project.h:106,
from sigs.cpp:20:
/usr/lib/ruby/1.8/i386-solaris2.11/config.h:17:1: warning: "_FILE_OFFSET_BITS" redefined
In file included from /usr/include/iso/locale_iso.h:48,
from /usr/include/locale.h:32,
from /usr/include/c++/4.2/clocale:51,
from /usr/include/c++/4.2/i386-pc-solaris2.11/bits/c++locale.h:47,
from /usr/include/c++/4.2/iosfwd:45,
from /usr/include/c++/4.2/ios:43,
from /usr/include/c++/4.2/ostream:45,
from /usr/include/c++/4.2/iostream:45,
from project.h:29,
from sigs.cpp:20:
/usr/include/sys/feature_tests.h:209:1: warning: this is the location of the previous definition
g++ -I. -I. -I/usr/lib/ruby/1.8/i386-solaris2.11 -I. -DBUILD_FOR_RUBY -DHAVE_RB_TRAP_IMMEDIATE -DHAVE_RBTRAP -DOS_UNIX -DOS_SOLARIS8 -DWITH_SSL -KPIC -KPIC -G -c epoll.cpp
g++: unrecognized option '-KPIC'
g++: unrecognized option '-KPIC'
g++ -I. -I. -I/usr/lib/ruby/1.8/i386-solaris2.11 -I. -DBUILD_FOR_RUBY -DHAVE_RB_TRAP_IMMEDIATE -DHAVE_RBTRAP -DOS_UNIX -DOS_SOLARIS8 -DWITH_SSL -KPIC -KPIC -G -c binder.cpp
g++: unrecognized option '-KPIC'
g++: unrecognized option '-KPIC'
In file included from /usr/lib/ruby/1.8/i386-solaris2.11/ruby.h:24,
from em.h:34,
from project.h:106,
from binder.cpp:20:
/usr/lib/ruby/1.8/i386-solaris2.11/config.h:17:1: warning: "_FILE_OFFSET_BITS" redefined
In file included from /usr/include/iso/locale_iso.h:48,
from /usr/include/locale.h:32,
from /usr/include/c++/4.2/clocale:51,
from /usr/include/c++/4.2/i386-pc-solaris2.11/bits/c++locale.h:47,
from /usr/include/c++/4.2/iosfwd:45,
from /usr/include/c++/4.2/ios:43,
from /usr/include/c++/4.2/ostream:45,
from /usr/include/c++/4.2/iostream:45,
from project.h:29,
from binder.cpp:20:
/usr/include/sys/feature_tests.h:209:1: warning: this is the location of the previous definition
cc -shared -o rubyeventmachine.so pipe.o cmain.o rubymain.o ssl.o page.o kb.o files.o emwin.o cplusplus.o em.o ed.o sigs.o epoll.o binder.o -L"." -L"/usr/lib" -L. -Wl,-Bsymbolic-functions -Wl,-E -lruby1.8 -lsocket -lnsl -lssl -lcrypto -lpthread -ldl -lcrypt -lm -lc
cd -
cd ext/fastfilereader
make
g++ -I. -I. -I/usr/lib/ruby/1.8/i386-solaris2.11 -I. -DBUILD_FOR_RUBY -DOS_UNIX -DOS_SOLARIS8 -KPIC -KPIC -G -c rubymain.cpp
g++: unrecognized option '-KPIC'
g++: unrecognized option '-KPIC'
In file included from /usr/lib/ruby/1.8/i386-solaris2.11/ruby.h:24,
from rubymain.cpp:26:
/usr/lib/ruby/1.8/i386-solaris2.11/config.h:17:1: warning: "_FILE_OFFSET_BITS" redefined
In file included from /usr/include/iso/locale_iso.h:48,
from /usr/include/locale.h:32,
from /usr/include/c++/4.2/clocale:51,
from /usr/include/c++/4.2/i386-pc-solaris2.11/bits/c++locale.h:47,
from /usr/include/c++/4.2/iosfwd:45,
from /usr/include/c++/4.2/ios:43,
from /usr/include/c++/4.2/ostream:45,
from /usr/include/c++/4.2/iostream:45,
from rubymain.cpp:22:
/usr/include/sys/feature_tests.h:209:1: warning: this is the location of the previous definition
g++ -I. -I. -I/usr/lib/ruby/1.8/i386-solaris2.11 -I. -DBUILD_FOR_RUBY -DOS_UNIX -DOS_SOLARIS8 -KPIC -KPIC -G -c mapper.cpp
g++: unrecognized option '-KPIC'
g++: unrecognized option '-KPIC'
cc -shared -o fastfilereaderext.so rubymain.o mapper.o -L"." -L"/usr/lib" -L. -Wl,-Bsymbolic-functions -Wl,-E -lruby1.8 -lsocket -lnsl -lpthread -ldl -lcrypt -lm -lc
cd -
mv ext/rubyeventmachine.so lib
mv ext/fastfilereader/fastfilereaderext.so lib
kmarsh@storage_a:~/src/eventmachine-eventmachine-1250ffc$ sudo rake install
(in /export/home/kmarsh/src/eventmachine-eventmachine-1250ffc)
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31: command not found: git ls-files
/usr/bin/ruby1.8 -r rubygems -e 'require %{rubygems/gem_runner}; Gem::GemRunner.new.run(%w{install pkg/eventmachine-0.12.7.gem })'
Building native extensions. This could take a while...
ERROR: Error installing pkg/eventmachine-0.12.7.gem:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb
checking for rb_trap_immediate in ruby.h,rubysig.h... yes
checking for rb_thread_blocking_region()... no
checking for sys/event.h... no
checking for main() in -lnsl... yes
checking for main() in -lsocket... yes
creating Makefile
make
make: Nothing to be done for `all'.
make install
make: *** No rule to make target `/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.7/lib', needed by `install-so'. Stop.
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.7 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.7/ext/gem_make.out
kmarsh@storage_a:~/src/eventmachine-eventmachine-1250ffc$
kmarsh@storage_a:~/tmp/amqp-0.6.0$ ruby examples/mq/simple.rb
/export/home/kmarsh/tmp/amqp-0.6.0/lib/amqp/client.rb:89:in `add_channel': uninitialized constant AMQP::Client::Mutex (NameError)
from ./examples/mq/../../lib/mq.rb:144:in `initialize'
from /usr/local/lib/site_ruby/1.8/em/deferrable.rb:133:in `call'
from /usr/local/lib/site_ruby/1.8/em/deferrable.rb:133:in `set_deferred_status'
from /usr/local/lib/site_ruby/1.8/em/deferrable.rb:176:in `set_deferred_success'
from /usr/local/lib/site_ruby/1.8/em/deferrable.rb:188:in `succeed'
from /export/home/kmarsh/tmp/amqp-0.6.0/lib/amqp/client.rb:36:in `process_frame'
from /export/home/kmarsh/tmp/amqp-0.6.0/lib/amqp/client.rb:105:in `receive_data'
from /usr/local/lib/site_ruby/1.8/eventmachine.rb:990:in `event_callback'
... 8 levels...
from /usr/local/lib/site_ruby/1.8/pr_eventmachine.rb:309:in `run'
from /usr/local/lib/site_ruby/1.8/pr_eventmachine.rb:64:in `run_machine'
from /usr/local/lib/site_ruby/1.8/eventmachine.rb:135:in `run'
from examples/mq/simple.rb:5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment