From: KUBO Takehiro Date: 2004-03-04T02:05:09+09:00 Subject: Re: Ruby, Solaris and Oracle drivers Hi, djberg96@hotmail.com (Daniel Berger) writes: > Hi all, > > Ruby 1.8.1 (64 bit) > Solaris 9 > Oracle 9.2 (64 bit) > $ORACLE_HOME = /opt/oracle>file > Solaris ld (snip) >>ruby dbitest.rb > /opt/lib/ruby/site_ruby/1.8/DBD/Oracle/Oracle.rb:86: [BUG] Bus Error > ruby 1.8.1 (2003-12-25) [sparc-solaris2.9] > > Abort (core dumped) I don't have 64 bit oracle server and I hadn't tested it on Solaris. But I suppose that it may be solved by adding "-DSS_64BIT_SERVER" to the CFLAGS option. That's because the size of Lda_Def and Cda_Def depends on whether SS_64BIT_SERVER is set or not. > The ruby-oci8 driver, however, appears to work flawlessly. I didn't > have to edit the Makefile and yet it works without having > LD_LIBRARY_PATH set. So, what did OCI8 do right that the other two > did wrong? That, or what am *I* doing wrong? Oracle and Ruby9i build linker options by itself. But ruby-oci8 gets linker options from $ORACLE_HOME/rdbms/demo/demo_rdbms.mk. I suppose it added "-R$ORACLE_HOME/lib". -- KUBO Takehiro email: kubo@jiubao.org web: http://www.jiubao.org GnuPG fingerprint = 5F7B C8EF CA16 57D0 FDE1 9F47 C001 1F93 AC08 2262