From: schneik@... Date: 2000-09-01T16:37:40+09:00 Subject: [ruby-talk:4720] ruby 1.6.0 preview Hi, On AIX 4.3 with VAC compiler, I got the following warnings: .... cc -g -I. -I. -I/usr/local/include -c util.c "config.h", line 2.9: 1506-236 (W) Macro name _ALL_SOURCE has been redefined. "config.h", line 2.9: 1506-358 (I) "_ALL_SOURCE" is defined on line 111 of /usr/include/standards.h. .... /usr/ccs/bin/ld -brtl -eInit_socket -bI:/driver/tools/src/ruby/ruby-1.6.0/ruby.imp -bM:SRE -T512 -H512 -lc -L/usr/local/lib -o socket.so socket.o getaddrinfo.o getnameinfo.o -lc ld: 0711-224 WARNING: Duplicate symbol: .gai_strerror ld: 0711-224 WARNING: Duplicate symbol: gai_strerror .... I found the following problem: xxxxxxxx/src/ruby/ruby-tk81-demos # ruby widget Segmentation fault(coredump) xxxxxxxx/src/ruby/ruby-tk81-demos # ruby -v ruby 1.6.0 (2000-08-31) [rs6000-aix4.3.2.0] The segfault happens when clicking on the first widget demo after the main window displays itself. Other Ruby/Tk things like "ruby timer" and "ruby rolodex" work OK. The widget demo still works with ruby 1.5.5 (2000-08-02) [rs6000-aix4.3.2.0]. AFAIK, this version of widget should be identical to the (English) RAA version. I thought I would try running with -w and got a somewhat different failure message: xxxxxxxx/src/ruby/ruby-tk81-demos # ruby -w widget widget:71: warning: `*' interpreted as argument prefix widget:92: warning: `*' interpreted as argument prefix widget:428: warning: `*' interpreted as argument prefix widget:448: warning: `*' interpreted as argument prefix widget:449: warning: `*' interpreted as argument prefix widget:458: warning: rowconfigure (...) interpreted as method call /usr/local/lib/ruby/1.6/tk.rb:809: warning: instance variable @encoding not initialized /usr/local/lib/ruby/1.6/tk.rb:1389: warning: redefine useinputmethods /usr/local/lib/ruby/1.6/tk.rb:1405: warning: discarding old useinputmethods /usr/local/lib/ruby/1.6/tkfont.rb:388: warning: instance variable @compoundfont not initialized /usr/local/lib/ruby/1.6/tk.rb:2299: warning: instance variable @classname not initialized /usr/local/lib/ruby/1.6/tk.rb:2300: warning: instance variable @colormap not initialized /usr/local/lib/ruby/1.6/tk.rb:2301: warning: instance variable @container not initialized /usr/local/lib/ruby/1.6/tk.rb:2302: warning: instance variable @visual not initialized /usr/local/lib/ruby/1.6/tk.rb:246: warning: instance variable @cmdtbl not initialized /usr/local/lib/ruby/1.6/tk.rb:2869: warning: instance variable @delegates not initialized /usr/local/lib/ruby/1.6/tk.rb:246: warning: instance variable @cmdtbl not initialized /usr/local/lib/ruby/1.6/tk.rb:2299: warning: instance variable @classname not initialized /usr/local/lib/ruby/1.6/tk.rb:2300: warning: instance variable @colormap not initialized /usr/local/lib/ruby/1.6/tk.rb:2301: warning: instance variable @container not initialized /usr/local/lib/ruby/1.6/tk.rb:2302: warning: instance variable @visual not initialized /usr/local/lib/ruby/1.6/tk.rb:246: warning: instance variable @cmdtbl not initialized /usr/local/lib/ruby/1.6/tk.rb:246: warning: instance variable @cmdtbl not initialized /usr/local/lib/ruby/1.6/tk.rb:2299: warning: instance variable @classname not initialized /usr/local/lib/ruby/1.6/tk.rb:2300: warning: instance variable @colormap not initialized /usr/local/lib/ruby/1.6/tk.rb:2301: warning: instance variable @container not initialized /usr/local/lib/ruby/1.6/tk.rb:2302: warning: instance variable @visual not initialized /usr/local/lib/ruby/1.6/tkfont.rb:388: warning: instance variable @compoundfont not initialized /usr/local/lib/ruby/1.6/tkfont.rb:435: warning: instance variable @compoundfont not initialized /usr/local/lib/ruby/1.6/tkfont.rb:388: warning: instance variable @compoundfont not initialized /usr/local/lib/ruby/1.6/tkfont.rb:435: warning: instance variable @compoundfont not initialized /usr/local/lib/ruby/1.6/tk.rb:246: warning: instance variable @cmdtbl not initialized Catastrophe in realloc: invalid storage ptr IOT/Abort trap(coredump) These are pretty much the same warnings that ruby1.5.5 gives. (Note to self: get back in the Perl habit of always using -w!!!!) Conrad Schneiker (This note is unofficial and subject to improvement without notice.)