#593
Last-modified: Sunday, 22-Feb-2004 02:18:47 JST

単なるメモをそのまま公開します。すみません。


2004-02-15

*** Mutt をとりあえず展開

% gtar zxvf mutt-1.4.2.1i-ja.1.tar.gz
% gtar zxvf mutt-1.4.2.1i.tar.gz

% lv mutt-1.4.2.1i-ja.1/INSTALL.JA-PATCH.ja 
読む

% cd mutt-1.4.2.1
% patch  -p1 > ../mutt-1.4.2.1i-ja.1/patch-1.4.2.1.tt.ja.1    



*** 順番

GNU m4 -> autoconf -> automake ->
(iconv, openssl),
S-Lang, mutt

***

開発環境( dev_img-1.3-tesuri 版)をマウント
# mountdev

% cd work/mutt
% gtar zxvf m4-1.4.tar.gz
% cd m4-1.4
% ./configure --prefix=/opt/QtPalmtop
% make
% ls -l src/m4
-rwxr-xr-x    1 zaurus   qpe        241778 Feb 15 22:42 src/m4                                            
% make check
(...)
All checks successful

% su
Password:
# make install

インストールされたファイル on /opt/QtPalmtop/
./bin/m4
./info/m4.info
./info/m4.info-1
./info/m4.info-2
./info/m4.info-3

% cd autoconf-2.59
% ./configure --prefix=/opt/QtPalmtop
% make
% make check
(...)
make[2]: Entering directory `/usr/mnt.rom/card/work/mutt/autoconf-2.59/tests'
./autom4te --language=autotest -I . suite.at -o testsuite.tmp
NONE:0: /home/QtPalmtop/bin/m4: ERROR: Copying inserted file: No space left on device
autom4te: /home/QtPalmtop/bin/m4 failed with exit status: 1
make[2]: *** [testsuite] Error 1                     
(...)

# make install

インストールされたファイル on /opt/QtPalmtop/
./bin/autoconf
./bin/autom4te
./bin/autoscan
./bin/autoheader
./bin/autoreconf
./bin/autoupdate
./bin/ifnames

./man/man1/ifnames.1
./man/man1/autoconf.1
./man/man1/autom4te.1
./man/man1/autoscan.1
./man/man1/config.guess.1
./man/man1/autoheader.1
./man/man1/autoreconf.1
./man/man1/config.sub.1
./man/man1/autoupdate.1

./info/standards.info
./info/autoconf.info

./share/autoconf/autoconf/c.m4
./share/autoconf/autoconf/autoscan.m4
./share/autoconf/autoconf/functions.m4
./share/autoconf/autoconf/autotest.m4
./share/autoconf/autoconf/autoconf.m4f
./share/autoconf/autoconf/general.m4
./share/autoconf/autoconf/specific.m4
./share/autoconf/autoconf/oldnames.m4
./share/autoconf/autoconf/headers.m4
./share/autoconf/autoconf/lang.m4
./share/autoconf/autoconf/types.m4
./share/autoconf/autoconf/libs.m4
./share/autoconf/autoconf/autoupdate.m4
./share/autoconf/autoconf/programs.m4
./share/autoconf/autoconf/autoheader.m4
./share/autoconf/autoconf/status.m4
./share/autoconf/autoconf/fortran.m4
./share/autoconf/autoconf/autoconf.m4
./share/autoconf/autoscan/autoscan.list
./share/autoconf/autotest/autotest.m4
./share/autoconf/autotest/autotest.m4f
./share/autoconf/autotest/general.m4
./share/autoconf/m4sugar/m4sugar.m4
./share/autoconf/m4sugar/m4sh.m4
./share/autoconf/m4sugar/m4sugar.m4f
./share/autoconf/m4sugar/m4sh.m4f
./share/autoconf/m4sugar/version.m4
./share/autoconf/Autom4te/FileUtils.pm
./share/autoconf/Autom4te/ChannelDefs.pm
./share/autoconf/Autom4te/C4che.pm
./share/autoconf/Autom4te/General.pm
./share/autoconf/Autom4te/Configure_ac.pm
./share/autoconf/Autom4te/Channels.pm
./share/autoconf/Autom4te/XFile.pm
./share/autoconf/Autom4te/Request.pm
./share/autoconf/Autom4te/Struct.pm
./share/autoconf/INSTALL
./share/autoconf/autom4te.cfg


% cd automake-1.8.2
% ./configure --prefix=/opt/QtPalmtop
% make
% make check
(...)
PASS: aclibobj.test
PASS: aclocal.test
PASS: aclocal3.test
FAIL: aclocal4.test ←失敗!!
(...)
XFAIL: auxdir2.test
(... ...)
=====================================
20 of 452 tests failed ← とりあえず失敗は気にしない
(71 tests were not run)


インストールされたファイル on /opt/QtPalmtop
m4, autoconf, automake 合わせて、

./bin/m4
./bin/autoconf
./bin/autom4te
./bin/automake
./bin/autoscan
./bin/autoheader
./bin/automake-1.8
./bin/autoreconf
./bin/autoupdate
./bin/ifnames
./bin/aclocal-1.8
./bin/aclocal

./man/man1/ifnames.1
./man/man1/autoconf.1
./man/man1/autom4te.1
./man/man1/autoscan.1
./man/man1/config.guess.1
./man/man1/autoheader.1
./man/man1/autoreconf.1
./man/man1/config.sub.1
./man/man1/autoupdate.1

./info/automake.info
./info/m4.info
./info/standards.info
./info/m4.info-1
./info/m4.info-2
./info/m4.info-3
./info/automake.info-1
./info/autoconf.info

./share/autoconf/autoconf/c.m4
./share/autoconf/autoconf/autoscan.m4
./share/autoconf/autoconf/functions.m4
./share/autoconf/autoconf/autotest.m4
./share/autoconf/autoconf/autoconf.m4f
./share/autoconf/autoconf/general.m4
./share/autoconf/autoconf/specific.m4
./share/autoconf/autoconf/oldnames.m4
./share/autoconf/autoconf/headers.m4
./share/autoconf/autoconf/lang.m4
./share/autoconf/autoconf/types.m4
./share/autoconf/autoconf/libs.m4
./share/autoconf/autoconf/autoupdate.m4
./share/autoconf/autoconf/programs.m4
./share/autoconf/autoconf/autoheader.m4
./share/autoconf/autoconf/status.m4
./share/autoconf/autoconf/fortran.m4
./share/autoconf/autoconf/autoconf.m4
./share/autoconf/autoscan/autoscan.list
./share/autoconf/autotest/autotest.m4
./share/autoconf/autotest/autotest.m4f
./share/autoconf/autotest/general.m4
./share/autoconf/m4sugar/m4sugar.m4
./share/autoconf/m4sugar/m4sh.m4
./share/autoconf/m4sugar/m4sugar.m4f
./share/autoconf/m4sugar/m4sh.m4f
./share/autoconf/m4sugar/version.m4
./share/autoconf/Autom4te/FileUtils.pm
./share/autoconf/Autom4te/ChannelDefs.pm
./share/autoconf/Autom4te/C4che.pm
./share/autoconf/Autom4te/General.pm
./share/autoconf/Autom4te/Configure_ac.pm
./share/autoconf/Autom4te/Channels.pm
./share/autoconf/Autom4te/XFile.pm
./share/autoconf/Autom4te/Request.pm
./share/autoconf/Autom4te/Struct.pm
./share/autoconf/INSTALL
./share/autoconf/autom4te.cfg
./share/automake-1.8/am/data.am
./share/automake-1.8/am/depend2.am
./share/automake-1.8/am/libtool.am
./share/automake-1.8/am/footer.am
./share/automake-1.8/am/ltlibrary.am
./share/automake-1.8/am/mans-vars.am
./share/automake-1.8/am/configure.am
./share/automake-1.8/am/tags.am
./share/automake-1.8/am/texi-vers.am
./share/automake-1.8/am/subdirs.am
./share/automake-1.8/am/ansi2knr.am
./share/automake-1.8/am/java.am
./share/automake-1.8/am/yacc.am
./share/automake-1.8/am/depend.am
./share/automake-1.8/am/header.am
./share/automake-1.8/am/libs.am
./share/automake-1.8/am/lisp.am
./share/automake-1.8/am/texibuild.am
./share/automake-1.8/am/remake-hdr.am
./share/automake-1.8/am/compile.am
./share/automake-1.8/am/mans.am
./share/automake-1.8/am/distdir.am
./share/automake-1.8/am/check.am
./share/automake-1.8/am/clean-hdr.am
./share/automake-1.8/am/install.am
./share/automake-1.8/am/program.am
./share/automake-1.8/am/ltlib.am
./share/automake-1.8/am/lex.am
./share/automake-1.8/am/python.am
./share/automake-1.8/am/scripts.am
./share/automake-1.8/am/library.am
./share/automake-1.8/am/header-vars.am
./share/automake-1.8/am/progs.am
./share/automake-1.8/am/texinfos.am
./share/automake-1.8/am/lang-compile.am
./share/automake-1.8/am/dejagnu.am
./share/automake-1.8/am/clean.am
./share/automake-1.8/am/multilib.am
./share/automake-1.8/compile
./share/automake-1.8/depcomp
./share/automake-1.8/acinstall
./share/automake-1.8/mdate-sh
./share/automake-1.8/symlink-tree
./share/automake-1.8/COPYING
./share/automake-1.8/Automake/Item.pm
./share/automake-1.8/Automake/Wrap.pm
./share/automake-1.8/Automake/FileUtils.pm
./share/automake-1.8/Automake/Location.pm
./share/automake-1.8/Automake/Condition.pm
./share/automake-1.8/Automake/ChannelDefs.pm
./share/automake-1.8/Automake/General.pm
./share/automake-1.8/Automake/Configure_ac.pm
./share/automake-1.8/Automake/Channels.pm
./share/automake-1.8/Automake/DisjConditions.pm
./share/automake-1.8/Automake/XFile.pm
./share/automake-1.8/Automake/RuleDef.pm
./share/automake-1.8/Automake/Config.pm
./share/automake-1.8/Automake/Options.pm
./share/automake-1.8/Automake/VarDef.pm
./share/automake-1.8/Automake/Rule.pm
./share/automake-1.8/Automake/Variable.pm
./share/automake-1.8/Automake/Version.pm
./share/automake-1.8/Automake/ItemDef.pm
./share/automake-1.8/Automake/Struct.pm
./share/automake-1.8/elisp-comp
./share/automake-1.8/ansi2knr.1
./share/automake-1.8/ansi2knr.c
./share/automake-1.8/config-ml.in
./share/automake-1.8/config.guess
./share/automake-1.8/install-sh
./share/automake-1.8/config.sub
./share/automake-1.8/missing
./share/automake-1.8/mkinstalldirs
./share/automake-1.8/ylwrap
./share/automake-1.8/INSTALL
./share/automake-1.8/texinfo.tex
./share/automake-1.8/py-compile

./share/aclocal-1.8/cond.m4
./share/aclocal-1.8/as.m4
./share/aclocal-1.8/install-sh.m4
./share/aclocal-1.8/lead-dot.m4
./share/aclocal-1.8/missing.m4
./share/aclocal-1.8/maintainer.m4
./share/aclocal-1.8/lispdir.m4
./share/aclocal-1.8/init.m4
./share/aclocal-1.8/strip.m4
./share/aclocal-1.8/ccstdc.m4
./share/aclocal-1.8/regex.m4
./share/aclocal-1.8/sanity.m4
./share/aclocal-1.8/depend.m4
./share/aclocal-1.8/mkdirp.m4
./share/aclocal-1.8/header.m4
./share/aclocal-1.8/amversion.m4
./share/aclocal-1.8/auxdir.m4
./share/aclocal-1.8/obsol-gt.m4
./share/aclocal-1.8/obsol-lt.m4
./share/aclocal-1.8/depout.m4
./share/aclocal-1.8/options.m4
./share/aclocal-1.8/make.m4
./share/aclocal-1.8/multi.m4
./share/aclocal-1.8/gcj.m4
./share/aclocal-1.8/minuso.m4
./share/aclocal-1.8/lex.m4
./share/aclocal-1.8/runlog.m4
./share/aclocal-1.8/python.m4
./share/aclocal-1.8/dmalloc.m4
./share/aclocal-1.8/protos.m4
./share/aclocal-1.8/obsolete.m4


% cd slang-1.4.5jp2
% vi src/sl-feat.h
デフォルトで下記になっていた。
     #define SLANG_HAS_KANJI_SUPPORT         1

% ./configure --prefix=/opt/QtPalmtop
(...)
awk: not found

とりあえず、昔と同じように下記でごまかす。
# cd /opt/QtPalmtop/bin
# ln -s mawk awk

% ./configure --prefix=/opt/QtPalmtop
% make
% make runtests
# make install

インストールされたファイル on /opt/QtPalmtop

./doc/slang/COPYING.ART
./doc/slang/COPYING.GPL
./doc/slang/slangdoc.html
./doc/slang/cref.txt
./doc/slang/slang.txt
./doc/slang/COPYING
./doc/slang/cslang.txt
./doc/slang/COPYRIGHT
./doc/slang/changes.txt
./doc/slang/slangfun.txt

./lib/libslang.a

./include/slkanji.h
./include/slang.h
./include/slcurses.h


後始末...
# cd /opt/QtPalmtop/bin
# rm awk                                       


*** GNU libiconv 1.8

ライブラリは /usr/lib にインストール済み。

ヘッダファイルを某所より掘り返す。
# ls
iconv.h       libcharset.h
# cp -p *.h /opt/QtPalmtop/include

*** Mutt 1.4.2.1 ja1

% cd mutt-1.4.2.1

configure にて、automake のバージョンを "1.4" と決め打ち
しているので、"1.8" に修正する。

% vi configure
(...)
am__api_version="1.8"

% ./configure --prefix=/opt/QtPalmtop ¥
        --with-libiconv-prefix=/opt/QtPalmtop ¥
        --without-wc-funcs ¥
        --with-included-gettext ¥
        --with-slang=/opt/QtPalmtop ¥
        --enable-default-japanese

% make
できた!!

% ./mutt -y
動いた!!

$ mutt -v
Mutt 1.4.2.1i (2004-02-12)
Copyright (C) 1996-2002 Michael R. Elkins and others.
Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
Mutt is free software, and you are welcome to redistribute it
under certain conditions; type `mutt -vv' for details.

System: Linux 2.4.18-rmk7-pxa3-embedix (armv5tel) [using slang 10405]
Compile options:
-DOMAIN
-DEBUG
-HOMESPOOL  -USE_SETGID  -USE_DOTLOCK  -DL_STANDALONE  
+USE_FCNTL  -USE_FLOCK
-USE_POP  -USE_IMAP  -USE_GSS  -USE_SSL  -USE_SASL  
+HAVE_REGCOMP  -USE_GNU_REGEX  
+HAVE_COLOR  -HAVE_START_COLOR  -HAVE_TYPEAHEAD  -HAVE_BKGDSET  
-HAVE_CURS_SET  -HAVE_META  -HAVE_RESIZETERM  
+HAVE_PGP  -BUFFY_SIZE -EXACT_ADDRESS  -SUN_ATTACHMENT  
+ENABLE_NLS  -LOCALES_HACK  -HAVE_WC_FUNCS  +HAVE_LANGINFO_CODESET  +HAVE_LANGINFO_YESEXPR  
+HAVE_ICONV  -ICONV_NONTRANS  +HAVE_GETSID  -HAVE_GETADDRINFO  
-ISPELL
SENDMAIL="/usr/sbin/sendmail"
MAILPATH="/var/mail"
PKGDATADIR="/opt/QtPalmtop/share/mutt"
SYSCONFDIR="/opt/QtPalmtop/etc"
EXECSHELL="/bin/sh"
-MIXMASTER
To contact the developers, please mail to .
To report a bug, please use the flea(1) utility.

patch-1.4.2.1.tt.ja.1


*** さらに POP, IMAP 対応

ただし、--with-ssl には失敗。

% ./configure --prefix=/opt/QtPalmtop ¥
        --enable-pop ¥
        --enable-imap ¥
        --with-libiconv-prefix=/opt/QtPalmtop ¥
        --without-wc-funcs ¥
        --with-included-gettext ¥
        --with-slang=/opt/QtPalmtop ¥
        --enable-default-japanese

% make

% ./mutt -v
Mutt 1.4.2.1i (2004-02-12)
Copyright (C) 1996-2002 Michael R. Elkins and others.
Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
Mutt is free software, and you are welcome to redistribute it
under certain conditions; type `mutt -vv' for details.

System: Linux 2.4.18-rmk7-pxa3-embedix (armv5tel) [using slang 10405]
Compile options:
-DOMAIN
-DEBUG
-HOMESPOOL  -USE_SETGID  -USE_DOTLOCK  -DL_STANDALONE  
+USE_FCNTL  -USE_FLOCK
+USE_POP  +USE_IMAP  -USE_GSS  -USE_SSL  -USE_SASL  
+HAVE_REGCOMP  -USE_GNU_REGEX  
+HAVE_COLOR  -HAVE_START_COLOR  -HAVE_TYPEAHEAD  -HAVE_BKGDSET  
-HAVE_CURS_SET  -HAVE_META  -HAVE_RESIZETERM  
+HAVE_PGP  -BUFFY_SIZE -EXACT_ADDRESS  -SUN_ATTACHMENT  
+ENABLE_NLS  -LOCALES_HACK  -HAVE_WC_FUNCS  +HAVE_LANGINFO_CODESET  +HAVE_LANGINFO_YESEXPR  
+HAVE_ICONV  -ICONV_NONTRANS  +HAVE_GETSID  +HAVE_GETADDRINFO  
-ISPELL
SENDMAIL="/usr/sbin/sendmail"
MAILPATH="/var/mail"
PKGDATADIR="/opt/QtPalmtop/share/mutt"
SYSCONFDIR="/opt/QtPalmtop/etc"
EXECSHELL="/bin/sh"
-MIXMASTER
To contact the developers, please mail to .
To report a bug, please use the flea(1) utility.

patch-1.4.2.1.tt.ja.1


*** ipkg

% cp -p mutt pgpewrap pgpring ../../mutt-ipkg/mutt/opt/QtPalmtop/bin/
zau

mutt      pgpewrap  pgpring
zaurus% pwd
/home/zaurus/wo/mutt-ipkg/mutt/opt/QtPalmtop/bin
zaurus% ls -l
-rwxr-xr-x    1 zaurus   qpe       2520575 Feb 16 23:58 mutt
-rwxr-xr-x    1 zaurus   qpe         29178 Feb 16 23:59 pgpewrap
-rwxr-xr-x    1 zaurus   qpe        212604 Feb 16 23:59 pgpring
zaurus% strip *                                      
zaurus% ls -l
-rwxr-xr-x    1 zaurus   qpe        798096 Feb 17 00:13 mutt
-rwxr-xr-x    1 zaurus   qpe          3096 Feb 17 00:13 pgpewrap
-rwxr-xr-x    1 zaurus   qpe         45808 Feb 17 00:13 pgpring                                           

% pwd
/home/zaurus/wo/mutt/mutt-1.4.2.1i-ja.1
% cp -p README.* INSTALL.ja NEWS.ja ../../mutt-ipkg/mutt/opt/QtPalmtop/doc/mutt/
% cd html
% cp -p *.html ../../../mutt-ipkg/mutt/opt/QtPalmtop/doc/mutt/html/

上に戻って
% fakeroot ipkg-build mutt                     


2004-02-18

--with-ssl=/opt/QtPalmtop に再挑戦

ちなみに OpenSSL は、A Way Out by kenji さんの
openssl_0.9.6i-1_arm.ipk
(のちに openssl_0.9.6l-1_arm.ipk にバージョンアップ)


% vi kimu-ssl
./configure --prefix=/opt/QtPalmtop ¥
        --enable-pop ¥
        --enable-imap ¥
	--with-ssl=/opt/QtPalmtop ¥
        --with-libiconv-prefix=/opt/QtPalmtop ¥
        --without-wc-funcs ¥
        --with-included-gettext ¥
        --with-slang=/opt/QtPalmtop ¥
        --enable-default-japanese


% sh -f kimu-ssl
(...)
checking for setsockopt... yes
checking for getaddrinfo... yes
checking for X509_new in -lcrypto... no
configure: error: Unable to find SSL library         


% lv config.log

-lcrypto のテストで失敗していた。
/lib/libdl-2.2.2.so がみつからないらしい。

% vi configure

### -ldl-2.2.2 をつけまくる。
### -2.2.2 つけないとダメだった。

LIBS="-lcrypto  $LIBS -ldl-2.2.2"
(...)
LIBS="-lcrypto $LIBS -ldl-2.2.2"
(...)
LIBS="-lssl -lcrypto $LIBS -ldl-2.2.2"
(...)
MUTTLIBS="$MUTTLIBS -lssl -lcrypto -ldl-2.2.2"                                                  
% sh -f kimu-ssl
% make

でけた!

% ./mutt -v
Mutt 1.4.2.1i (2004-02-12)
Copyright (C) 1996-2002 Michael R. Elkins and others.
Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
Mutt is free software, and you are welcome to redistribute it
under certain conditions; type `mutt -vv' for details.

System: Linux 2.4.18-rmk7-pxa3-embedix (armv5tel) [using slang 10405]
Compile options:
-DOMAIN
-DEBUG
-HOMESPOOL  -USE_SETGID  -USE_DOTLOCK  -DL_STANDALONE  
+USE_FCNTL  -USE_FLOCK
+USE_POP  +USE_IMAP  -USE_GSS  +USE_SSL  -USE_SASL  
+HAVE_REGCOMP  -USE_GNU_REGEX  
+HAVE_COLOR  -HAVE_START_COLOR  -HAVE_TYPEAHEAD  -HAVE_BKGDSET  
-HAVE_CURS_SET  -HAVE_META  -HAVE_RESIZETERM  
+HAVE_PGP  -BUFFY_SIZE -EXACT_ADDRESS  -SUN_ATTACHMENT  
+ENABLE_NLS  -LOCALES_HACK  -HAVE_WC_FUNCS  +HAVE_LANGINFO_CODESET  +HAVE_LANGINFO_YESEXPR  
+HAVE_ICONV  -ICONV_NONTRANS  +HAVE_GETSID  +HAVE_GETADDRINFO  
-ISPELL
SENDMAIL="/usr/sbin/sendmail"
MAILPATH="/var/mail"
PKGDATADIR="/opt/QtPalmtop/share/mutt"
SYSCONFDIR="/opt/QtPalmtop/etc"
EXECSHELL="/bin/sh"
-MIXMASTER
To contact the developers, please mail to .
To report a bug, please use the flea(1) utility.

patch-1.4.2.1.tt.ja.1



% ls -l mutt
-rwxr-xr-x    1 zaurus   qpe       2597290 Feb 20 13:54 mutt
% strip mutt
% ls -l mutt
-rwxr-xr-x    1 zaurus   qpe        806712 Feb 20 19:42 mutt