[ruby-list:43209] Re: ActiveTclのインストール
From:
HIiroshi Kasamatsu <qqmn89yb9@...>
Date:
2007-02-21 07:24:25 UTC
List:
ruby-list #43209
永井さん、笠松です。いつもありがとうございます。
同じ結果でした。
> お手数ですが,もう一度,新しいディレクトリにソースを展開しなおして
> configure から試してみて,それでもダメならその時の config.log の
> 先頭 15 行くらいと,ext/tk/mkmf.log とを見せていただけませんか?
> --
config.logの先頭部分です。
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.61. Invocation command line was
$ ./configure --with-tcl-dir=/usr/local/ActiveTcl-8.4/ --with-tk-dir=/usr/local/ActiveTcl-8.4/ --with-tcllib=tclstub8.4 --with-tklib=tkstub8.4 --enable-tcltk-stubs --enable-pthread
## --------- ##
## Platform. ##
## --------- ##
hostname = localhost.localdomain
uname -m = i686
uname -r = 2.4.31-0vl1.8
uname -s = Linux
uname -v = #1 2005年 9月 5日 月曜日 03:33:25 JST
以下、/ext/tk/mkmf.logです。お手数かけまして申し訳ございません。
have_library: checking for t_open() in -lnsl... -------------------- no
"gcc -o conftest -I../.. -I../../. -I../.././ext/tk -g -O2 conftest.c -L'../..' -rdynamic -Wl,-export-dynamic -lruby-static -lnsl -lpthread -ldl -lcrypt -lm -lc"
conftest.c: 関数 `t' 内:
conftest.c:3: error: `t_open' undeclared (first use in this function)
conftest.c:3: error: (Each undeclared identifier is reported only once
conftest.c:3: error: for each function it appears in.)
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { void ((*volatile p)()); p = (void ((*)()))t_open; return 0; }
/* end */
"gcc -o conftest -I../.. -I../../. -I../.././ext/tk -g -O2 conftest.c -L'../..' -rdynamic -Wl,-export-dynamic -lruby-static -lnsl -lpthread -ldl -lcrypt -lm -lc"
/tmp/ccWwZBnY.o(.text+0x17): In function `t':
/usr/local/src/ruby-1.8.6-preview1/ext/tk/conftest.c:3: undefined reference to `t_open'
collect2: ld はステータス 1 で終了しました
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { t_open(); return 0; }
/* end */
--------------------
have_library: checking for socket() in -lsocket... -------------------- no
"gcc -o conftest -I../.. -I../../. -I../.././ext/tk -g -O2 conftest.c -L'../..' -rdynamic -Wl,-export-dynamic -lruby-static -lsocket -lpthread -ldl -lcrypt -lm -lc"
conftest.c: 関数 `t' 内:
conftest.c:3: error: `socket' undeclared (first use in this function)
conftest.c:3: error: (Each undeclared identifier is reported only once
conftest.c:3: error: for each function it appears in.)
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { void ((*volatile p)()); p = (void ((*)()))socket; return 0; }
/* end */
"gcc -o conftest -I../.. -I../../. -I../.././ext/tk -g -O2 conftest.c -L'../..' -rdynamic -Wl,-export-dynamic -lruby-static -lsocket -lpthread -ldl -lcrypt -lm -lc"
/usr/bin/ld: cannot find -lsocket
collect2: ld はステータス 1 で終了しました
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { socket(); return 0; }
/* end */
--------------------
have_library: checking for dlopen() in -ldl... -------------------- yes
"gcc -o conftest -I../.. -I../../. -I../.././ext/tk -g -O2 conftest.c -L'../..' -rdynamic -Wl,-export-dynamic -lruby-static -ldl -lpthread -ldl -lcrypt -lm -lc"
conftest.c: 関数 `t' 内:
conftest.c:3: error: `dlopen' undeclared (first use in this function)
conftest.c:3: error: (Each undeclared identifier is reported only once
conftest.c:3: error: for each function it appears in.)
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { void ((*volatile p)()); p = (void ((*)()))dlopen; return 0; }
/* end */
"gcc -o conftest -I../.. -I../../. -I../.././ext/tk -g -O2 conftest.c -L'../..' -rdynamic -Wl,-export-dynamic -lruby-static -ldl -lpthread -ldl -lcrypt -lm -lc"
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { dlopen(); return 0; }
/* end */
--------------------
have_library: checking for log() in -lm... -------------------- no
"gcc -o conftest -I../.. -I../../. -I../.././ext/tk -g -O2 conftest.c -L'../..' -rdynamic -Wl,-export-dynamic -ldl -lruby-static -lm -ldl -lpthread -ldl -lcrypt -lm -lc"
conftest.c: 関数 `t' 内:
conftest.c:3: error: `log' undeclared (first use in this function)
conftest.c:3: error: (Each undeclared identifier is reported only once
conftest.c:3: error: for each function it appears in.)
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { void ((*volatile p)()); p = (void ((*)()))log; return 0; }
/* end */
"gcc -o conftest -I../.. -I../../. -I../.././ext/tk -g -O2 conftest.c -L'../..' -rdynamic -Wl,-export-dynamic -ldl -lruby-static -lm -ldl -lpthread -ldl -lcrypt -lm -lc"
conftest.c: 関数 `t' 内:
conftest.c:3: error: too few arguments to function `log'
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { log(); return 0; }
/* end */
--------------------
have_header: checking for tcl.h... -------------------- yes
"gcc -E -I../.. -I../../. -I../.././ext/tk -I/usr/local/ActiveTcl-8.4//include -g -O2 conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include <tcl.h>
/* end */
--------------------
have_header: checking for tk.h... -------------------- no
"gcc -E -I../.. -I../../. -I../.././ext/tk -I/usr/local/ActiveTcl-8.4//include -g -O2 conftest.c -o conftest.i"
conftest.c:1 から include されたファイル中:
/usr/local/ActiveTcl-8.4/include/tk.h:83:29: X11/Xlib.h: そのようなファイルやディレクトリはありません
checked program was:
/* begin */
1: #include <tk.h>
/* end */
--------------------