From: Yasuhide Yano Date: 2000-04-27T00:39:43+09:00 Subject: [ruby-list:22145] Ruby 1.4.3 と Ruby/GTK 0.23 の make に失敗 矢野です。 Ruby 1.4.3 と Ruby/GTK 0.23 の make に失敗にします。 環境 NEC PC-9821Xe10 Plamo Linux 1.4.5 改訂版PC UNIXユーザーのためのPostgreSQL付録CD-ROM Ruby 1.4.3 (私が入手したときには最新版でした。) Ruby/GTK 0.23 (私が入手したときには最新版でした。) インストール手順 おすすめ かんなデスクトップでインストール root でログイン contrib/Gimp の gimp.tgz と gtk.tgz を pkgtool でインストール gimp の動作を確認 dot.gimp.tar を tar で、ホームディレクトリに展開 cd /usr/src/linux; make symlinks を実行 Ruby 1.4.3 を展開 1. configureを実行してMakefileなどを生成する 4. makeを実行してコンパイルする gcc -g -O2 -I. -I. -I/usr/local/include -c dir.c dir.c:228: parse error before `DIR' dir.c:228: warning: data definition has no type or storage class dir.c:229: parse error before `{' dir.c: In function `dir_s_open': dir.c:240: `DIR' undeclared (first use in this function) dir.c:240: (Each undeclared identifier is reported only once dir.c:240: for each function it appears in.) dir.c:240: `dirp' undeclared (first use in this function) dir.c:255: `free_dir' undeclared (first use in this function) dir.c: In function `dir_read': dir.c:279: `DIR' undeclared (first use in this function) dir.c:279: `dirp' undeclared (first use in this function) dir.c:280: parse error before `struct' dir.c:282: parse error before `)' dir.c:284: `dp' undeclared (first use in this function) dir.c: In function `dir_each': dir.c:300: `DIR' undeclared (first use in this function) dir.c:300: `dirp' undeclared (first use in this function) dir.c:301: parse error before `struct' dir.c:304: parse error before `)' dir.c:305: `dp' undeclared (first use in this function) dir.c:306: `file' undeclared (first use in this function) dir.c: In function `dir_tell': dir.c:317: `DIR' undeclared (first use in this function) dir.c:317: `dirp' undeclared (first use in this function) dir.c:318: parse error before `long' dir.c:320: parse error before `)' dir.c:321: `pos' undeclared (first use in this function) dir.c: In function `dir_seek': dir.c:332: `DIR' undeclared (first use in this function) dir.c:332: `dirp' undeclared (first use in this function) dir.c:335: parse error before `)' dir.c: In function `dir_rewind': dir.c:347: `DIR' undeclared (first use in this function) dir.c:347: `dirp' undeclared (first use in this function) dir.c:349: parse error before `)' dir.c: In function `dir_close': dir.c:358: `DIR' undeclared (first use in this function) dir.c:358: `dirp' undeclared (first use in this function) dir.c:360: parse error before `)' dir.c: In function `glob': dir.c:561: `DIR' undeclared (first use in this function) dir.c:561: `dirp' undeclared (first use in this function) dir.c:562: parse error before `struct' dir.c:567: `tmp' undeclared (first use in this function) dir.c:567: `link' undeclared (first use in this function) dir.c:569: `base' undeclared (first use in this function) dir.c:570: warning: assignment from incompatible pointer type dir.c:578: `magic' undeclared (first use in this function) dir.c:579: `dp' undeclared (first use in this function) dir.c:589: sizeof applied to an incomplete type dir.c: At top level: dir.c:617: parse error before `}' make: *** [dir.o] Error 1 上記のエラーが発生、その前はコンパイルが出来ていました。 make に失敗したので、 contrib/Develop の ruby142.tgz を pkgtool でインストール ruby extconf.rb make make[1]: Entering directory `/usr/soft/inet/mail/sgmail/gtk-0.23/src' cc -fPIC -I/usr/local/lib/ruby/1.4/i586-linux -g -O2 -I/usr/lib/glib/include -I/usr/local/include -DHAVE_XREADBITMAPFILEDATA -c global.c -o global.o make[1]: Leaving directory `/usr/soft/inet/mail/sgmail/gtk-0.23/src' In file included from global.c:14: global.h:205: parse error before `*' global.h:207: parse error before `*' global.h:207: warning: data definition has no type or storage class global.h:209: parse error before `*' global.h:215: parse error before `*' global.h:216: parse error before `*' global.h:216: warning: data definition has no type or storage class global.h:295: parse error before `*' global.c: In function `arg_to_value': global.c:170: `GTK_TYPE_CTREE_NODE' undeclared (first use this function) global.c:170: (Each undeclared identifier is reported only once global.c:170: for each function it appears in.) make[1]: *** [global.o] Error 1 make: *** [all] Error 2 上記のエラーが発生 Ruby 1.4.3 と Ruby/GTK 0.23 の同じファイルを、Vine 1.1 で、 make してみましたが、こちらは正常に出来ました。 入手したファイルが壊れている可能性は少ないと思います。 一番、お聞きしたいのですが、 おすすめ かんなデスクトップでインストールしただけでは、 make できる環境は出来ないのでしょうか? # 特別な作業は何もせず、ごく普通にインストールしたのですが、 # これで、開発環境も出来ると思っていたのですが。 他に何か、作業が必要でしょうか? 例えば、手動で cd /usr/src/linux; make symlinks を実行するとか? これは実行しましたが。 環境が壊れている可能性もあったので、 ハードディスクをフォーマットして、 Plamo Linux を2度、 入れ直したり、contrib/Develop 以下のファイルを pkgtool で、 インストールしましたが、結果はかわりませんでした。 # 改訂版UNIXユーザーのためのPostgreSQL付録CD-ROMに # 不具合があるのでしょうか? では。 -- お休み Z 矢野 康秀 岐阜県大垣市 z http://www.mirai.ne.jp/~yasuhi/ml/ ●⌒⌒● z yasuhide@aa.uno.ne.jp — 中継 LIVE → / 〜^〜 \ yasuhi@he.mirai.ne.jp,yasuhi@yellow.plala.or.jp │ │- -│ │ │ \ / │ 〜/ \〜