[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[plamo:05917] glib & gtk+-1.2.7



梶原です。
2.0β5使ってます。

glibと gtk+の 1.2.7をインストールしようとしています。
glibは問題なくインストールできたのですが、gtk+を ./configure
すると、glibのバージョンチェックではじかれます。
>kajiwara@neonx02# ./configure --prefix=/usr
snip
>checking for GLIB - version >= 1.2.7... no
>*** Could not run GLIB test program, checking why...
>*** The test program compiled, but did not run. This usually means
>*** that the run-time linker is not finding GLIB or finding the wrong
>*** version of GLIB. If it is not finding GLIB, you'll need to set your
>*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
>*** to the installed location  Also, make sure you have run ldconfig if that
>*** is required on your system
>***
>*** If you have an old version installed, it is best to remove it, although
>*** you may also be able to get things to work by modifying LD_LIBRARY_PATH
>***
>*** If you have a RedHat 5.0 system, you should remove the GTK package that
>*** came with the system with the command
>***
>***    rpm --erase --nodeps gtk gtk-devel
>configure: error:
>*** GLIB 1.2.7 or better is required. The latest version of GLIB
>*** is always available from ftp://ftp.gtk.org/.

config.logの最後は以下のようになっていて、
>configure:4436: gcc -o conftest -g -O2 -Wall -I/usr/lib/glib/include -D_REENTRAN
>T   conftest.c   -L/usr/lib -rdynamic -lgmodule -lgthread -lglib -lpthread -ldl
>1>&5
ログファイル中のソースを上記のとおり手動でコンパイルして実行
したら Segmentation faultしました。

試行錯誤の結果、-lpthreadをはずすと正常に実行できることを発
見し、それではと glibを --disable-threadsでコンパイル、イン
ストールしてみたら、gtk+も正常に configure、コンパイルできま
した。

pthreadは使えないのでしょうか。それともβのとれた 2.0だと大
丈夫?
#僕がおかしなことやってる可能性も高いけど(^^;

ちなみに自宅では 98ですが、会社の AT互換機でも発生します。

#[plamo:05897]も原因についての情報募集中(;;)
-- 
梶原 淳 (Atsushi Kajiwara) mailto:kajiwara@neo-sys.co.jp
mailto:kajiwara@chldren.net mailto:kajiwara@mio.org

Follow-Ups
[plamo:05918] Re: glib & gtk+-1.2.7, Yohei Osaki
[plamo:05920] Re: glib & gtk+-1.2.7, Hiroshi Futami

[検索ページ] [メール一覧]
Plamo ML 公開システム