Bus error in IRB when trying: require "fox16"


#1

HI,

I have spent a couple of days trying to get the Fox GUI library to
interact with ruby. Now I think I am getting close. Before I go on to
explain my problem here is some information that may be necessary.

System Information:

MAC OS X Tiger 10.4.8
iBook G4

Software Versions:

Ruby 1.8.1
FXRuby 1.6.5
Fox 1.6.21
RubyGems 0.9.1

Fox and FXRuby, when compiled they say they compiled succesfully, I have
also recompiled FXRuby with RubyGems, all being successful. I then go
into irb and type require ‘fox16’ and I get this message returned:

/sw/lib/ruby/site_ruby/1.8/powerpc-darwin/fox16.bundle: [BUG] Bus Error
ruby 1.8.1 (2003-12-25) [powerpc-darwin]
Abort trap

Console Prints out this message at the same time:

Feb 3 15:10:14 zane-ibook-g4 crashdump[15431]: ruby1.8 crashed
Feb 3 15:10:16 zane-ibook-g4 crashdump[15431]: crash report written to:
/Users/ZaneV/Library/Logs/CrashReporter/ruby1.8.crash.log

When I try require ‘fox’ in irb I get this message:

LoadError: No such file to load – fox
from (irb):1:in `require’
from (irb):1

But I take it that as long as I can get fox16 working then this won’t be
a problem.

I have trawled through website after website trying to find a fix to
this problem or some helpful information… I have have read a heap of
FXRuby documentation and some Ruby Documentation.

Please help,

Thanks,

Zane.

P.S: Here is a copy of what is writen to ruby1.8.crash.log:


      RUBY1.8.crash.log

Host Name: zane-ibook-g4
Date/Time: 2007-02-03 15:21:59.953 +1100
OS Version: 10.4.8 (Build 8L127)
Report Version: 4

Command: ruby1.8
Path: /sw/bin/ruby1.8
Parent: bash [15390]

Version: ??? (???)

PID: 15435
Thread: 0

Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000

Thread 0 Crashed:
0 libruby.1.dylib 0x96aa9634 st_lookup + 24
1 libruby.1.dylib 0x96a90100 rb_intern + 52
2 libruby.1.dylib 0x96a413e8 rb_define_module + 28
3 fox16.bundle 0x02009ed0 SWIG_Ruby_InitRuntime + 60
(librb.c:479)
4 fox16.bundle 0x02078048 Init_core + 32 (core_wrap.cpp:9468)
5 fox16.bundle 0x0221c7b8 Init_fox16 + 32 (FXRuby.cpp:1985)
6 libruby.1.8.dylib 0x002135f4 dln_load + 372 (dln.c:1598)
7 libruby.1.8.dylib 0x0022e858 rb_require_safe + 1148 (eval.c:6207)
8 libruby.1.8.dylib 0x002245e0 rb_call0 + 820 (eval.c:5066)
9 libruby.1.8.dylib 0x00224efc rb_call + 552 (eval.c:5288)
10 libruby.1.8.dylib 0x00220074 rb_eval + 7248 (eval.c:3091)
11 libruby.1.8.dylib 0x00222d64 eval + 984 (eval.c:5603)
12 libruby.1.8.dylib 0x00223154 rb_f_eval + 428 (eval.c:5698)
13 libruby.1.8.dylib 0x002245e0 rb_call0 + 820 (eval.c:5066)
14 libruby.1.8.dylib 0x00224efc rb_call + 552 (eval.c:5288)
15 libruby.1.8.dylib 0x00220074 rb_eval + 7248 (eval.c:3091)
16 libruby.1.8.dylib 0x00224a64 rb_call0 + 1976 (eval.c:5194)
17 libruby.1.8.dylib 0x00224efc rb_call + 552 (eval.c:5288)
18 libruby.1.8.dylib 0x0021fe50 rb_eval + 6700 (eval.c:3076)
19 libruby.1.8.dylib 0x0021ff00 rb_eval + 6876 (eval.c:3086)
20 libruby.1.8.dylib 0x00224a64 rb_call0 + 1976 (eval.c:5194)
21 libruby.1.8.dylib 0x00224efc rb_call + 552 (eval.c:5288)
22 libruby.1.8.dylib 0x0021fe50 rb_eval + 6700 (eval.c:3076)
23 libruby.1.8.dylib 0x0021f4e0 rb_eval + 4284 (eval.c:2883)
24 libruby.1.8.dylib 0x00227354 rb_yield_0 + 1424 (eval.c:4293)
25 libruby.1.8.dylib 0x0021f460 rb_eval + 4156 (eval.c:2872)
26 libruby.1.8.dylib 0x0021f694 rb_eval + 4720 (eval.c:2932)
27 libruby.1.8.dylib 0x00224a64 rb_call0 + 1976 (eval.c:5194)
28 libruby.1.8.dylib 0x00224efc rb_call + 552 (eval.c:5288)
29 libruby.1.8.dylib 0x00220074 rb_eval + 7248 (eval.c:3091)
30 libruby.1.8.dylib 0x0021f044 rb_eval + 3104 (eval.c:2796)
31 libruby.1.8.dylib 0x00227354 rb_yield_0 + 1424 (eval.c:4293)
32 libruby.1.8.dylib 0x0021f460 rb_eval + 4156 (eval.c:2872)
33 libruby.1.8.dylib 0x0021f4e0 rb_eval + 4284 (eval.c:2883)
34 libruby.1.8.dylib 0x00227354 rb_yield_0 + 1424 (eval.c:4293)
35 libruby.1.8.dylib 0x0022cfc8 rb_f_loop + 72 (eval.c:4395)
36 libruby.1.8.dylib 0x002245e0 rb_call0 + 820 (eval.c:5066)
37 libruby.1.8.dylib 0x00224efc rb_call + 552 (eval.c:5288)
38 libruby.1.8.dylib 0x00220074 rb_eval + 7248 (eval.c:3091)
39 libruby.1.8.dylib 0x0021f044 rb_eval + 3104 (eval.c:2796)
40 libruby.1.8.dylib 0x00227354 rb_yield_0 + 1424 (eval.c:4293)
41 libruby.1.8.dylib 0x0022774c rb_f_catch + 160 (eval.c:10474)
42 libruby.1.8.dylib 0x002245e0 rb_call0 + 820 (eval.c:5066)
43 libruby.1.8.dylib 0x00224efc rb_call + 552 (eval.c:5288)
44 libruby.1.8.dylib 0x00220074 rb_eval + 7248 (eval.c:3091)
45 libruby.1.8.dylib 0x0021f044 rb_eval + 3104 (eval.c:2796)
46 libruby.1.8.dylib 0x00224a64 rb_call0 + 1976 (eval.c:5194)
47 libruby.1.8.dylib 0x00224efc rb_call + 552 (eval.c:5288)
48 libruby.1.8.dylib 0x0021fe50 rb_eval + 6700 (eval.c:3076)
49 libruby.1.8.dylib 0x0021f044 rb_eval + 3104 (eval.c:2796)
50 libruby.1.8.dylib 0x00224a64 rb_call0 + 1976 (eval.c:5194)
51 libruby.1.8.dylib 0x00224efc rb_call + 552 (eval.c:5288)
52 libruby.1.8.dylib 0x0021fe50 rb_eval + 6700 (eval.c:3076)
53 libruby.1.8.dylib 0x00227354 rb_yield_0 + 1424 (eval.c:4293)
54 libruby.1.8.dylib 0x0022774c rb_f_catch + 160 (eval.c:10474)
55 libruby.1.8.dylib 0x002245e0 rb_call0 + 820 (eval.c:5066)
56 libruby.1.8.dylib 0x00224efc rb_call + 552 (eval.c:5288)
57 libruby.1.8.dylib 0x00220074 rb_eval + 7248 (eval.c:3091)
58 libruby.1.8.dylib 0x0021f044 rb_eval + 3104 (eval.c:2796)
59 libruby.1.8.dylib 0x00224a64 rb_call0 + 1976 (eval.c:5194)
60 libruby.1.8.dylib 0x00224efc rb_call + 552 (eval.c:5288)
61 libruby.1.8.dylib 0x0021fe50 rb_eval + 6700 (eval.c:3076)
62 libruby.1.8.dylib 0x0022eb28 ruby_exec + 176 (eval.c:1438)
63 libruby.1.8.dylib 0x0022eb90 ruby_run + 56 (eval.c:1458)
64 ruby1.8 0x00002ce0 dyld_stub_exit + 0 ((null):-1)
65 ruby1.8 0x0000250c _start + 340 (crt.c:272)
66 ruby1.8 0x000023b4 start + 60

Thread 0 crashed with PPC Thread State 64:
srr0: 0x0000000096aa9634 srr1: 0x000000000200f030
vrsave: 0x0000000000000000
cr: 0x42000422 xer: 0x0000000020000004 lr:
0x0000000096a90100 ctr: 0x0000000096aa961c
r0: 0x0000000096a90100 r1: 0x00000000bffef460 r2:
0x0000000002599eac r3: 0x0000000000000000
r4: 0x000000000259e760 r5: 0x00000000bffef500 r6:
0x0000000000000001 r7: 0x0000000002c90264
r8: 0x0000000000000000 r9: 0x0000000000000000 r10:
0x0000000090001520 r11: 0x00000000a6a38ff8
r12: 0x0000000096aa961c r13: 0x0000000000000000 r14:
0x0000000000000000 r15: 0x0000000000000000
r16: 0x0000000000000000 r17: 0x0000000000000000 r18:
0x0000000000000000 r19: 0x0000000000000000
r20: 0x0000000000000000 r21: 0x0000000000000000 r22:
0x00000000a6a400d4 r23: 0x000000000000c48c
r24: 0x0000000000000000 r25: 0x00000000bffeff60 r26:
0x00000000004a2e60 r27: 0x0000000000000000
r28: 0x000000000259e760 r29: 0x000000000221c798 r30:
0x00000000bffef4c0 r31: 0x0000000096a900d4

Binary Images Description:
0x1000 - 0x2fff ruby1.8 /sw/bin/ruby1.8
0x8f000 - 0x91fff readline.bundle
/sw/lib/ruby/1.8/powerpc-darwin/readline.bundle
0x98000 - 0x9dfff libXcursor.1.dylib
/usr/X11R6/lib/libXcursor.1.dylib
0xb3000 - 0xe6fff libreadline.4.dylib
/sw/lib/libreadline.4.dylib
0xfa000 - 0xfbfff libXrandr.2.dylib
/usr/X11R6/lib/libXrandr.2.dylib
0x205000 - 0x2a6fff libruby.1.8.dylib /sw/lib/libruby.1.8.dylib
0x3e9000 - 0x3f5fff libXext.6.dylib /usr/X11R6/lib/libXext.6.dylib
0x505000 - 0x530fff libncurses.5.dylib
/sw/lib/ncurses/libncurses.5.dylib
0x54c000 - 0x615fff libX11.6.dylib /usr/X11R6/lib/libX11.6.dylib
0x63e000 - 0x69efff libGLU.1.dylib /usr/X11R6/lib/libGLU.1.dylib
0x6ca000 - 0x6d0fff libXrender.1.dylib
/usr/X11R6/lib/libXrender.1.dylib
0x1008000 - 0x1085fff libGL.1.dylib /usr/X11R6/lib/libGL.1.dylib
0x2008000 - 0x2777fff fox16.bundle
/sw/lib/ruby/site_ruby/1.8/powerpc-darwin/fox16.bundle
0x3cd5000 - 0x3efffff libFOX-1.6.0.dylib
/usr/local/lib/libFOX-1.6.0.dylib
0x8fe00000 - 0x8fe51fff dyld 45.3 /usr/lib/dyld
0x90000000 - 0x901bcfff libSystem.B.dylib /usr/lib/libSystem.B.dylib
0x90214000 - 0x90219fff libmathCommon.A.dylib
/usr/lib/system/libmathCommon.A.dylib
0x9021b000 - 0x90268fff com.apple.CoreText 1.0.2 (???)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreText.framework/Versions/A/CoreText
0x90293000 - 0x90344fff ATS
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
0x90373000 - 0x9072dfff com.apple.CoreGraphics 1.258.38 (???)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x907ba000 - 0x90893fff com.apple.CoreFoundation 6.4.6 (368.27)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x908dc000 - 0x908dcfff com.apple.CoreServices 10.4 (???)
/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x908de000 - 0x909e0fff libicucore.A.dylib /usr/lib/libicucore.A.dylib
0x90a3a000 - 0x90abefff libobjc.A.dylib /usr/lib/libobjc.A.dylib
0x90ae8000 - 0x90b5afff com.apple.framework.IOKit 1.4.1 (???)
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x90b70000 - 0x90b82fff libauto.dylib /usr/lib/libauto.dylib
0x90b89000 - 0x90e60fff com.apple.CoreServices.CarbonCore 681.7
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x90ec6000 - 0x90f46fff com.apple.CoreServices.OSServices 4.1
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
0x90f90000 - 0x90fd1fff com.apple.CFNetwork 129.19
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x90fe6000 - 0x90ffefff com.apple.WebServices 1.1.2 (1.1.0)
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/WebServicesCore.framework/Versions/A/WebServicesCore
0x9100e000 - 0x9108ffff com.apple.SearchKit 1.0.5
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
0x910d5000 - 0x910fefff com.apple.Metadata 10.4.4 (121.36)
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
0x9110f000 - 0x9111dfff libz.1.dylib /usr/lib/libz.1.dylib
0x91120000 - 0x912dbfff com.apple.security 4.6 (29770)
/System/Library/Frameworks/Security.framework/Versions/A/Security
0x913da000 - 0x913e3fff com.apple.DiskArbitration 2.1
/System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x913ea000 - 0x91412fff com.apple.SystemConfiguration 1.8.3
/System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x91425000 - 0x91430fff libgcc_s.1.dylib /usr/lib/libgcc_s.1.dylib
0x91435000 - 0x9143dfff libbsm.dylib /usr/lib/libbsm.dylib
0x91441000 - 0x914bcfff com.apple.audio.CoreAudio 3.0.4
/System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x914f9000 - 0x914f9fff com.apple.ApplicationServices 10.4 (???)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
0x914fb000 - 0x91533fff com.apple.AE 1.5 (297)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
0x9154e000 - 0x9161bfff com.apple.ColorSync 4.4.4
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
0x91670000 - 0x91701fff com.apple.print.framework.PrintCore 4.6 (177.13)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
0x91748000 - 0x917fffff com.apple.QD 3.10.21 (???)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
0x9183c000 - 0x9189afff com.apple.HIServices 1.5.3 (???)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
0x918c9000 - 0x918eafff com.apple.LangAnalysis 1.6.1
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
0x918fe000 - 0x91923fff com.apple.FindByContent 1.5
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/FindByContent.framework/Versions/A/FindByContent
0x91936000 - 0x91978fff com.apple.LaunchServices 181
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
0x91994000 - 0x919a8fff com.apple.speech.synthesis.framework 3.3
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x919b6000 - 0x919f8fff com.apple.ImageIO.framework 1.5.0
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
0x91a0e000 - 0x91ad5fff libcrypto.0.9.7.dylib
/usr/lib/libcrypto.0.9.7.dylib
0x91b23000 - 0x91b38fff libcups.2.dylib /usr/lib/libcups.2.dylib
0x91b3d000 - 0x91b5bfff libJPEG.dylib
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
0x91b61000 - 0x91bd0fff libJP2.dylib
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib
0x91be7000 - 0x91bebfff libGIF.dylib
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
0x91bed000 - 0x91c4cfff libRaw.dylib
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRaw.dylib
0x91c51000 - 0x91c8efff libTIFF.dylib
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
0x91c95000 - 0x91caefff libPng.dylib
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
0x91cb3000 - 0x91cb6fff libRadiance.dylib
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
0x91cb8000 - 0x91cb8fff com.apple.Accelerate 1.2.2 (Accelerate 1.2.2)
/System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
0x91cba000 - 0x91d9ffff com.apple.vImage 2.4
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
0x91da7000 - 0x91dc6fff com.apple.Accelerate.vecLib 3.2.2 (vecLib 3.2.2)
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
0x91e32000 - 0x91ea0fff libvMisc.dylib
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
0x91eab000 - 0x91f40fff libvDSP.dylib
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
0x91f5a000 - 0x924e2fff libBLAS.dylib
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
0x92515000 - 0x92840fff libLAPACK.dylib
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
0x92870000 - 0x928f8fff com.apple.DesktopServices 1.3.5
/System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
0x92939000 - 0x92b64fff com.apple.Foundation 6.4.6 (567.27)
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x92c82000 - 0x92d60fff libxml2.2.dylib /usr/lib/libxml2.2.dylib
0x92d80000 - 0x92e6efff libiconv.2.dylib /usr/lib/libiconv.2.dylib
0x92e80000 - 0x92e9efff libGL.dylib
/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
0x92ea9000 - 0x92f03fff libGLU.dylib
/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
0x92f21000 - 0x92f21fff com.apple.Carbon 10.4 (???)
/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
0x92f23000 - 0x92f37fff com.apple.ImageCapture 3.0
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
0x92f4f000 - 0x92f5ffff com.apple.speech.recognition.framework 3.4
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
0x92f6b000 - 0x92f80fff com.apple.securityhi 2.0 (203)
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI
0x92f92000 - 0x93019fff com.apple.ink.framework 101.2 (69)
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
0x9302d000 - 0x93038fff com.apple.help 1.0.3 (32)
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
0x93042000 - 0x9306ffff com.apple.openscripting 1.2.5 (???)
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
0x93089000 - 0x93098fff com.apple.print.framework.Print 5.2 (192.4)
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
0x930a4000 - 0x9310afff com.apple.htmlrendering 1.1.2
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering.framework/Versions/A/HTMLRendering
0x9313b000 - 0x9318afff com.apple.NavigationServices 3.4.4 (3.4.3)
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationServices.framework/Versions/A/NavigationServices
0x931b8000 - 0x931d5fff com.apple.audio.SoundManager 3.9
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/CarbonSound
0x931e7000 - 0x931f4fff com.apple.CommonPanels 1.2.2 (73)
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels
0x931fd000 - 0x9350afff com.apple.HIToolbox 1.4.8 (???)
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
0x93659000 - 0x93665fff com.apple.opengl 1.4.7
/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
0x936fd000 - 0x9371dfff libmx.A.dylib /usr/lib/libmx.A.dylib
0x94b23000 - 0x94b94fff libstdc++.6.dylib /usr/lib/libstdc++.6.dylib
0x9695f000 - 0x9698dfff libncurses.5.4.dylib
/usr/lib/libncurses.5.4.dylib
0x96a37000 - 0x96ad6fff libruby.1.dylib /usr/lib/libruby.1.dylib
0x98f71000 - 0x98f7efff libbz2.1.0.dylib /usr/lib/libbz2.1.0.dylib
0x9b1ef000 - 0x9b1fdfff libXplugin.1.dylib /usr/lib/libXplugin.1.dylib


#2

On 2/2/07, Zane removed_email_address@domain.invalid wrote:

I have spent a couple of days trying to get the Fox GUI library to
interact with ruby. Now I think I am getting close. Before I go on to
explain my problem here is some information that may be necessary…

Software Versions:

Ruby 1.8.1

Just curious: Why still running Ruby 1.8.1?

Abort trap
OK, that’s bad. When I say that’s bad, I mean, I don’t recall ever
seeing ruby outright crash when trying to load FXRuby. It’s more
common to see, for example, a failure to find one of the shared
libraries that FXRuby needs, but the error message in that case is
more descriptive than a simple “Bus Error”.

When I try require ‘fox’ in irb I get this message:

LoadError: No such file to load – fox
from (irb):1:in `require’
from (irb):1

But I take it that as long as I can get fox16 working then this won’t be
a problem.

Yeah, that’s OK. The feature name that you should be trying to require
is ‘fox16’.

I have trawled through website after website trying to find a fix to
this problem or some helpful information… I have have read a heap of
FXRuby documentation and some Ruby Documentation.

Thank you for doing all of that research on your own first. Like I
said, this is a new one to me, so you aren’t going to find anything
about it in the FXRuby documentation.

P.S: Here is a copy of what is writen to ruby1.8.crash.log:

I scanned the stack trace, and it looks like the FXRuby code was
trying to call an internal Ruby function (st_lookup) when it failed. I
have a hunch that that interface has changed a bit since Ruby 1.8.1
(which is several years old now).

My advice is to upgrade to the most recent version of Ruby (1.8.5),
and then recompile FXRuby and try again. You shouldn’t need to
recompile FOX – just zap your FXRuby build directory and recompile
that part.

Good luck,

Lyle


#3

Lyle J. wrote:

On 2/2/07, Zane removed_email_address@domain.invalid wrote:

I have spent a couple of days trying to get the Fox GUI library to
interact with ruby. Now I think I am getting close. Before I go on to
explain my problem here is some information that may be necessary…

Software Versions:

Ruby 1.8.1

Just curious: Why still running Ruby 1.8.1?

Abort trap
OK, that’s bad. When I say that’s bad, I mean, I don’t recall ever
seeing ruby outright crash when trying to load FXRuby. It’s more
common to see, for example, a failure to find one of the shared
libraries that FXRuby needs, but the error message in that case is
more descriptive than a simple “Bus Error”.

When I try require ‘fox’ in irb I get this message:

LoadError: No such file to load – fox
from (irb):1:in `require’
from (irb):1

But I take it that as long as I can get fox16 working then this won’t be
a problem.

Yeah, that’s OK. The feature name that you should be trying to require
is ‘fox16’.

I have trawled through website after website trying to find a fix to
this problem or some helpful information… I have have read a heap of
FXRuby documentation and some Ruby Documentation.

Thank you for doing all of that research on your own first. Like I
said, this is a new one to me, so you aren’t going to find anything
about it in the FXRuby documentation.

P.S: Here is a copy of what is writen to ruby1.8.crash.log:

I scanned the stack trace, and it looks like the FXRuby code was
trying to call an internal Ruby function (st_lookup) when it failed. I
have a hunch that that interface has changed a bit since Ruby 1.8.1
(which is several years old now).

My advice is to upgrade to the most recent version of Ruby (1.8.5),
and then recompile FXRuby and try again. You shouldn’t need to
recompile FOX – just zap your FXRuby build directory and recompile
that part.

Good luck,

Lyle

Thanks for the reply Lyle,

I did infact try to update to 1.8.5 but I receive an error message when
I try to “make install”. I run through the commands normally:
./configure
make test
>>I get a nice “test succeded”
make install

Make Install runs through a heap of stuff nicely but then stumbles on
this:

./miniruby ./ext/extmk.rb --dest-dir="" --make=“make” --mflags=""
–make-flags="" --extout=".ext" --extension --extstatic – install
cp -r ./.ext/. /usr/local/lib/ruby/1.8
/Users/ZaneV/Desktop/ruby-1.8.5-p12/lib/fileutils.rb:1239:in copy': unknown file type: ./.ext/. (RuntimeError) from /Users/ZaneV/Desktop/ruby-1.8.5-p12/lib/fileutils.rb:447:incopy_entry’
from
/Users/ZaneV/Desktop/ruby-1.8.5-p12/lib/fileutils.rb:1308:in traverse' from /Users/ZaneV/Desktop/ruby-1.8.5-p12/lib/fileutils.rb:445:incopy_entry’
from /Users/ZaneV/Desktop/ruby-1.8.5-p12/lib/fileutils.rb:423:in
cp_r' from /Users/ZaneV/Desktop/ruby-1.8.5-p12/lib/fileutils.rb:1379:infu_each_src_dest’
from
/Users/ZaneV/Desktop/ruby-1.8.5-p12/lib/fileutils.rb:1393:in
fu_each_src_dest0' from /Users/ZaneV/Desktop/ruby-1.8.5-p12/lib/fileutils.rb:1377:infu_each_src_dest’
from /Users/ZaneV/Desktop/ruby-1.8.5-p12/lib/fileutils.rb:422:in
`cp_r’
from ./ext/extmk.rb:389
make: *** [do-install-ext] Error 1

That has got me stumped… I went to the fileutils.rb script and checked
it out but I’m not exactly sure what I’m doing.

Has anyone else came across this error?

Also will I have to uninstal 1.8.1… or will 1.8.5 fix that?

Thanks,

Zane


#4

On 2/4/07, Zane V. removed_email_address@domain.invalid wrote:

Lyle J. wrote:
[…]

    from /Users/ZaneV/Desktop/ruby-1.8.5-p12/lib/fileutils.rb:445:in

/Users/ZaneV/Desktop/ruby-1.8.5-p12/lib/fileutils.rb:1377:in

Yes.

.ext is not created during the make process of ruby-1.8.5-p12 as it
does with ruby-1.8.4. Actually, I don’t understand why…


#5

On 2/4/07, Nicolas Desprès removed_email_address@domain.invalid wrote:

Make Install runs through a heap of stuff nicely but then stumbles on
this:

[…]

Has anyone else came across this error?

Yes.

.ext is not created during the make process of ruby-1.8.5-p12 as it
does with ruby-1.8.4. Actually, I don’t understand why…

I found why .ext is not created.

If you do:

./configure && make

then it is created, but if you do:

./configure && make test

it is not created.

So, you must do:

./configure && make && make test && make install

as stated by the README file.

I’m surprised by this behavior since generally the test rule depends
on the “build” rule.

Cheers,


#6

On 2/5/07, Zane V. removed_email_address@domain.invalid wrote:
[…]

Thanks Nicolas… that seems to work for me… though now “make install”
stops at this line:

cp -r ./.ext/. /usr/local/lib/ruby/1.8

Does this mean ruby 1.8.5 was installed successfuly, I thought it would
comment if it was installed successfuly. Or does this indicate another
problem?

No, that’s fine.

When I type:

ruby --version

It still prints out: 1.8.1.

Check that /usr/local/bin appears first in your PATH env var.

sure about the second directory (/usr/lib/ruby/1.8), wether it is new or
old.

You might be right. If you didn’t specify --prefix to the configure
script it uses /usr/local as default value.

Cheers,


#7

Nicolas Desprès wrote:

On 2/4/07, Nicolas Despr�s removed_email_address@domain.invalid wrote:

Make Install runs through a heap of stuff nicely but then stumbles on
this:

[…]

Has anyone else came across this error?

Yes.

.ext is not created during the make process of ruby-1.8.5-p12 as it
does with ruby-1.8.4. Actually, I don’t understand why…

I found why .ext is not created.

If you do:

./configure && make

then it is created, but if you do:

./configure && make test

it is not created.

So, you must do:

./configure && make && make test && make install

as stated by the README file.

I’m surprised by this behavior since generally the test rule depends
on the “build” rule.

Cheers,

Thanks Nicolas… that seems to work for me… though now “make install”
stops at this line:

cp -r ./.ext/. /usr/local/lib/ruby/1.8

Does this mean ruby 1.8.5 was installed successfuly, I thought it would
comment if it was installed successfuly. Or does this indicate another
problem?

When I type:

ruby --version

It still prints out: 1.8.1.

I have also noticed I have 3 ruby directories:

/sw/lib/ruby/1.8
/usr/lib/ruby/1.8
/usr/local/lib/ruby/1.8

The first directory (/sw/lib/ruby/1.8) I think is the original(1.8.1)
because I remeber seeing it there before attempting to install version
1.8.5. I know that the last directory (usr/local/lib/ruby/1.8) is the
new one which was created when attempting to install 1.8.5 and I am not
sure about the second directory (/usr/lib/ruby/1.8), wether it is new or
old.

Anyways, I am making a bit of progress now and thanks a lot for all your
help so far.

ZaneV