[fxruby-users] Installation on OpenBSD systems

Alwin Alwin.Eekhoff at t-online.de
Thu Feb 3 14:33:23 EST 2011


Hello,

I would like to transform some Ruby/TK-programs to FXRuby. I took the Ruby
and FOX16 binaries of my OpenBSD4.8 system and installed the FXRuby-1.6.19
source code. Unfortunatly it does not work. The fault messages look similar
to the discription on the build document but adding -lgcc to the
LIBS line in the makefile does not fix the problem.

I am happy if someone could drop a hint.
Alwin


# some error messages:
#
> cd /home/FXRuby-1.6.19/examples
> ruby button.rb
ruby:/usr/local/lib/libFOX-1.6.so.2.0: undefined symbol  
'pthread_mutexattr_init'
lazy binding failed!
/usr/local/lib/ruby/site_ruby/1.8/fox16/kwargs.rb:269: [BUG] Segmentation  
fault
ruby 1.8.6 (2009-06-08) [i386-openbsd4.8]

Abort trap (core dumped)
#
#
> irb
irb(main):001:0> require 'fox16'
=> true
irb(main):002:0> exit
/usr/local/bin/ruby:/usr/local/lib/libFOX-1.6.so.2.0: undefined symbol
'pthread_key_delete'
lazy binding failed!
/usr/local/bin/irb:13: [BUG] Segmentation fault
ruby 1.8.6 (2009-06-08) [i386-openbsd4.8]

Abort trap (core dumped)
#
> gcc -v
gcc version 4.2.1 20070719
#
#
> gdb ruby
GNU gdb 6.3
...
(gdb)r -e 'require "fox16"; p FOX'
Starting program: /usr/local/bin/ruby -e 'require "fox16"; p FOX'
-e:1: uninitialized constant FOX (NameError)   # I think this is irrelevant
/usr/local/bin/ruby:/usr/local/lib/libFOX-1.6.so.2.0: undefined symbol  
'pthread_key_delete'
lazy binding failed!

Program received signal SIGSEGV, Segmentation fault.
0x0a607260 in _dl_bind () from /usr/libexec/ld.so  # this seems to be an  
OpenBSD problem???
#
#
> ruby install.rb config
...
checking for png_create_read_struct() in -lpng... no
...
#
#end of error messages





More information about the fxruby-users mailing list