c++ - Ruby require fails with Not enough space[loadquery failed] -


i managed compile ruby 2.0.0 on aix in 64 bit mode , trying swig wrapper around c++ class work.

after compiling ruby, make test comes clean , indeed ruby seems running fine. next step compile extension.

pointing new ruby install created extconf.rb following:

require 'mkmf' create_makefile('wv') 

wv being name of module. ran

make make install  

which ran clean. when run

ruby -e "require 'wv'"  

i following traceback.

/blah/blah/ruby/aix/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in `require': load failed - /blah/blah/ruby/aix/lib/ruby/site_ruby/2.0.0/powerpc-aix6.1.0.0/wv.so. not enough space[loadquery failed] (loaderror) 

btw, when used same swig generated cxx file , followed same procedure on linux , works fine.

any idea's on begin figure out broken?

when require fails reason other "no such file", need dig deeper. in case issue not related space @ all. in case issue not space fact , while shared object file located, did not load properly. extension attempted link incompatible library. extension compiled using g++, while library compiled using xlc. mangled names of 2 libraries incompatible. recompiling library using g++ solved problem


Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -