
Ubuntu日本語フォーラム

ログインしていません。
シナプティックにはありませんでした。
のでダウンロードして./configureまではうまくいった(と思います)がmakeしたらこの様です。
yamadatarou@yamadatarou-laptop:~/lilfes-1.096$ make
Making all in src
make[1]: ディレクトリ `/home/yamadatarou/lilfes-1.096/src' に入ります
c++ -DHAVE_CONFIG_H -DPKGDATADIR="\"/usr/local/share/lilfes\"" -I. -I/usr/local/include -Wno-deprecated -g -O2 -fstrict-aliasing -W -Wall -c yacc.cc
initial.h:109: 警告: ‘class InitTermBase’ has virtual functions but non-virtual destructor
initial.h:151: 警告: ‘class Initializer’ has virtual functions but non-virtual destructor
initial.h:193: 警告: ‘class Terminator’ has virtual functions but non-virtual destructor
initial.h:237: 警告: ‘class InitFunction’ has virtual functions but non-virtual destructor
initial.h:273: 警告: ‘class TermFunction’ has virtual functions but non-virtual destructor
codelist.h:41: 警告: unused parameter ‘place’
codelist.h:41: 警告: unused parameter ‘len’
codelist.h:43: 警告: unused parameter ‘l’
codelist.h:122: 警告: unused parameter ‘cl’
parse.h:81: 警告: unused parameter ‘flg’
parse.h:81: 警告: unused parameter ‘info’
flex -8 `test -f lex.ll || echo './'`lex.ll
Converting flex output lex.yy.c to lex.cc.
rm -f lex.yy.c
Patching FlexLexer.h.
c++ -DHAVE_CONFIG_H -DPKGDATADIR="\"/usr/local/share/lilfes\"" -I. -I/usr/local/include -Wno-deprecated -g -O2 -fstrict-aliasing -W -Wall -c lex.cc
initial.h:109: 警告: ‘class InitTermBase’ has virtual functions but non-virtual destructor
initial.h:151: 警告: ‘class Initializer’ has virtual functions but non-virtual destructor
initial.h:193: 警告: ‘class Terminator’ has virtual functions but non-virtual destructor
initial.h:237: 警告: ‘class InitFunction’ has virtual functions but non-virtual destructor
initial.h:273: 警告: ‘class TermFunction’ has virtual functions but non-virtual destructor
lex.ll:16: 警告: ‘rcsid’ defined but not used
c++ -DHAVE_CONFIG_H -DPKGDATADIR="\"/usr/local/share/lilfes\"" -I. -I/usr/local/include -Wno-deprecated -g -O2 -fstrict-aliasing -W -Wall -c assoc.cpp
initial.h:109: 警告: ‘class InitTermBase’ has virtual functions but non-virtual destructor
initial.h:151: 警告: ‘class Initializer’ has virtual functions but non-virtual destructor
initial.h:193: 警告: ‘class Terminator’ has virtual functions but non-virtual destructor
initial.h:237: 警告: ‘class InitFunction’ has virtual functions but non-virtual destructor
initial.h:273: 警告: ‘class TermFunction’ has virtual functions but non-virtual destructor
n1fsp.h: In function ‘fsptr write_cdata(const std::map<A, B, std::less<_Key>, std::allocator<std::pair<const _Key, _Tp> > >&)’:
n1fsp.h:221: error: expected `;' before ‘it’
n1fsp.h:222: error: ‘it’ was not declared in this scope
n1fsp.h: In function ‘fsptr write_cdata(const std::set<T, std::less<_Key>, std::allocator<_CharT> >&)’:
n1fsp.h:251: error: expected `;' before ‘it’
n1fsp.h:252: error: ‘it’ was not declared in this scope
assoc.cpp: In constructor ‘fsvector::fsvector(const fsp&)’:
assoc.cpp:44: 警告: unused variable ‘LIMIT_CHECK_INTERVAL’
assoc.cpp: In member function ‘void _bi_assoc_save::execwork_internal(fsp*)’:
assoc.cpp:564: 警告: 符合付きと符合無しの整数式同士の比較です
assoc.cpp: In member function ‘virtual bool _bi_assoc_load::execwork_internal(machine&, FSPointer)’:
assoc.cpp:599: 警告: 符合付きと符合無しの整数式同士の比較です
assoc.cpp: At global scope:
assoc.cpp:589: 警告: unused parameter ‘m’
assoc.cpp: In member function ‘virtual bool _bi_assoc_load_2::execwork_internal(machine&, FSPointer, FSPointer)’:
assoc.cpp:649: 警告: 符合付きと符合無しの整数式同士の比較です
assoc.cpp: At global scope:
assoc.cpp:637: 警告: unused parameter ‘m’
n1fsp.h: In function ‘fsptr write_cdata(const std::map<A, B, std::less<_Key>, std::allocator<std::pair<const _Key, _Tp> > >&) [with A = fsvector, B = fsvector]’:
assoc.cpp:534: instantiated from here
n1fsp.h:214: 警告: 符合付きと符合無しの整数式同士の比較です
n1fsp.h:221: error: dependent-name ‘std::map<A,B,std::less<_Key>,std::allocator<std::pair<const _Key, _Tp> > >::const_iterator’ is parsed as a non-type, but instantiation yields a type
n1fsp.h:221: note: say ‘typename std::map<A,B,std::less<_Key>,std::allocator<std::pair<const _Key, _Tp> > >::const_iterator’ if a type is meant
make[1]: *** [assoc.o] エラー 1
make[1]: ディレクトリ `/home/yamadatarou/lilfes-1.096/src' から出ます
make: *** [all-recursive] エラー 1
なんですか?この警告?いっぱい、あるんですが・・・(涙)
自分なりに考えてみたのですが、さっぱりです。見当もつかない自分自身にがっかりです。
お願いします。どうか教えてください!
オフライン
質問ですが
1. "lilfes"とは何でしょうか
2. ソースはどこから取ってきたものでしょうか
http://www-tsujii.is.s.u-tokyo.ac.jp/lilfes/index-j.html
のことでしょうか。
エラーはおそらく必要なツールが入っていないからだと思います。.configureがうまくいった、という状況も本当にそうなのか、どのように判断されたのか不明です。不足ツールがあると警告していないでしょうか。
オフライン
おっしゃる通りでした。./configureを見直したら
yamadatarou@yamadatarou-laptop:~/lilfes-1.096$ ./configure
loading cache ./config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... missing
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -Wl,-rpath -Wl,/usr/local/lib) works... yes
checking whether the C compiler (gcc -Wl,-rpath -Wl,/usr/local/lib) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) /lib/cpp
checking for c++... (cached) c++
checking whether the C++ compiler (c++ -Wl,-rpath -Wl,/usr/local/lib) works... yes
checking whether the C++ compiler (c++ -Wl,-rpath -Wl,/usr/local/lib) is a cross-compiler... no
checking whether we are using GNU C++... (cached) yes
checking whether c++ accepts -g... (cached) yes
checking how to run the C++ preprocessor... (cached) c++ -E
checking for perl... (cached) perl
checking for cygwin environment... (cached) no
checking for bison... no
checking for byacc... no
checking for flex... (cached) flex
checking for flex... (cached) flex
checking for yywrap in -lfl... (cached) yes
checking lex output file root... (cached) lex.yy
checking whether yytext is a pointer... (cached) yes
checking for a BSD compatible install... /usr/bin/install -c
checking whether make sets ${MAKE}... (cached) yes
checking for main in -lfl... (cached) yes
checking for main in -lkstat... (cached) no
checking for main in -lnsl... (cached) yes
checking for socket in -lsocket... (cached) no
checking for main in -lwsock32... (cached) no
checking for gzopen in -lz... (cached) no
checking for ANSI C header files... (cached) no
checking for sys/wait.h that is POSIX.1 compatible... (cached) yes
checking for fcntl.h... (cached) yes
checking for limits.h... (cached) yes
checking for malloc.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking for sys/ioctl.h... (cached) yes
checking for unistd.h... (cached) yes
checking for cstring.h... (cached) no
checking for sys/time.h... (cached) yes
checking for sys/resource.h... (cached) yes
checking for netinet/tcp.h... (cached) yes
checking for arpa/inet.h... (cached) yes
checking for windows.h... (cached) no
checking for winsock.h... (cached) no
checking for search.h... (cached) yes
checking for hash_map... (cached) no
checking for ext/hash_map... (cached) yes
checking for sstream... (cached) yes
checking for FlexLexer.h... (cached) yes
checking for working const... (cached) yes
checking for inline... (cached) inline
checking whether byte ordering is bigendian... (cached) no
checking for working alloca.h... (cached) yes
checking for alloca... (cached) yes
checking for size_t... (cached) yes
checking size of int... (cached) 4
checking whether c++ accepts namespace... (cached) yes
checking whether c++ accepts -fstrict-aliasing... (cached) yes
checking whether c++ accepts -W -Wall... (cached) yes
checking for strstr... (cached) yes
checking for kill... (cached) yes
checking for getpgrp... (cached) yes
checking for getpgid... (cached) yes
checking for getpid... (cached) yes
checking for getppid... (cached) yes
checking for lfind... (cached) yes
checking for lsearch... (cached) yes
checking for reinterpret_cast... (cached) yes
checking which type the 3rd argument of accept() uses... (cached) socklen_t
checking whether to use GDBM library... yes
checking for gdbm_open in -lgdbm... (cached) yes
checking whether gdbm.h need patch... (cached) yes
checking whether to use Berkeley DB library... no
checking whether to use Regex library... yes
checking for regex.h... (cached) yes
checking whether to use assoc library... yes
checking for complex templates... (cached) yes
checking whether to use TNT parser... yes
checking 'whether to use incr tsdb()'... no
checking whether to enable profiling... 1
checking whether to enable passive profiling... yes
checking whether to enable memory checking... yes
checking whether to enable complex constraints... yes
checking whether to enable type table hash... yes
checking whether to enable TNT rule table hash... no
checking whether to enable hash profiling... no
checking whether to enable unification profiling... no
checking whether to enable copying profiling... no
checking whether to enable compiled unification... yes
checking whether to enable block copying... yes
checking whether to enable extended instructions... yes
checking whether to enable debugging... no
checking whether to enable debug memory... no
checking whether to enable debug label... yes
checking whether to enable string gc... yes
checking whether to enable assertions... no
creating ./config.status
creating Makefile
creating src/Makefile
creating lillib/Makefile
creating config/Makefile
creating manual/Makefile
creating elisp/Makefile
creating src/config.h
src/config.h is unchanged
となっていてちゃん最後に
./configur is unchanged とありました。
lilfesとはgmaxさんがおっしゃる通りのサイトからとってきたものです。
これはもしや
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... missing
このあたりが関係しているのでしょうか?何かがみつかってないのでしょうか?
また
checking whether the C compiler (gcc -Wl,-rpath -Wl,/usr/local/lib) is a cross-compiler... no
これはクロスコンパイラーがないということでしょうか?
他にもnoが結構ありますがどういう意味なのかはいまいちわかりません。
どうかお願いします。再度よろしくお願いします。
オフライン
lilfesというのは知らなかったのですが、本家らしいサイトでちょっと拝見した所、yamadatarouさんがインストールしようとされているものは
ちょっと古いような気がします。
http://www-tsujii.is.s.u-tokyo.ac.jp/downloads/files/lilfes/
こちらから最新版らしいliblilfes-1.3.3.tar.gz をダウンロードして再挑戦してみると変わるかもしれません。
なお、いちおう中のREADMEを読んでみましたが、特に別途なんらかのライブラリ等が必要とは書いてありませんでした。
オフライン
さっそくのお返事ありがとうございます。
私がlilfesをインストールしたいのは言い換えエンジンKURAというのをパソコンにインストールしたいためです。そこでここのサイトを参考にしていますhttp://www.cdl.im.dendai.ac.jp/~takahasi/kura/kurainstall.htmlここのサイトによれば、lilfes-1.096でなければ、KURAはうまく動作しないとのことのようです。もしや古い方にはなにかツールがひつようなのでしょうか?ちなみにlilfes-1.096はこちらのサイトから入手しました。http://www-tsujii.is.s.u-tokyo.ac.jp/~mak/lilfes/distrib/
オフライン
手元のdapper環境で今コンパイルしてみましたが、同じエラーがでてmakeが中断しました。
n1fsp.h:221: error: dependent-name ‘std::map<A,B,std::less<_Key>,std::allocator<std::pair<const _Key, _Tp> > >::const_iterator’ is parsed as a non-type, but instantiation yields a type
n1fsp.h:221: note: say ‘typename std::map<A,B,std::less<_Key>,std::allocator<std::pair<const _Key, _Tp> > >::const_iterator’ if a type is meant
make[1]: *** [assoc.o] エラー 1
make[1]: ディレクトリ `/home/magotou/Source/lilfes/lilfes-1.096/src' から出ます
make: *** [all-recursive] エラー 1
これはlilfesの提供元に聞かれた方がいいような気がします。
オフライン
gmax による投稿:
これはlilfesの提供元に聞かれた方がいいような気がします。
エラーの存在も確認され、またかなり特殊なライブラリのようですので、gmaxさんの言うとおりかと思います。MLで聞いてみては如何でしょうか。向うの回答の意味が分からない場合にはまたここで質問すればよいかと思います。
[email protected]
オフライン