hns - 日記自動生成システム - Version 2.19.9

先月 2003年07月 来月
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2003年07月20日() 旧暦 [n年日記]

#1 [pkgsrc] cdrecord-2.00.3

===========================================================================
$NetBSD: MESSAGE.cdrecord.conf,v 1.1 2003/03/08 08:16:58 grant Exp $

Note: The location of the cdrecord-2.00.3 `defaults' file has been set to

        /usr/pkg/etc/cdrecord.conf

This is the pkgsrc standard config file location, NOT the cdrecord-2.00.3
standard location, which is /etc/default/cdrecord.

The reason for this is that pkgsrc packages should not use configuration
files outside /usr/pkg unless they are explicitly set by the user.

===========================================================================


2003年07月19日() 旧暦 [n年日記]

#1 [NetBSD] build.sh (20030711)

cc1: warnings being treated as errors
/export/20030711/src/crypto/dist/openssl/crypto/asn1/a_gentm.c: In function `ASN1_GENERALIZEDTI
ME_set':
/export/20030711/src/crypto/dist/openssl/crypto/asn1/a_gentm.c:209: warning: assignment makes p
ointer from integer without a cast
*** Error code 1

Stop.
nbmake: stopped in /export/20030711/src/lib/libcrypto
*** Error code 1

#2 Open Firmware, 2.0f1

Open Firmware, 2.0f1
To continue booting the MacOS type:
BYE<return>
To continue booting from the default boot device type:
BOOT<return>
For Open Firmware serial I/O type:
TTYA IO<return>
ok
0 >
かなりショック。 2.4 だと思って入手したが。

0 > devalias:

pci                 /pci@80000000
mac-io              /pci/mac-io
kbd                 /pci/mac-io/via-cuda/adb/keyboard
mouse               /pci/mac-io/via-cuda/adb/mouse
ttya                /pci/mac-io/escc/ch-a
ttyb                /pci/mac-io/escc/ch-b
scsi                /pci/mac-io/mesh
scsi-int            /pci/mac-io/mesh
ide0                /pci/mac-io/ide@20000
ide                 /pci/mac-io/ide@20000
ata-int             /pci/mac-io/ide@20000
ide1                /pci/mac-io/ide@21000
enet                /pci/mac-io/bmac
swim                /pci/mac-io/swim3
fd                  /pci/mac-io/swim3
screen              /pci@80000000/IMS,tt3d@F
 ok
外に付けた scsi からは
boot scsi/sd@0:0 
で起動した。 cdrom も mount 出来る。
0 > boot scsi/sd@0:0 20030615_MD.gz 
も大丈夫。

SCSI Card がおかしいような気がする。:

「ATTO Express PCI PSC」が入っていたが、 手持の別のものに交換したら、かなり動くようになった。

問題ない項目:

  • 外付の scsi/sd@0:0
  • 内蔵の scsi から 8.1 ( bye して探す)
  • 内蔵の scsi から 9.2.1 ( bye して探す)
  • 内蔵の CDROM から 9.2.1
  • boot scsi/sd@0:0 /pci@80000000/pci9292,202@D/sd@1,0/netbsd

問題のある項目:

  • 内蔵の /pci/pci9292,202/sd@0:0 からは 9.2.1 も起動しない (これは 9.2.1 で System-disk を使って設定したもの)
  • 内蔵の /pci/pci9292,202/sd@1:0 から、入っているはずの NetBSD は起動しない。
  • 内蔵の CDROM から 10.2
    進入禁止になってしまう。
  • 9.2.1 で起動ディスクを起動しようとすると、-1 止ってしまう。
0 > setenv boot-device scsi/sd@0:0  ok
0 > setenv boot-file /pci/pci9292,202/sd@1,0/netbsd  ok
0 > reset-all 
...
boot device: <unknown>
root device: sd1
...
起動した。Date が拾えていない。
Thu Apr 1 19:52:01 JST 1976
syncing disks... 2 2 done
sd1(iha0:0:1:0): polling command not done
panic: scsipi_execute_xs
Stopped in pid 346.1 (reboot) at        netbsd:cpu_Debugger+0x14:       mtlr    0

db> trace
at panic+18c
at scsipi_execute_xs+2e4
at scsi_scsipi_cmd+12c
at scsipi_command+bc
at sd_scsibus_flush+8c
at sd_shutdown+38
at doshutdownhooks+50
at cpu_reboot+98
at sys_reboot+64
at syscall_plain+100
at setfault+c58
at ADBDevTable+12d4960
at ADBDevTable+12d3df8
panic: vtophys

real-base F00000 を忘れてしまう ?:

0 > boot 
>> NetBSD/macppc OpenFirmware Boot, Revision 1.5
>> (root@serv, Sun Jun  1 04:19:09 UTC 2003)
4139596/
Open Firmware, 2.0f1
To continue booting the MacOS type:
BYE<return>
To continue booting from the default boot device type:
BOOT<return>
For Open Firmware serial I/O type:
 TTYA IO<return>
 ok
0 > 

ATI Technologies 3D Rage Pro:

wsmouse0 at ams0 (mux ignored)
ofb1 at pci0 dev 18 function 0: ATI Technologies 3D Rage Pro
ofb1: 640 x 480, 8bpp
しかも Rage Pro なのに 2.0f1 ?

DT/266 + Rage Pro または MT/333 が:

2.4 ということかな。$77D.45F1 で検索したら こういうのが あった。


2003年07月18日(金) 旧暦 [n年日記]

#1 [Namazu] in-place test

namazu を make して、 make install する前に動作確認 をしようとする場合、 以前は出来なかったのが、一度出来るようになったはず だが、またそれが出来なくなっている気がする。
ttyp0:makoto@harry 7:17:36/030718(...namazu-2.0.13pre4/scripts)> ./mknmz
Can't locate conf.pl in @INC (@INC contains: /usr/local/share/namazu/pl . /usr/pkg/lib/perl5/site_perl/5.6.1/powerpc-netbsd /usr/pkg/lib/perl5/site_perl/5.6.1 /usr/pkg/lib/perl5/site_perl /usr/pkg/lib/perl5/5.6.1/powerpc-netbsd /usr/pkg/lib/perl5/5.6.1) at ./mknmz line 350. ttyp0:makoto@harry 7:17:40/030718(...namazu-2.0.13pre4/scripts)>
@INC の問題。(実はこれはやっかい)。
「自分のところでは出来る」という人もいるかも知れないが、 それは以前に入れた /usr/local/share/namazu/pl を使っている。
sub preload_modules のところかな。

env top_builddir=`(cd ..;pwd)`:

すれば動く。
ttyp0:makoto@harry 7:23:15/030718(...namazu-2.0.13pre4/scripts)> env top_builddir=`(cd ..;pwd)` ./mknmz --help
mknmz 2.0.13pre4, an indexer of Namazu.

Usage: mknmz [options] <target>...
....

filter も見る必要がある。:

作ったすぐその後で index is old type. it's unsupported.:

ttyp1:makoto@harry 8:38:17/030718(...namazu-2.0.13pre4/scripts)> env top_builddir=`(cd ..;pwd)` ./mknmz -O /tmp/O /amd/u/home/makoto/Mail/ml/ftpmirror
mknmz: Present index is old type. it's unsupported.
ttyp1:makoto@harry 8:38:18/030718(...namazu-2.0.13pre4/scripts)>

check_present_index () {:

941 # check present index whether it is old type of not
942 sub check_present_index () {
943     if (-f $var::NMZ{'i'} && ! -f "$var::NMZ{'result'}.normal")
944     {
945         util::cdie(_("Present index is old type. it's unsupported.\n"));
946     }
947 }
template 問題らしい。( in-place-test に限る)。出来れば、 「i, result.normal がない」と言った方が親切な気もする。

検索:

ttyp0:makoto@harry 8:44:09/030718(...local-src/namazu-2.0.13pre4)> src/.libs/namazu test /tmp/O
Shared object "libnmz.so.7" not found
ttyp0:makoto@harry 8:44:13/030718(...local-src/namazu-2.0.13pre4)> find . -name libnmz.so.7
./nmz/.libs/libnmz.so.7

ttyp0:makoto@harry 8:44:50/030718(...local-src/namazu-2.0.13pre4)> env LD_LIBRARY_PATH=./nmz/.libs src/.libs/namazu test /tmp/O
Results:

References: [ test: 7 ]

Total 7 documents matching your query.

namazu: /tmp/O/NMZ.result.normal: No such file or directory
Error!
can't open the result format file
ttyp0:makoto@harry 8:44:56/030718(...local-src/namazu-2.0.13pre4)>

in-place は重要ではない ?:

から、あまり力を入れないように。という考え方も一理ある。

元の問題に戻って -d:PRof を付けると NMZ.p が出来ない。:

ttyp4:makoto@harry 23:58:10/030718(~...ml/ftpmirror)> rm /tmp/P/N* ; env LANG=ja_JP.euc perl -d:DProf /usr/pkg/bin/mknmz --mailnews -O /tmp/P .
ttyp4:makoto@harry 23:58:15/030718(~...ml/ftpmirror)> rm /tmp/P/N* ; env LANG=ja_JP.euc perl /usr/pkg/bin/mknmz --mailnews -O /tmp/P .
この二つで、namazu -l test /tmp/P すると、-d:PRof で作った方は NMZ.p もないし、検索結果も何もない。

#2 [] Unix Magazine

本をずうっと買っていて、止めようかなと思うと、 必ずといっていいほど、面白い記事があって、思いとどまる。

「デバイスドライバは難しい ?」:

遠藤知宏 p86


2003年07月17日(木) 旧暦 [n年日記]

#1 [Perl] Dprof

多分 知っている人知っている のだろうけれど、 (僕は知らなかったので) DProf というのを試して見た。(LANG=C)。
ttyp2:makoto@harry  12:16:04/030717(...software/NetBSD)> perl -d:DProf /usr/pkg/bin/mknmz -O /tmp/O .
[Base]
Date:                Thu Jul 17 12:14:40 2003
Added Documents:     424
Size (bytes):        1,651,659
Total Documents:     424
Added Keywords:      53,050
Total Keywords:      53,050
Wakati:              module_kakasi -ieuc -oeuc -w
Time (sec):          94
File/Sec:            4.51
System:              netbsd
Perl:                5.006001
Namazu:              2.0.13pre1

ttyp2:makoto@harry  12:15:31/030717(...software/NetBSD)> dprofpp tmon.out 
Total Elapsed Time = 84.51746 Seconds
  User+System Time = 79.96798 Seconds
Exclusive Times
%Time ExclSec CumulS #Calls sec/call Csec/c  Name
 51.5   41.24 41.228    302   0.1366 0.1365  html::get_author
 11.0   8.815  7.561 119868   0.0001 0.0001  mknmz::hash
 9.51   7.607  7.606    426   0.0179 0.0179  File::MMagic::checktype_data
 6.19   4.948  4.881   1664   0.0030 0.0029  mknmz::wordcount_sub
 4.48   3.585 10.969    424   0.0085 0.0259  mknmz::make_phrase_hash
 4.11   3.288  2.873  32123   0.0001 0.0001  File::MMagic::readMagicLine
 3.92   3.137  5.460  32123   0.0001 0.0002  File::MMagic::magicMatchStr
 2.24   1.790  1.790      1   1.7900 1.7896  mknmz::write_index_sub
 2.09   1.675  6.515    424   0.0040 0.0154  mknmz::count_words
 1.46   1.170  1.170      1   1.1700 1.1698  mknmz::write_phrase_hash_sub
 1.11   0.890  0.726   9897   0.0001 0.0001  IO::File::open
 1.11   0.887  2.241    424   0.0021 0.0053  mknmz::put_field_index
 0.97   0.779  0.976    302   0.0026 0.0032  html::weight_element
 0.90   0.719  6.060    422   0.0017 0.0144  File::MMagic::checktype_magic
 0.68   0.540  0.538    302   0.0018 0.0018  html::get_alt_attr
ちょっとこの数字は意外。半分が html::get_author ?

Mail で LANG=ja_JP.eucJPの時:

[基本]
日付:                Thu Jul 17 12:21:44 2003
追加された文書数:    2,909
大きさ (bytes):      19,412,929
合計の文書数:        2,909
追加検索語数:        2,910
合計検索語数:        2,910
わかち書き:          module_kakasi -ieuc -oeuc -w
経過時間 (秒):       120
譜/秒:               24.24
系:                  netbsd
Perl:                5.006001
Namazu:              2.0.13pre1

ttyp4:makoto@harry  12:21:44/030717(~/Mail/inbox)> dprofpp tmon.out  
Total Elapsed Time = 98.30404 Seconds
  User+System Time = 89.79705 Seconds
Exclusive Times
%Time ExclSec CumulS #Calls sec/call Csec/c  Name
 71.2   63.98 63.928   2909   0.0220 0.0220  File::MMagic::checktype_data
 7.48   6.717 16.190   2909   0.0023 0.0056  mknmz::put_field_index
 5.90   5.298  4.212  67063   0.0001 0.0001  IO::File::open
 3.54   3.176 10.995  67063   0.0000 0.0002  util::fopen
 3.41   3.058  4.679  67063   0.0000 0.0001  IO::File::new
 2.39   2.146 70.887   2910   0.0007 0.0244  mknmz::load_document
 2.32   2.079  1.442  67063   0.0000 0.0000  Symbol::gensym
 2.12   1.908  1.631  52385   0.0000 0.0000  util::tmpnam
 2.11   1.899  2.525  67063   0.0000 0.0000  IO::Handle::new
 1.81   1.629  1.348   2909   0.0006 0.0005  File::MMagic::checktype_byfilename
 1.64   1.469  0.713 134127   0.0000 0.0000  IO::Handle::DESTROY
 1.62   1.459 10.176  61223   0.0000 0.0002  util::efopen
 1.38   1.240  0.707  93133   0.0000 0.0000  util::dprint
 1.17   1.054 91.894   2910   0.0004 0.0316  mknmz::namazu_core
 1.15   1.029  1.487   2943   0.0003 0.0005  util::readfile
ttyp4:makoto@harry  12:23:02/030717(~/Mail/inbox)> 
こちらは 70% が File::MMagic::checktype_data これもかなり意外。 (もし上の数字が合っているとしてだけれど) foreach の中での sort と 外側の sort と sort が二か所もあるのが問題か ? 僕の使っているのが古い ?
# $Id: MMagic.pm,v 1.45 2001/06/15 08:08:10 knok Exp $
該当の部分は新しいものと同じらしい。
# $Id: MMagic.pm,v 1.57 2003/05/08 13:36:11 knok Exp $
つまらなく安易な話として、mail に決っているものだったら、File::MMagic をとばす方が(自分としては)楽しい気がする。

--mailnews を指定するとそうなる ?:

[基本]
日付:                Thu Jul 17 13:50:07 2003
追加された文書数:    2,909
大きさ (bytes):      19,412,929
合計の文書数:        2,909
追加検索語数:        2,910
合計検索語数:        2,910
わかち書き:          module_kakasi -ieuc -oeuc -w
経過時間 (秒):       51
譜/秒:               57.04
系:                  netbsd
Perl:                5.006001
Namazu:              2.0.13pre1

ttyp4:makoto@harry  13:50:07/030717(~/Mail/inbox)> dprofpp tmon.out
Total Elapsed Time = 27.06984 Seconds
  User+System Time = 17.11984 Seconds
Exclusive Times
%Time ExclSec CumulS #Calls sec/call Csec/c  Name
 35.5   6.082 14.059   2909   0.0021 0.0048  mknmz::put_field_index
 34.0   5.837  4.358  67063   0.0001 0.0001  IO::File::open
 19.4   3.324 10.468  67063   0.0000 0.0002  util::fopen
 17.6   3.016  4.378  67063   0.0000 0.0001  IO::File::new
 14.3   2.459  1.618  67063   0.0000 0.0000  Symbol::gensym
 12.6   2.167  2.743  67063   0.0000 0.0000  IO::Handle::new
 10.8   1.858  1.307  52385   0.0000 0.0000  util::tmpnam
 10.4   1.795  4.821   2910   0.0006 0.0017  mknmz::load_document
 9.92   1.699  0.645 134127   0.0000 0.0000  IO::Handle::DESTROY
 9.16   1.568  9.319  61223   0.0000 0.0002  util::efopen
 7.54   1.290 23.065   2910   0.0004 0.0079  mknmz::namazu_core
 6.89   1.179  0.489  90224   0.0000 0.0000  util::dprint
 5.95   1.018  0.783   2915   0.0003 0.0003  mknmz::add_target
 5.48   0.939  1.130   2943   0.0003 0.0004  util::readfile
 5.30   0.907  1.193   2909   0.0003 0.0004  mknmz::complete_field_info
ttyp4:makoto@harry  13:51:23/030717(~/Mail/inbox)> 

#2 Devel::DProf って初めて知った

かなりボケている。

2.0.12 mef:

[基本]
日付:                Thu Jul 17 16:04:18 2003
追加された文書数:    2,909
大きさ (bytes):      19,412,929
合計の文書数:        2,909
追加検索語数:        2,910
合計検索語数:        2,910
わかち書き:          module_kakasi -ieuc -oeuc -w
経過時間 (秒):       46
譜/秒:               63.24
系:                  netbsd
Perl:                5.006001
Namazu:              2.0.12

ttyp1:makoto@harry  16:04:18/030717(~/Mail/inbox)> !dp:p
dp: Event not found.
ttyp1:makoto@harry  16:04:22/030717(~/Mail/inbox)> dprofpp -u
Total Elapsed Time = 31.28406 Seconds
         User Time = 20.16668 Seconds
Exclusive Times
%Time ExclSec CumulS #Calls sec/call Csec/c  Name
 24.3   4.919 11.330   2909   0.0017 0.0039  mknmz::put_field_index
 18.4   3.720  1.476  67063   0.0001 0.0000  IO::File::open
 11.6   2.350  7.288  67063   0.0000 0.0001  util::fopen
 11.6   2.340  4.282  67063   0.0000 0.0001  IO::File::new
 9.97   2.010  1.836  67063   0.0000 0.0000  Symbol::gensym
 7.63   1.539  3.615   2910   0.0005 0.0012  mknmz::load_document
 7.09   1.430  1.191  52385   0.0000 0.0000  util::tmpnam
 5.75   1.160  2.489  67063   0.0000 0.0000  IO::Handle::new
 4.86   0.980  0.523 134127   0.0000 0.0000  IO::Handle::DESTROY
 4.80   0.969 18.422   2910   0.0003 0.0063  mknmz::namazu_core
 4.31   0.870  6.993  61223   0.0000 0.0001  util::efopen
 3.72   0.750  0.405  90224   0.0000 0.0000  util::dprint
 2.58   0.520  0.941   2909   0.0002 0.0003  mknmz::complete_field_info
 2.48   0.500  0.446   8727   0.0001 0.0001  mknmz::wordcount_sub
 2.13   0.430  0.757   2909   0.0001 0.0003  mknmz::count_words

patch 後:

[基本]
日付:                Thu Jul 17 16:12:51 2003
追加された文書数:    2,909
大きさ (bytes):      19,412,929
合計の文書数:        2,909
追加検索語数:        2,910
合計検索語数:        2,910
わかち書き:          module_kakasi -ieuc -oeuc -w
経過時間 (秒):       46
譜/秒:               63.24
系:                  netbsd
Perl:                5.006001
Namazu:              2.0.12

ttyp1:makoto@harry  16:12:51/030717(~/Mail/inbox)> !dp:p
dprofpp -u
ttyp1:makoto@harry  16:12:56/030717(~/Mail/inbox)> dprofpp -u
Total Elapsed Time = 29.81235 Seconds
         User Time = 14.04638 Seconds
Exclusive Times
%Time ExclSec CumulS #Calls sec/call Csec/c  Name
 32.3   4.537  8.980   2909   0.0016 0.0031  mknmz::put_field_index
 25.1   3.529  1.376  67063   0.0001 0.0000  IO::File::open
 15.0   2.119  3.579  67063   0.0000 0.0001  IO::File::new
 14.1   1.989  5.843  67063   0.0000 0.0001  util::fopen
 13.6   1.920  1.486  67063   0.0000 0.0000  Symbol::gensym
 10.7   1.506  3.250   2910   0.0005 0.0011  mknmz::load_document
 9.82   1.379  2.148  67063   0.0000 0.0000  IO::Handle::new
 8.83   1.240  0.806  52385   0.0000 0.0000  util::tmpnam
 7.48   1.050  0.452 134127   0.0000 0.0000  IO::Handle::DESTROY
 6.91   0.970  5.783  61223   0.0000 0.0001  util::efopen
 6.18   0.868 14.948   2910   0.0003 0.0051  mknmz::namazu_core
 5.62   0.790  0.290  90224   0.0000 0.0000  util::dprint
 3.42   0.480  0.684   2909   0.0002 0.0002  mknmz::complete_field_info
 3.13   0.440  0.301   2915   0.0002 0.0001  mknmz::add_target
 2.92   0.410  0.738   2909   0.0001 0.0003  mknmz::count_words
ttyp1:makoto@harry  16:14:01/030717(~/Mail/inbox)> ls -l /usr/pkg/bin/mkn*
-r-xr-xr-x  2 root  wheel  70168 Jul 17 16:09 /usr/pkg/bin/mknmz*
-r-xr-xr-x  1 root  wheel  70112 Jul 17 16:02 /usr/pkg/bin/mknmz-2.0.12*
-r-xr-xr-x  2 root  wheel  70168 Jul 17 16:09 /usr/pkg/bin/mknmz-2.0.12-put_field_index-patch*
しかも NMZ.p NMZ.pp が出来ていない。

--mailnews を付けないと:

[基本]
日付:                Thu Jul 17 16:23:13 2003
追加された文書数:    2,909
大きさ (bytes):      19,412,929
合計の文書数:        2,909
追加検索語数:        2,910
合計検索語数:        2,910
わかち書き:          module_kakasi -ieuc -oeuc -w
経過時間 (秒):       113
譜/秒:               25.74
系:                  netbsd
Perl:                5.006001
Namazu:              2.0.12

ttyp1:makoto@harry  16:23:22/030717(~/Mail/inbox)> dprofpp -u
Total Elapsed Time = 98.40882 Seconds
         User Time = 82.86664 Seconds
Exclusive Times
%Time ExclSec CumulS #Calls sec/call Csec/c  Name
 76.7   63.59 63.597   2909   0.0219 0.0219  File::MMagic::checktype_data
 6.01   4.981 10.325   2909   0.0017 0.0035  mknmz::put_field_index
 4.83   4.000  0.973  67063   0.0001 0.0000  IO::File::open
 3.05   2.529  4.185  67063   0.0000 0.0001  IO::File::new
 2.69   2.229  6.376  67063   0.0000 0.0001  util::fopen
 2.32   1.920  1.503  67063   0.0000 0.0000  Symbol::gensym
 2.31   1.917 68.317   2910   0.0007 0.0235  mknmz::load_document
 2.06   1.710  2.439  67063   0.0000 0.0000  IO::Handle::new
 1.93   1.600  1.313  52385   0.0000 0.0000  util::tmpnam
 1.46   1.210  1.207   2909   0.0004 0.0004  File::MMagic::checktype_byfilename
 1.34   1.110  6.476  61223   0.0000 0.0001  util::efopen
 1.32   1.090  0.446 134127   0.0000 0.0000  IO::Handle::DESTROY
 1.23   1.019 82.136   2910   0.0004 0.0282  mknmz::namazu_core
 0.97   0.800  0.347  93133   0.0000 0.0000  util::dprint
 0.83   0.690  0.812   2909   0.0002 0.0003  mknmz::complete_field_info
ttyp1:makoto@harry  16:24:27/030717(~/Mail/inbox)> 
これでも NMZ.p* が出来ていない。

#3 [Namazu] また久し振りに初めから作る

--mailnews 付だとやはり速い。
perl -d:DProf /usr/pkg/bin/mknmz --mailnews -f /home/makoto/.mknmzrc-Mail-40 -O /export/namazu-Mail2 Mail
...
334359/334359 - /export/home/makoto/Mail/uucpconfig/tamagw/63 [message/rfc822]
索引を書き出しています...
[基本]
日付:                Thu Jul 17 17:48:30 2003
追加された文書数:    334,359
大きさ (bytes):      1,264,406,175
合計の文書数:        334,359
追加検索語数:        31,279
合計検索語数:        31,279
わかち書き:          module_kakasi -ieuc -oeuc -w
経過時間 (秒):       13,841
譜/秒:               24.16
系:                  netbsd
Perl:                5.006001
Namazu:              2.0.13pre2

ttyp0:makoto@u  17:48:38/030717(~)> 
これは G4/400 での速さ。 前回 の機械は分らない。
と思ったら、また NMZ.p が出来ていない。

perl -dDProf すると、NMZ.p が出来ない:

ようだ。起動に絶対 path を教える必要があるのと 多分関係があるのだろう。


2003年07月16日(水) 旧暦 [n年日記]

#1 [Yahoo] Auction Cisco 2509/2511

が出ているなぁ。とってもおすすめ (シリアルポート監視用)。 既に使っているので自分では買えない。
MAU が必要か。(出せば)。3,000 円というのが出ているが。 高いと思ったら 7 個セットの値段だった。


2003年07月15日(火) 旧暦 [n年日記]

#1 [NetBSD] build.sh 20030713

src/crypto/dist/openssl/crypto/asn1/a_gentm.c: In function `ASN1_GENERALIZEDTIME_set':
src/crypto/dist/openssl/crypto/asn1/a_gentm.c:209: warning: assignment makes pointer from integer without a cast
crypto/dist/openssl/crypto/asn1/a_gentm.c

#2 [Namazu] perldoc -f our

知らなかった。麻薬的便利さがありそう。
  • 名前空間は my と同じ
  • でも local variable を作らない。
  • use strict vars; と書いた時だけ意味の違いがある。
  • そう書いた時に使うと 前に 'package 名::' を付けなくてもいい
  • (ただしそれは名前空間の範囲内のこと)
(と書いたものの、良く分らない)

make check:

PASS: ja-namazu-1
===================
All 46 tests passed
*** Error code 1
全部終っているのに、こういうのはどういう時かな


2003年07月14日(月) 旧暦 [n年日記]

#1 [C] getopt.c 比較

src/gnu:

(...src/gnu)> find . -name getopt.c -ls
  21977 Jan  8  2001 ./dist/bc/lib/getopt.c
  21874 Sep  5  2000 ./dist/cvs/lib/getopt.c
  30595 Jan 26 09:43 ./dist/diffutils/lib/getopt.c
  28770 Jun 27  1999 ./dist/gawk/getopt.c
  30123 Oct 31  2000 ./dist/gettext/lib/getopt.c
  30019 Jan 27 08:15 ./dist/grep/lib/getopt.c
  34565 Jul  1 02:52 ./dist/groff/src/libs/libgroff/getopt.c
  34416 Feb 13 17:57 ./dist/texinfo/lib/getopt.c
  30126 Apr 23  2001 ./dist/toolchain/libiberty/getopt.c
  29975 Jul 26  2000 ./dist/toolchain/texinfo/lib/getopt.c
  22198 Jul 26  2000 ./dist/toolchain/texinfo/libtxi/getopt.c
  18047 Feb  4  1998 ./libexec/uucp/libuucp/getopt.c
  21541 Jan 16  2001 ./usr.bin/gzip/getopt.c

diff |wc:

(...src/gnu)> foreach i ( `find . -name getopt.c` )
echo $i
diff foreach? echo $i
foreach? diff ~/software/NAMAZU/develop/head/namazu/lib/getopt.c $i | wc
foreach? end
./dist/bc/lib/getopt.c
     549    2478   15428
./dist/cvs/lib/getopt.c
     551    2426   15219
./dist/diffutils/lib/getopt.c
     74     473    2767
./dist/gawk/getopt.c
     384    1673   10850
./dist/gettext/lib/getopt.c
     199     901    5585
./dist/grep/lib/getopt.c
     187     860    5162
./dist/groff/src/libs/libgroff/getopt.c
     331    1215    8034
./dist/texinfo/lib/getopt.c
     374    1499    9654
./dist/toolchain/libiberty/getopt.c
     196     843    5136
./dist/toolchain/texinfo/lib/getopt.c
     302    1285    8024
./dist/toolchain/texinfo/libtxi/getopt.c
     558    2499   15675
./libexec/uucp/libuucp/getopt.c
     837    4039   24530
./usr.bin/gzip/getopt.c
     898    4250   25862
ttyp0:makoto@toyoko  10:04:39/030714(...src/gnu)> 

過去のメール:



を見ていて、 kakasi-2.3.4 の getopt.c getopt1.c getopt.h を持って来たら、 何の問題もなく
===================
All 46 tests passed
===================
した。

#2 [gcc] 忘れていた話

triage = 選別
実は bugzilla を見るのは初めてだったりして


2003年07月13日() 旧暦 [n年日記]

#1 [MacOSX] MacOSX/NFS client -noresvport (/etc/exports)

Permission denied --- NFS server 側の設定を変えて見る

kakasi-2.3.4:

gcc -dynamiclib -undefined suppress -o .libs/libkakasi.2.1.0.dylib libdict.lo libkakasi.lo libkanjiio.lo liba2.lo libg2.lo libj2.lo libk2.lo libee2.lo libhh2.lo libjj2.lo libkk2.lo libitaiji.lo lib78_83.lo -lc -install_name /usr/local/lib/libkakasi.2.dylib
ld: -undefined error must be used when -twolevel_namespace is in effect
/usr/bin/libtool: internal link edit command failed
make[2]: *** [libkakasi.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2
[quick:~/local-src/kakasi-2.3.4] makoto%

allow_undefined_flag="-undefined suppress":

--- libtool.original    Sat Jul 12 07:06:40 2003
+++ libtool     Sat Jul 12 07:09:23 2003
@@ -197,7 +197,7 @@
 file_magic_cmd="/usr/bin/file -L"
 
 # Flag that allows shared libraries with undefined symbols to be built.
-allow_undefined_flag="-undefined suppress"
+allow_undefined_flag=""
 
 # Flag that forces no undefined symbols.
 no_undefined_flag=""

libtool-1.4.1:

/usr/bin/libtool があると、 libtool --version に都合良く答えてくれない。
echo $PATH
/bin:/sbin:/usr/bin:/usr/sbin
..
 set path=(/usr/local/bin $path)

gettext-0.10.40:

env CPPFLAGS="-no-cpp-precomp" ./configure --with-included-gettext
sudo make install

`AM_GNU_GETTEXT' not found:

aclocal: configure.in: 89: macro `AM_GNU_GETTEXT' not found in library
変更前
[quick:/usr/share/aclocal] makoto% ls -lg
total 256
-rw-r--r--  1 root  wheel  117724 Jul 14  2002 libtool.m4
-rw-r--r--  1 root  wheel   10311 Jul 14  2002 ltdl.m4
cd /usr/share/aclocal
sudo ln -s /usr/local/share/aclocal/* .

make:

gcc -g -O2 -Wall -pedantic -o .libs/namazu form.o namazu.o output.o rcfile.o result.o usage.o namazu-cmd.o -L/usr/local/lib -lintl -L../nmz/.libs -lnmz ../lib/libnmzut.a -lm
ld: multiple definitions of symbol _getopt
/usr/lib/libm.dylib(getopt.So) definition of _getopt
../lib/libnmzut.a(getopt.o) definition of _getopt in section (__TEXT,__text)
ld: multiple definitions of symbol _opterr
/usr/lib/libm.dylib(getopt.So) definition of _opterr
../lib/libnmzut.a(getopt.o) definition of _opterr in section (__DATA,__data)
ld: multiple definitions of symbol _optind
/usr/lib/libm.dylib(getopt.So) definition of _optind
../lib/libnmzut.a(getopt.o) definition of _optind in section (__DATA,__data)
ld: multiple definitions of symbol _optopt
/usr/lib/libm.dylib(getopt.So) definition of _optopt
../lib/libnmzut.a(getopt.o) definition of _optopt in section (__DATA,__data)
make[2]: *** [namazu] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
[quick:namazu-dev/stable-2-0/namazu] makoto%

_getopt _opterr _optind _optopt:

gcc -v hoge.c:

CITE
[quick:namazu-dev/stable-2-0/namazu] makoto% gcc -v test.c
Reading specs from /usr/libexec/gcc/darwin/ppc/3.1/specs
Thread model: posix
Apple Computer, Inc. GCC version 1151, based on gcc version 3.1 20020420 (prerelease)
/usr/libexec/gcc/darwin/ppc/cpp-precomp -smart -arch ppc -lang-c -v -D__GNUC__=3 -D__GNUC_MINOR__=1 -D__GNUC_PATCHLEVEL__=0 -D__APPLE_CC__=1151 -D__ppc__ -D__POWERPC__ -D__NATURAL_ALIGNMENT__ -D__MACH__ -D__BIG_ENDIAN__ -D__APPLE__ -D__ppc__ -D__POWERPC__ -D__NATURAL_ALIGNMENT__ -D__MACH__ -D__BIG_ENDIAN__ -D__APPLE__ -D__NO_INLINE__ -D__STDC_HOSTED__=1 -D__DYNAMIC__ test.c -isystem /usr/include/gcc/darwin/3.1 -ispecs=/usr/libexec/gcc/darwin/ppc/3.1/specs -D__SIZE_TYPE__=long unsigned int -D__PTRDIFF_TYPE__=int -D__WCHAR_TYPE__=int -D__WINT_TYPE__=unsigned int /var/tmp//ccKQK1ng.i
Apple cpp-precomp 6.14 (devkit-213/devkit_tools-214)
Reading predefined macros from '/usr/libexec/gcc/darwin/ppc/3.1/specs'
test.c:4: illegal external declaration, missing `;' after `normal'
cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode
/usr/libexec/gcc/darwin/ppc/3.1/cc1 -cpp-precomp /var/tmp//ccKQK1ng.i -fPIC -quiet -dumpbase test.c -version -o /var/tmp//ccUPFpJo.s
GNU CPP version 3.1 20020420 (prerelease) (cpplib) (Darwin/PowerPC)
GNU C version 3.1 20020420 (prerelease) (ppc-darwin)
compiled by GNU C version 3.1 20020420 (prerelease).
test.c:6: parse error at end of input
[quick:namazu-dev/stable-2-0/namazu] makoto%
make check
FAIL: namazu-1
FAIL: namazu-2
FAIL: namazu-3
FAIL: namazu-4
FAIL: namazu-5
FAIL: namazu-6
FAIL: namazu-7
FAIL: namazu-8
FAIL: namazu-9
-c を拾っていなかったため。namazu-cmd.c の中を一点修正。

#2 [Namazu] わかち書きに MeCab



2003年07月12日() 旧暦 [n年日記]

#1 [ChiBUG] ChiBUG お食事会

高田馬場 18:00 集合。 カレーやさん。何という名前か良く見ていなかったが、 東京新聞に載っていた。 マラバール 。 とても良い店だった。 「レジの人が日本語が分らない」と聞いていたので、 どんな怪しげなお店かと思ったら、全然予想と違った。
また行きたくなるお店。

mrtg の間隔。:

5 分。でも daemon mode もある。

MacOSX の NFS は -noresvport が必要:

MacOSX で Namazu:

Panther:

Hおか さんが、わざわざ出向いて見せてくれる。 素晴しい。
  • Expose
  • Darwin port manager
  • UFS の性能改善
  • Mail の thread 表示
  • X11 の付属



最近の日記
2024年03月10日
停電 (瞬電)
2024年03月03日
the second try on bare-metal
useradd
2024年02月29日
opendkim and senmail
2024年01月24日
chat/iam 0.0.8
2024年01月21日
uselocale vs setlocale (textproc/R-readxl)
以上、9 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)