From: Paul.Sue@... (Paul) Date: 2004-01-09T07:06:40+09:00 Subject: tcltk_stubs init error (was problems compiling ruby 1.8.1 on AIX 4.3.3 AND 5.1) OK, I finally got it to compile .. had to undef some stuff. Running some basic ruby scripts seems to work, but the tcl/tk module seems broken: /home/ivr_tools/local/lib/ruby/1.8/powerpc-aix4.3.3.0/tcltklib.so: tcltklib: tcltk_stubs init error(-1) (LoadError) from /home/ivr_tools/local/lib/ruby/1.8/tk.rb:7 from ./tkballoonhelp.rb:13:in `require' from ./tkballoonhelp.rb:13 During the build of ext/tcltklib and ext/tk, I saw no warnings or errors. Any ideas? Thanks, Paul nobu.nokada@softhome.net wrote in message news:<200401070454.i074sweJ013303@sharui.nakada.kanuma.tochigi.jp>... > Hi, > > At Wed, 7 Jan 2004 04:26:42 +0900, > Paul wrote: > > > > /usr/ccs/bin/ld -brtl -eInit_rmd160 -bI:/home/paul/ruby-1.8.1/ruby.imp -bM:SRE > > > > -T512 -H512 -lc -L"/home/paul/ruby-1.8.1" > > > > -L"/u/dtalkwiz/psue/local/lib" -o rmd160.so rmd160init.o rmd160.o rmd160hl.o > > > > -ldl -lcrypt -lm -lc > > > > ld: 0711-317 ERROR: Undefined symbol: .__eprintf > > > > ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. > > > > > > Have you installed required stuff (libraries etc.) properly? > > > > What required libraries?? > > I'm not sure what you need to use pthread on AIX. > > > * on AIX 4.3.3/GCC I get: > > /usr/ccs/bin/ld -brtl -eInit_rmd160 -bI:/home/paul/ruby-1.8.1/ruby.imp > > -bM:SRE > > -T512 -H512 -lc -L"/home/paul/ruby-1.8.1" > > -L"/u/dtalkwiz/psue/local/lib" -o rmd160.so rmd160init.o rmd160.o > > rmd160hl.o > > -ldl -lcrypt -lm -lc > > ld: 0711-317 ERROR: Undefined symbol: .__eprintf > > This symbol is for assert()? > > > * on {AIX 4.3.3/5.1} / IBM VAC I get: > > > > "/home/paul/ruby-1.8.1/ruby.h", line 65.1: 1506-224 (I) Incorrect > > #pragma ignored. > > #pragma alloca is valid for only gcc? > > > /usr/ccs/bin/ld -brtl -eInit_curses > > -bI:/home/paul/ruby-1.8.1/ruby.imp -bM:SRE -T512 -H512 -lc > > -L"/home/paul/ruby-1.8.1" -L"/home/paul/local/lib" -o curses.so > > curses.o -lcurses -ldl -lcrypt -lm -lc > > ld: 0711-317 ERROR: Undefined symbol: .wresize > > ld: 0711-317 ERROR: Undefined symbol: .resizeterm > > I have no idea why extconf detected them but ld failed. Can > you show mkmf.rb under ext/curses?