--Apple-Mail-1-45517923 Content-Type: text/plain; charset O-2022-JP; format竟wed; delsp テュヤュナコ キ 天野です。 extconf.rbへのpatch確かめました。OKです。 10.3.9+ruby-1.8.7-p22+8.5.2binaryのmakeエラーは以下のよ うになります。 -------------------------------------------------------------- compiling tk ***************************************************************************** ** ** PTHREAD SUPPORT MODE WARNING: ** ** Ruby is compiled with --enable-pthread, but your Tcl/Tk library ** seems to be compiled without pthread support. Although you can ** create the tcltklib library, this combination may cause errors ** (e.g. hangs or segmentation faults). If you have no reason to ** keep the current pthread support status, we recommend you reconfigure ** and recompile the libraries so that both or neither support pthreads. ** ** If you want change the status of pthread support, please recompile ** Ruby without "--enable-pthread" configure option or recompile Tcl/ Tk ** with "--enable-threads" configure option (if your Tcl/Tk is later ** than or equal to Tcl/Tk 8.1). ** ***************************************************************************** gcc -I. -I../.. -I../../. -I../.././ext/tk -DHAVE_TCL_H -DHAVE_TK_H - DHAVE_RB_HASH_LOOKUP -DRUBY_VERSION 1.8.7\" -DRUBY_RELEASE_DATE \"2008-06-20\" -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/Library/ Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/ Headers -DWITH_TCL_ENABLE_THREAD -fno-common -g -O2 -fno-common - pipe -fno-common -c stubs.c gcc -I. -I../.. -I../../. -I../.././ext/tk -DHAVE_TCL_H -DHAVE_TK_H - DHAVE_RB_HASH_LOOKUP -DRUBY_VERSION 1.8.7\" -DRUBY_RELEASE_DATE \"2008-06-20\" -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/Library/ Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/ Headers -DWITH_TCL_ENABLE_THREAD -fno-common -g -O2 -fno-common - pipe -fno-common -c tcltklib.c cc -dynamic -bundle -undefined suppress -flat_namespace -o ../../.ext/ powerpc-darwin7.9.0/tcltklib.bundle stubs.o tcltklib.o -L. -L../.. - L. -framework Tk -framework Tcl -lruby -ldl -lpthread -ldl -lobjc ld: Undefined symbols: _copyfile referenced from Tcl expected to be defined in libSystem _OSSpinLockLock referenced from Tcl expected to be defined in libSystem _OSSpinLockTry referenced from Tcl expected to be defined in libSystem _OSSpinLockUnlock referenced from Tcl expected to be defined in libSystem _pthread_atfork referenced from Tcl expected to be defined in libSystem _HIThemeSetFill referenced from Tk expected to be defined in Carbon _HIThemeSetStroke referenced from Tk expected to be defined in Carbon _HIThemeSetTextFill referenced from Tk expected to be defined in Carbon _CGContextFillEllipseInRect referenced from Tk expected to be defined in Carbon _CGContextStrokeEllipseInRect referenced from Tk expected to be defined in Carbon _HIShapeCreateEmpty referenced from Tk expected to be defined in Carbon _HIShapeIntersectsRect referenced from Tk expected to be defined in Carbon _HIWindowGetProxyFSRef referenced from Tk expected to be defined in Carbon _HIWindowSetProxyFSRef referenced from Tk expected to be defined in Carbon make[1]: *** [../../.ext/powerpc-darwin7.9.0/tcltklib.bundle] Error 1 make: *** [all] Error 1 ------------------------------------------------------------------------------ ActiveTcl-8.5.2とTclTkAqua-8.5.2は、どちらもthreaded です。 > また,以前のメールに記載されていた CFLAGS > D_XOPEN_SOURCEは > どのような環境では必要なのか (必要とされたの > か) も > わかりましたら教えてください. これは、[ruby-dev:33461] 以下のスレを見て、自分の環境で 試したところ、 10.5.xの環境+PowerPCMacでは、CFLAGS D_XOPEN_SOURCE$B$,$J$$$H1.8 .xは、makeでこけるとわかったということです。 > > TclTkAqua-8.4.10だとエラーはおきません。ただし、tk/sample/demos- > jp/widget > は、漢字の部分が文字です。 TclTkAquaのwishは、英語なので、日本語の説明はありません が、unicodeのサンプルは文字しています。 > > Tk_MacOSXSetupTkNotifier: first [load] of TkAqua has to occur in the > main thread! > Abort trap 上記用のpatchを当てても同じ結果です。 10.5.3環境で、8.5.2をスからインストールした 後、patchを当てて1.9.0-2をインストールしても同じ 結果でした。 Ryutaro Amano wn9r-amn / asahi-net.or.jp --Apple-Mail-1-45517923--