[#21338] $SAFE=4 での autoload — Hidetoshi NAGAI <nagai@...>

永井@知能.九工大です.

21 messages 2003/09/04
[#21346] Re: $SAFE=4 での autoload — nobu.nakada@... 2003/09/04

なかだです。

[#21359] Re: $SAFE=4 での autoload — Hidetoshi NAGAI <nagai@...> 2003/09/05

永井@知能.九工大です.

[#21419] Makefile.inのlex.c — Kazuhiro NISHIYAMA <zn@...>

西山和広です。

15 messages 2003/09/28

[ruby-dev:21447] Re: Makefile.inのlex.c

From: WATANABE Hirofumi <eban@...>
Date: 2003-09-30 10:21:36 UTC
List: ruby-dev #21447
わたなべです。

Kazuhiro NISHIYAMA <zn@mbf.nifty.com> 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

-- 
わたなべひろふみ

In This Thread