From: WATANABE Hirofumi Date: 2003-09-30T19:21:36+09:00 Subject: [ruby-dev:21447] Re: Makefile.inのlex.c わたなべです。 Kazuhiro NISHIYAMA writes: > > 今のままだとビルドディレクトリを別にしたときに、OpenBSDでは > > gperfが必須になります(FreeBSDではデフォルトでインストールさ > > れる)。 > > 一度makeが止まっただけで、そのままビルドディレクトリに0バイトの > lex.cがある状態でmakeをもう一度実行すると問題なくmake出来たので > 必須ではないと思います。 gcc 2.95.3ではエラーになりませんが、gcc 3ではカレントのlex.c がincludeされるためエラーになります。 % ls -l lex.c -rw-r--r-- 1 watanabe ruby 0 Sep 30 19:14 lex.c % make egcc -Os -fPIC -I. -I../ruby -c parse.c ../ruby/parse.y: In function `ruby_yylex': ../ruby/parse.y:4346: warning: assignment makes pointer from integer without a cast ../ruby/parse.y:4349: dereferencing pointer to incomplete type ../ruby/parse.y:4351: dereferencing pointer to incomplete type ../ruby/parse.y:4353: dereferencing pointer to incomplete type ../ruby/parse.y:4362: dereferencing pointer to incomplete type ../ruby/parse.y:4364: dereferencing pointer to incomplete type ../ruby/parse.y:4364: dereferencing pointer to incomplete type ../ruby/parse.y:4366: dereferencing pointer to incomplete type *** Error code 1 Stop in /home/watanabe/ruby/opensbd. % gcc -I. -I../ruby -E parse.c|grep 'lex\.c' # 1 "../ruby/lex.c" 1 % egcc -I. -I../ruby -E parse.c|grep 'lex\.c' # 1 "lex.c" 1 % gcc -dumpversion 2.95.3 % egcc -dumpversion 3.2.2 -- わたなべひろふみ