2006-03-08 睡眠不足で朝ちょっと寝てた [長年日記]
_1 Re: 風博士CVSでインストールエラー - automake編
Gentooでは複数バージョンのautomakeが存在することができるので,まず手元で何がインストールされているのかを確認.
% sudo equery list automake [ Searching for package 'automake' in all categories among: ] * installed packages [I--] [ ] sys-devel/automake-1.4_p6 (1.4) [I--] [ ] sys-devel/automake-1.5 (1.5) [I--] [ ] sys-devel/automake-1.6.3 (1.6) [I--] [ ] sys-devel/automake-1.7.9-r1 (1.7) [I--] [ ] sys-devel/automake-1.8.5-r3 (1.8) [I--] [ ] sys-devel/automake-1.9.6-r1 (1.9) [I--] [ ] sys-devel/automake-wrapper-1-r1 (0)
標準ではどの版が実行されるのかを確認.
% automake automake-1.9: `configure.ac' or `configure.in' is required
とのことなのでautomake-1.9.6-r1のようだ.
% ls -l `which automake` lrwxrwxrwx 1 root root 25 5月 6 2005 /usr/bin/automake -> ../lib/misc/am-wrapper.sh* % cat -n /usr/lib/misc/am-wrapper.sh L 11 # - defaults to automake-1.9 12 # - runs automake-1.8 if: 13 # - envvar WANT_AUTOMAKE is set to `1.8' 14 # -or- 15 # - `Makefile.in' was generated by automake-1.8 16 # -or- 17 # - 'aclocal.m4' contain AM_AUTOMAKE_VERSION, specifying the use of 1.8
より,WANT_AUTOMAKEという環境変数を使えば,使いたいautomakeの版数を切り替えられるみたい.
% WANT_AUTOMAKE=1.8 automake automake-1.8: `configure.ac' or `configure.in' is required % WANT_AUTOMAKE=1.7 automake automake-1.7: `configure.ac' or `configure.in' is required % WANT_AUTOMAKE=1.6 automake automake-1.6: `configure.ac' or `configure.in' is required % WANT_AUTOMAKE=1.5 automake automake-1.5: `configure.ac' or `configure.in' is required % WANT_AUTOMAKE=1.4 automake automake: `configure.ac' or `configure.in' is required
YES.
どの版数のautomakeがOKなのかをチェックする. とりあえず今回はmkinstalldirsファイルが存在すればOKとする.
% ./autogen.sh You should add the contents of `/usr/share/aclocal/libtool.m4' to `aclocal.m4'. /usr/share/aclocal/xmms.m4:17: warning: underquoted definition of XMMS_TEST_VERSION run info '(automake)Extending aclocal' or see http://sources.redhat.com/automake/automake.html#Extending-aclocal /usr/share/aclocal/xmms.m4:62: warning: underquoted definition of AM_PATH_XMMS /usr/share/aclocal/libmikmod.m4:11: warning: underquoted definition of AM_PATH_LIBMIKMOD /usr/share/aclocal/gtk.m4:7: warning: underquoted definition of AM_PATH_GTK /usr/share/aclocal/glib.m4:8: warning: underquoted definition of AM_PATH_GLIB /usr/share/aclocal/audiofile.m4:12: warning: underquoted definition of AM_PATH_AUDIOFILE configure.in: installing `./install-sh' configure.in: installing `./missing' ext/ruby/Makefile.am: installing `./depcomp' src/libegg/pixbufthumbnail/Makefile.am: installing `./compile' po/Makefile.in.in exists: use option -f if you really want to delete it. % ls ABOUT-NLS INSTALL README.ja autom4te.cache/ configure* etc/ misc/ AUTHORS Makefile.am TODO compile* configure.in ext/ missing* COPYING Makefile.in TODO.ja config.guess* data/ install-sh* po/ COPYING.README NEWS aclocal.m4 config.h.in depcomp* kazehakase.spec.in src/ ChangeLog README autogen.sh* config.sub* doc/ ltmain.sh
ダメ.
% WANT_AUTOMAKE=1.8 ./autogen.sh You should add the contents of `/usr/share/aclocal/libtool.m4' to `aclocal.m4'. /usr/share/aclocal/xmms.m4:17: warning: underquoted definition of XMMS_TEST_VERSION run info '(automake)Extending aclocal' or see http://sources.redhat.com/automake/automake.html#Extending%20aclocal /usr/share/aclocal/xmms.m4:62: warning: underquoted definition of AM_PATH_XMMS /usr/share/aclocal/libmikmod.m4:11: warning: underquoted definition of AM_PATH_LIBMIKMOD /usr/share/aclocal/gtk.m4:7: warning: underquoted definition of AM_PATH_GTK /usr/share/aclocal/glib.m4:8: warning: underquoted definition of AM_PATH_GLIB /usr/share/aclocal/audiofile.m4:12: warning: underquoted definition of AM_PATH_AUDIOFILE configure.in: installing `./install-sh' configure.in: installing `./missing' ext/ruby/Makefile.am: installing `./depcomp' src/libegg/pixbufthumbnail/Makefile.am: installing `./compile' po/Makefile.in.in exists: use option -f if you really want to delete it. mux06% ls ~/me/kazehakase-tmp/kazehakase:68669 ABOUT-NLS INSTALL README.ja autom4te.cache/ configure* etc/ misc/ AUTHORS Makefile.am TODO compile* configure.in ext/ missing* COPYING Makefile.in TODO.ja config.guess* data/ install-sh* po/ COPYING.README NEWS aclocal.m4 config.h.in depcomp* kazehakase.spec.in src/ ChangeLog README autogen.sh* config.sub* doc/ ltmain.sh
ダメ,1.9と同じ.
% WANT_AUTOMAKE=1.7 ./autogen.sh You should add the contents of `/usr/share/aclocal/libtool.m4' to `aclocal.m4'. configure.in: installing `./install-sh' configure.in: installing `./mkinstalldirs' configure.in: installing `./missing' ext/ruby/Makefile.am: installing `./depcomp' src/libegg/pixbufthumbnail/Makefile.am: installing `./compile' % ls ABOUT-NLS INSTALL README.ja autom4te.cache/ configure* etc/ misc/ AUTHORS Makefile.am TODO compile* configure.in ext/ missing* COPYING Makefile.in TODO.ja config.guess* data/ install-sh* mkinstalldirs* COPYING.README NEWS aclocal.m4 config.h.in depcomp* kazehakase.spec.in po/ ChangeLog README autogen.sh* config.sub* doc/ ltmain.sh src/
OK.ファイルの存在確認.
% WANT_AUTOMAKE=1.6 ./autogen.sh You should add the contents of `/usr/share/aclocal/libtool.m4' to `aclocal.m4'. configure.in: installing `./install-sh' configure.in: installing `./mkinstalldirs' configure.in: installing `./missing' data/ext/Makefile.am:3: SUBDIRS was already defined in condition TRUE, which implies condition WITH_RUBY_TRUE SUBDIRS (User, where = data/ext/Makefile.am:3) += { TRUE => } ext/Makefile.am:3: SUBDIRS was already defined in condition TRUE, which implies condition WITH_RUBY_TRUE SUBDIRS (User, where = ext/Makefile.am:3) += { TRUE => } ext/ruby/Makefile.am: installing `./depcomp' src/libegg/pixbufthumbnail/Makefile.am: installing `./compile' data/ext/Makefile.am:3: SUBDIRS was already defined in condition TRUE, which implies condition WITH_RUBY_TRUE SUBDIRS (User, where = data/ext/Makefile.am:3) += { TRUE => } ext/Makefile.am:3: SUBDIRS was already defined in condition TRUE, which implies condition WITH_RUBY_TRUE SUBDIRS (User, where = ext/Makefile.am:3) += { TRUE => } % ls ABOUT-NLS INSTALL README.ja autom4te.cache/ configure* etc/ misc/ AUTHORS Makefile.am TODO compile* configure.in ext/ missing* COPYING Makefile.in TODO.ja config.guess* data/ install-sh* mkinstalldirs* COPYING.README NEWS aclocal.m4 config.h.in depcomp* kazehakase.spec.in po/ ChangeLog README autogen.sh* config.sub* doc/ ltmain.sh src/
OK.だが,1.7では見られないメッセージが出力された.
% WANT_AUTOMAKE=1.5 ./autogen.sh configure.in:6: warning: do not use m4_patsubst: use patsubst or m4_bpatsubst aclocal.m4:546: AM_CONFIG_HEADER is expanded from... configure.in:6: the top level configure.in:669: warning: do not use m4_regexp: use regexp or m4_bregexp aclocal.m4:559: _AM_DIRNAME is expanded from... configure.in:669: the top level automake-1.5: configure.in: `AM_INIT_AUTOMAKE' must be used data/ext/Makefile.am:3: SUBDIRS was already defined in condition TRUE, which implies condition WITH_RUBY_TRUE SUBDIRS (User, where = 3) += { TRUE => } ext/Makefile.am:3: SUBDIRS was already defined in condition TRUE, which implies condition WITH_RUBY_TRUE SUBDIRS (User, where = 3) += { TRUE => } src/mozilla/Makefile.am:71: invalid unused variable name: `PROFILEDIRSERVICE_SOURCES' src/mozilla/Makefile.am:87: invalid unused variable name: `LIBGTKMOZEMBED_SOURCES' configure.in:6: warning: do not use m4_patsubst: use patsubst or m4_bpatsubst aclocal.m4:546: AM_CONFIG_HEADER is expanded from... configure.in:6: the top level configure.in:669: warning: do not use m4_regexp: use regexp or m4_bregexp aclocal.m4:559: _AM_DIRNAME is expanded from... configure.in:669: the top level % ls ABOUT-NLS Makefile.am TODO.ja config.h.in doc/ misc/ AUTHORS Makefile.in aclocal.m4 config.sub* etc/ missing* COPYING NEWS autogen.sh* configure* ext/ mkinstalldirs* COPYING.README README autom4te.cache/ configure.in install-sh* po/ ChangeLog README.ja compile* data/ kazehakase.spec.in src/ INSTALL TODO config.guess* depcomp* ltmain.sh stamp-h.in
OK.1.6とは違う,mozilla関係のメッセージが出力された.
% WANT_AUTOMAKE=1.4 ./autogen.sh You should add the contents of `/usr/share/aclocal/libtool.m4' to `aclocal.m4'. aclocal: configure.in: 28: macro `AM_CXXFLAGS' not found in library aclocal: configure.in: 130: macro `AM_CXXFLAGS' not found in library aclocal: configure.in: 144: macro `AM_CXXFLAGS' not found in library automake: configure.in: `VERSION' not defined in `configure.in' automake: configure.in: installing `./install-sh' automake: configure.in: installing `./mkinstalldirs' automake: configure.in: installing `./missing' configure.in: 6: required file `./config.h.in' not found src/Makefile.am:122: variable `INTLLIBS' not defined src/Makefile.am:122: variable `GTK_LIBS' not defined src/Makefile.am:122: variable `LIBGNUTLS_LIBS' not defined src/Makefile.am:122: variable `INTLLIBS' not defined src/Makefile.am:122: variable `GTK_LIBS' not defined src/Makefile.am:122: variable `LIBGNUTLS_LIBS' not defined automake: configure.in: AC_ARG_PROGRAM must be used in `configure.in' src/Makefile.am:44: invalid unused variable name: `dist_kazehakase_SOURCES' src/Makefile.am:118: invalid unused variable name: `nodist_libkazehakase_la_SOURCES' src/utils/Makefile.am:28: variable `GTK_LIBS' not defined src/net/Makefile.am:48: variable `LIBGNUTLS_LIBS' not defined src/net/Makefile.am:34: variable `enum_types' not defined src/mozilla/Makefile.am:70: HAVE_GECKO_1_8 does not appear in AM_CONDITIONAL src/mozilla/Makefile.am:112: variable `GTK_LIBS' not defined src/mozilla/Makefile.am:77: invalid unused variable name: `LIBGTKMOZEMBED_SOURCES' src/mozilla/Makefile.am:73: invalid unused variable name: `PROFILEDIRSERVICE_SOURCES' src/khtml/Makefile.am:25: variable `GTK_LIBS' not defined src/actions/Makefile.am:63: variable `GTK_LIBS' not defined src/bookmarks/Makefile.am:93: variable `GTK_LIBS' not defined src/dialogs/Makefile.am:48: variable `GTK_LIBS' not defined src/prefs_ui/Makefile.am:64: variable `GTK_LIBS' not defined src/prefs_ui/Makefile.am:47: variable `enum_types' not defined src/sidebar/Makefile.am:42: variable `GTK_LIBS' not defined src/sidebar/Makefile.am:34: variable `enum_types' not defined src/widget/Makefile.am:37: variable `GTK_LIBS' not defined src/libegg/md5/Makefile.am:10: variable `GTK_LIBS' not defined src/libegg/pixbufthumbnail/Makefile.am:14: variable `GTK_LIBS' not defined ext/Makefile.am:5: WITH_RUBY does not appear in AM_CONDITIONAL ext/Makefile.am:3: SUBDIRS defined both conditionally and unconditionally ext/ruby/Makefile.am:49: variable `INTLLIBS' not defined ext/ruby/Makefile.am:49: variable `GTK_LIBS' not defined ext/ruby/Makefile.am:49: variable `LIBGNUTLS_LIBS' not defined data/ext/Makefile.am:5: WITH_RUBY does not appear in AM_CONDITIONAL data/ext/Makefile.am:3: SUBDIRS defined both conditionally and unconditionally configure.in:5: error: possibly undefined macro: AM_INIT_AUTOMAKE If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure.in:6: error: possibly undefined macro: AM_CONFIG_HEADER configure.in:8: error: possibly undefined macro: AC_ENABLE_SHARED configure.in:9: error: possibly undefined macro: AC_ENABLE_STATIC configure.in:10: error: possibly undefined macro: AM_PROG_LIBTOOL configure.in:28: error: possibly undefined macro: AM_CXXFLAGS configure.in:85: error: possibly undefined macro: AM_CONDITIONAL configure.in:320: error: possibly undefined macro: AM_PATH_GTK_2_0 configure.in:358: error: possibly undefined macro: AM_PATH_LIBGNUTLS configure.in:370: error: possibly undefined macro: AM_GLIB_GNU_GETTEXT configure.in:627: error: possibly undefined macro: AM_CPPFLAGS configure.in:628: error: possibly undefined macro: AM_CFLAGS configure.in:630: error: possibly undefined macro: AM_LDFLAGS mux06% ls ABOUT-NLS INSTALL README.ja config.guess* doc/ ltmain.sh src/ AUTHORS Makefile.am TODO config.sub* etc/ misc/ stamp-h.in COPYING Makefile.in TODO.ja configure* ext/ missing* COPYING.README NEWS autogen.sh* configure.in install-sh* mkinstalldirs* ChangeLog README autom4te.cache/ data/ kazehakase.spec.in po/
OK.ただしこれまでにみたことがないエラーが大量出力された.
この結果より,手元の環境(Gentoo portage-20060304)ではautomake-1.7じゃないとうまくいかないみたいだ.
_2 portage.unmask
gccを3.3から3.4にアップデートするときにrevdep-rebuildではまった.portage.unmaskが正しく記述できれば簡単に解決できそうだったが,やりかたが分からず手間がかかった.
その後,portage.unmaskの書き方をいろいろ試してみた.
何も書かれていない場合.
# tail -n 1 /etc/portage/package.unmask #>=media-gfx/zphoto-1.2-r2
# ACCEPT_KEYWORDS="~x86" emerge -pv zphoto These are the packages that I would merge, in order: Calculating dependencies !!! All ebuilds that could satisfy "zphoto" have been masked. !!! One of the following masked packages is required to complete your request: - media-gfx/zphoto-1.2-r2 (masked by: package.mask) - media-gfx/zphoto-1.2-r1 (masked by: package.mask) For more information, see MASKED PACKAGES section in the emerge man page or refer to the Gentoo Handbook.
まぁ,当然のごとくあかんわな.
">="と書いた場合.
# tail -n 1 /etc/portage/package.unmask >=media-gfx/zphoto-1.2-r2
# ACCEPT_KEYWORDS="~x86" emerge -pv zphoto These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] media-gfx/zphoto-1.2-r2 -wxwindows 0 kB Total size of downloads: 0 kB
うむ,大丈夫のようだ.
"="と書いた場合
# tail -n 1 /etc/portage/package.unmask =media-gfx/zphoto-1.2-r2
# ACCEPT_KEYWORDS="~x86" emerge -pv zphoto These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] media-gfx/zphoto-1.2-r2 -wxwindows 0 kB Total size of downloads: 0 kB
これも大丈夫.
頭に何も書かない場合
# tail -n 1 /etc/portage/package.unmask media-gfx/zphoto-1.2-r2
# ACCEPT_KEYWORDS="~x86" emerge -pv zphoto --- Invalid atom in /etc/portage/package.unmask: media-gfx/zphoto-1.2-r2 These are the packages that I would merge, in order: Calculating dependencies !!! All ebuilds that could satisfy "zphoto" have been masked. !!! One of the following masked packages is required to complete your request: - media-gfx/zphoto-1.2-r2 (masked by: package.mask) - media-gfx/zphoto-1.2-r1 (masked by: package.mask) For more information, see MASKED PACKAGES section in the emerge man page or refer to the Gentoo Handbook.
あかんらしい.
頭に何も書かず,さらにバージョンを指定しない場合
# tail -n 1 /etc/portage/package.unmask media-gfx/zphoto # ACCEPT_KEYWORDS="~x86" emerge -pv zphoto These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] media-gfx/zphoto-1.2-r2 -wxwindows 0 kB Total size of downloads: 0 kB
お,うまくいく.
まとめ
以上より,頭に何も書かずバージョンを指定するとダメらしい.
むむ,bugs に出しておきます.> kazehakase-cvs<br><br>ちなみに package.unmask とかの中に書けるのは DEPEND atom というものだけで,atom については ebuild の man ページ (セクション 5 の方) に説明がありますよ.:)
あわわ,kazehakase-cvsはGentooパッケージじゃなくて自前でビルドしたやつの話です.<br><br>package.unmaskはmanを見てみます.ありがとうございます
<b></b> <br> <br>
Hello, I lunched a new site with costum scripts to publish latest news and events on finance, currencies and economy. <br>Please leave your comment about my website. <br>You can find the website in my signature. <br>Thanks.
<br>WOW just what I was searching for. Came here by searching for %keyword%
<br>Everyone loves what you guys are up too. This type of clever work and exposure! Keep up the superb works guys I've included you guys to blogroll.
<br>Thanks on your marvelous posting! I certainly enjoyed reading it, you happen to be a great author. I will be sure to bookmark your blog and may come back sometime soon. I want to encourage yourself to continue your great writing, have a nice weekend!
В нашей статье собраны самые честные онлайн казино где игроки могут наслаждаться азартом без страха быть обманутыми или обокраденными.