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

先月 2009年01月 来月
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 による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2009年01月30日(金) 旧暦 [n年日記] [更新:"2009/02/02 01:20:03"]

#1 [] 猫が取手を回して扉を開ける

猫が扉を押して開けるというのはあるかも知れないが、 わが家の生後 6 か月の キジサビ(名前はロゼ) は、取手に飛びついて、下に回し、 開けて部屋に入れるようになってしまった。生憎鍵は付いていない。

人間が寝ていても午前 3 時過ぎとか 5:30 AM とかにこれをやるのでたまらない。



2009年01月25日() 旧暦 [n年日記] [更新:"2009/01/25 20:29:24"]

#1 [機械] RX1550-LE128H がこわれた ?

机上機の ML115-G1 であるが、 朝画面を見ると真黒のまま。ping に反応もないので、電源を入直す。 すると、 一瞬 X11 まで行ったりしたが、 次に電源を入れた時には BIOS の直後に暗転する。その後全く電源が入らなくなる。

部品を入替えたりして結局、 ATI Radeon RX1550 128M (右の写真) がこわれたらしいと判る。 これは 後から追加したもので、 僕の日記に 2008/01/28/ に使い始めた、 と書いてある。 冷却扇を手で回すと、軽くは回らないので、どうも 埃が入って、回りが悪くなり、温度が上って、こわれたらしい。
玄人志向の RX1550-LE128H を見ると、扇の形が少し違うが、誤差の範囲かな。



2009年01月24日() 旧暦 [n年日記] [更新:"2009/01/25 16:54:04"]

#1 [NetBSD] Install NetBSD on Dell PowerEdge T105

Dell PowerEdge T105 に NetBSD を入れているが、 いろいろと小細工が必要
i386/4.99.70
入手後すぐに NetBSD/amd64 4.99.70 を入れた
network (bge0) と Disk が見えなかった(ので修正して入れて見た)
amd64/5.0_BETA (200901130000Z)
  • network は見えるようになっていた
  • sysinst で disk も見えた
  • しかし GENERIC で起動したら disk が見えないので kernel に
    PCI_ADDR_FIXUP
    PCI_BUS_FIXUP
    
    の二行を追加したものを用意して動かす
i386/5.0_BETA (200901220000Z)
pckbc: cmd word write error
という字が見える
viaide1 port0: device present, speed: 1.5Gb/s
stops after above line is shown.
という行を表示した後、先に進まない
i386/5.0_BETA (200901220000Z) 修正版
本来は (-current では) pxeboot でも /boot.cfg を転送したり pxeboot の入力待で、次のようなことを入力すれば MD kernel は作らなくてもいいと教えて貰ったけれど、
load tftp:miniroot.kmod
boot tftp:netbsd-GENERIC
一応、(以前と同じ方法で) 次の二行が入った GENERIC と GENERIC_MD を作って
PCI_ADDR_FIXUP
PCI_BUS_FIXUP
それを使って sysinst
無事動く
NetBSD t-105 5.0_BETA NetBSD 5.0_BETA (GENERIC_T105) #0: 
Sat Jan 24 22:59:05 JST 2009  
root@modena:/fport/src/sys/arch/i386/compile/obj/GENERIC_T105 i386
これが入っている kernel を初めから用意してくれていると助かるのになぁ


2009年01月22日(木) 旧暦 [n年日記] [更新:"2009/01/24 09:25:37"]

#1 [] 鴬と目白

外でジッジッとウグイスの地鳴きの声がするので、ガラス越に外を見ると、 何と (猫の額のほどの大きさの) 庭にウグイスが来ている。きょうはメジロも 二羽ほど確認した。余程 山 に食べるものがないのだろうか。


2009年01月21日(水) 旧暦 [n年日記] [更新:"2009/01/22 12:10:31"]

#1 [機械] Disk の製造番号を調べる方法

最近某製造会社の Disk が問題になっているらしいが、 実のところ僕は WD (Western Digital) が一番の好みで、 とは言っても手元には IBM, Hitachi, HGST, Samsung とか、いろいろあるが 多分 Seagate は自分からは買わない製造会社かも知れない。しかし、 完成品を買うと、中にたまたま入っているということは良くある。

で本題だけれど、最近の NetBSD では atactl を使って、 動作中のものの製造番号 (Serial) を調べることが出来る。 こんな具合にだ。

pts/0:makoto@t-105 1:05:47/090122(...gcc/work)>  \
sudo atactl /dev/wd0 identify | grep -i 'serial #'
Model: WDC WD800AAJS-18TDA1, Rev: 01.00A0, Serial #:      WD-WMAM9CPP455
次のものは HP の Firmware が入っている、さて、どこのだったかな。
Model: FB080C4080, Rev:     HPF0, Serial #: 5RW20BRJ
Model: FB080C4080, Rev:     HPF0, Serial #: 5RW2K07S
Model: FB080C4080, Rev:     HPF, Serial #: 5RW2K065
Model: FB080C4080, Rev:     HPF0, Serial #: 9RW0EBMP
どうもこれらが、箱を買ったらたまたま入っている、問題の会社のものかも知れない。


2009年01月20日(火) 旧暦 [n年日記] [更新:"2009/01/20 23:41:25"]

#1 [無線] 米国のアナログ TV は 2009/02/17 迄

日本では 2011 年 7/24 に アナログ TV 放送が終わることになっている。 最近 ARRL の会員になったので、月刊誌 QST が送られてくるが、それを見て いたら、米国では 2009/02 からアナログ TV 放送が終わるらしい。 (しかし今探してもその記事が見つからない)
Google 先生に聞くと 2009/02/17 日以降は、いままでの大電力の放送は 終了
On February 17, 2009 all full-power broadcast television stations in the United States will stop broadcasting on analog airwaves and begin broadcasting only in digital.
と書いてある。やはり米国は進んでいるのだな、と変な感心のしかたをしてしまう。 (しかし後一か月もないではないか)


2009年01月19日(月) 旧暦 [n年日記] [更新:"2009/01/19 16:22:24"]

#1 [gcc] gcc-4.2.x with NetBSD/amd64 fails

Strange thing is that when building gcc-4.2.x on NetBSD/amd64 machine,
 361  12:35   ../gcc-4.2.4/configure --enable-languages=c --host=amd64--netbsd
I am getting following problem.
/export/local-src/gcc-4.2.4-work-amd64-enable-c-fail/./prev-gcc/xgcc
-B/export/local-src/gcc-4.2.4-work-amd64-enable-c-fail/./prev-gcc/
-B/usr/local/amd64--netbsd/bin/ -c -DHAVE_CONFIG_H -g -O2
-I. -I../../gcc-4.2.4/libiberty/../include -W -Wall -pedantic
-Wwrite-strings -Wstrict-prototypes -Wc++-compat
../../gcc-4.2.4/libiberty/mempcpy.c -o mempcpy.o
../../gcc-4.2.4/libiberty/mempcpy.c:35: 
	error: expected declaration specifiers or '...' before 'size_t'
../../gcc-4.2.4/libiberty/mempcpy.c:35: 
	warning: conflicting types for built-in function 'memcpy'
../../gcc-4.2.4/libiberty/mempcpy.c:38: 
	error: expected declaration specifiers or '...' before 'size_t'
../../gcc-4.2.4/libiberty/mempcpy.c:39: 
	warning: conflicting types for built-in function 'mempcpy'
../../gcc-4.2.4/libiberty/mempcpy.c: In function 'mempcpy':
../../gcc-4.2.4/libiberty/mempcpy.c:40: error: 'len' undeclared (first use in this function)
../../gcc-4.2.4/libiberty/mempcpy.c:40: 
	error: (Each undeclared identifier is reported only once
../../gcc-4.2.4/libiberty/mempcpy.c:40: error: for each function it appears in.)
../../gcc-4.2.4/libiberty/mempcpy.c:40: error: too many arguments to function 'memcpy'

gmake[3]: *** [mempcpy.o] Error 1
gmake[3]: Leaving directory `/export/local-src/gcc-4.2.4-work-amd64-enable-c-fail/libiberty'
But by applying following patch, at least configuration shown above build completes.
--- gcc-4.2.4/include/ansidecl.h-orig	2005-07-04 00:38:39.000000000 +0900
+++ gcc-4.2.4/include/ansidecl.h	2009-01-19 14:23:58.000000000 +0900
@@ -368,4 +368,7 @@
 #define __extension__
 #endif
 
+#if defined(__x86_64__)
+typedef unsigned long size_t;
+#endif
 #endif	/* ansidecl.h	*/


2009年01月17日() 旧暦 [n年日記] [更新:"2009/01/18 13:46:07"]

#1 [] ミラノ永眠(17.5才)

1991 年に館山で生まれて、1994 年にわが家にやって来た シャム猫の ミラノ が永眠した。 19:30 から 21:00 までの近所の会合に出ていて帰って来たら 20:00 頃心臓が止ったということだった。 この一か月くらい寝たきりだった。 15 年近くも一緒に暮していた訳だ。 実は Emacs らくらく入門にも p244 に写真が載っている。


2009年01月15日(木) 旧暦 [n年日記] [更新:"2009/01/15 22:03:50"]

#1 [pkgsrc][wip] wip/scim-anthy

obache さんが更新してくれたので wip/scim や wip/scim-anthy の make package が可能になった。
でどうやって使うか ?
wip/scim/work/scim-1.4.7/README を見て
The main program of SCIM is named scim. The usage of scim is:

  scim [option]...

  The options are: 
    -l, --list            List all of available modules.
    -f, --frontend name   Uses specified FrontEnd module.
    -c, --config name     Uses specified Config module.
    -e, --engines name    Load specified set of input method engines.
    -ne,--no-engines name Do not load those set of engines.
    -d, --daemon          Run scim as a daemon.
    --no-socket           Do not try to start a SCIM SocketFrontEnd daemon.
    -h, --help            Show this help message.
scim -l を入力したり
   140  10:12   scim -f socket -c simple -ne socket -d -e anthy
として見たりしている (NetBSD/4.0 i386, X11 は sysinst で入れたもの)
これで FireFox に日本語が入力可能となる。 しかし実はどうやって切替えるかが分っていない。 Control + Space や Shift + Space では替らない気がする。

inputmethod/uim:

でも実は、入力出来ているように見えたのは scim ではなくて (?)
/usr/pkg/libexec/uim-helper-server (uim-helper-serve)
これなのかも知れない。入力している窓で C-\ を入力すると、 日本文字・英字の切替が出来る。uim-helper-server は
uim-1.5.4           Multilingual input method library
で入ったものだ。何故動いているのかな ?


2009年01月13日(火) 旧暦 [n年日記] [更新:"2009/01/18 10:02:04"]

#1 [NetBSD] inside of /kern disappear

As is reported in kern/38778, after some time of boot, ls -l /kern does not show anything.
The trigger to this symptom may be intensive files access, the number may be important. In my case, rsync -ah NFS/ to local-disk/ of large filesystem will easily trigger the one. In my case, the size is 180GB. But tar ztvf Large.tar.gz may be another example, someone told me. It only needs two minutes to make /kern empty.
I have looked at CVS repository and it turned out the changes between 2008/01/25 0000 JST to 2008/01/25 0600 JST is the reason to this behavior. See source changes in Jan. 2008
( cd /usr/src/sys ; cvs diff -D '2008-01-24 1500-UTC' -D '2008-01-24 2100-UTC' . )
may give you the related changes.
It is now reported to netbsd-bugs.

The responce to netbsd-bugs should be sent to gnats-bugs at netbsd.org. David Holland kindly transfered it, and it is now linked to the original -> KERN/38265



2009年01月08日(木) 旧暦 [n年日記] [更新:"2009/01/08 20:33:54"]

#1 [NetBSD][pkgsrc] wip/scim が make 不可

最近の NetBSD/4.0 + pkgsrc だと scim が make 出来ない
scim_chartraits.cpp:44: error: no member function 'assign' declared in 'std::char_traits<unsigned int>'
scim_chartraits.cpp:44: error: invalid function declaration
SCIM の build を阻む char_traits って それで、でも試したいという時には
  1. obache さんに何とかしてと頼む -> 僕も何とかしたいんだけれどと言われてしまうかな
  2. 自分で FreeBSD か Linux を見て回避手段を施して make
  3. あきらめて gcc-3 を使って make
とういう訳で、僕の場合には 3 番目。
  • lang/gcc3 で make package
  • inputmethod/scim で
    sudo env PATH=/usr/pkg/gcc3/bin:${PATH} make package
    
gcc34-3.4.6nb1      This is the gcc 3.4 compiler
では gcc-4 と同様にだめだった。


2009年01月06日(火) 旧暦 [n年日記] [更新:"2009/01/06 12:59:45"]

#1 [gcc] gcc-4.2.1 で --enable-checking

In info from gcc-4.2.1, I read in 9.2 Overview, --enable-checking is explained. It is said as
For safety, it is useful to configure GCC with `--enable-checking'. Although this results in a significant performance penalty (since all tree types are checked at run-time), and is therefore inappropriate in a release version, it is extremely helpful during the development process.
So I have tried for i386 as:
   138  11:09   cd /export/local-src/
   140  11:09   mkdir gcc-4.2.1-i386-enable-checking
   141  11:09   cd gcc-4.2.1-i386-enable-checking
   142  11:10   ../gcc-4.2.1-dont-modify/configure --host=i386--netbsd --enable-languages=c
   143  11:10   gmake
But I am getting
../../gcc-4.2.1-dont-modify/gcc/libgcc2.c:673: warning: alignment of '__clz_tab' is greater than maximum object file alignment. Using 16
../../gcc-4.2.1-dont-modify/gcc/libgcc2.c:673: warning: alignment of '__clz_tab' is greater than maximum object file alignment. Using 16
/var/tmp//ccXhI8ct.s: Assembler messages:
/var/tmp//ccXhI8ct.s:377: Error: alignment not a power of 2
gmake[4]: *** [libgcc/./_clz.o] Error 1
gmake[4]: Leaving directory `/export/local-src/gcc-4.2.1-i386-enable-checking/gcc'
gmake[3]: *** [libgcc.a] Error 2
Shall I look for 4.2.4 instead of 4.2.1 ?
/export/local-src/gcc-4.2.4-enable-checking/./gcc/xgcc -B/export/local-src/gcc-4.2.4-enable-checking/./gcc/ -B/usr/local/i386--netbsd/bin/ -B/usr/local/i386--netbsd/lib/ -isystem /usr/local/i386--netbsd/include -isystem /usr/local/i386--netbsd/sys-include -O2 -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../gcc-4.2.4/gcc -I../../gcc-4.2.4/gcc/. -I../../gcc-4.2.4/gcc/../include -I./../intl -I../../gcc-4.2.4/gcc/../libcpp/include -I../../gcc-4.2.4/gcc/../libdecnumber -I../libdecnumber -DL_clz -c ../../gcc-4.2.4/gcc/libgcc2.c -o libgcc/./_clz.o
../../gcc-4.2.4/gcc/libgcc2.c:673: warning: alignment of '__clz_tab' is greater than maximum object file alignment. Using 16
../../gcc-4.2.4/gcc/libgcc2.c:673: warning: alignment of '__clz_tab' is greater than maximum object file alignment. Using 16
/var/tmp//ccnOUlHg.s: Assembler messages:
/var/tmp//ccnOUlHg.s:377: Error: alignment not a power of 2
gmake[4]: *** [libgcc/./_clz.o] Error 1
gmake[4]: Leaving directory `/export/local-src/gcc-4.2.4-enable-checking/gcc'
gmake[3]: *** [libgcc.a] Error 2
Even with 4.2.4, the same thing on this issue as above.
375          .stabs  "DWunion:t236=237=u8s:235,0,64;ll:223,0,64;;",128,0,423,0
376  .globl ___clz_tab
377          .align 5,0x90
378          .type   ___clz_tab, @object
379          .size   ___clz_tab, 256
380  ___clz_tab:
381          .byte   0
382          .byte   1
383          .byte   2
384          .byte   2
To my understanding, align 5 means align 2^5, two to the power of 5, = 32, Leaning to the problem gas side ?
From the info for gas:
The first expression (which must be absolute) is the alignment required, as described below.
....
The way the required alignment is specified varies from system to system. For the arc, hppa, i386 using ELF, i860, iq2000, m68k, or32, s390, sparc, tic4x, tic80 and xtensa, the first expression is the alignment request in bytes.
No, it looks gcc side problem, or gcc thinks it is two to the power of, and gas thinks it is in bytes.

gcc (GCC) 4.1.2 20061021 prerelease (NetBSD nb3 20061125)
output as align 32 (but this is without --enable-checking)b

 10  .globl __clz_tab
 11          .section        .rodata
l 12          .align 32
 13          .type   __clz_tab, @object
 14          .size   __clz_tab, 256
the patch applied.
--- gcc-4.2.4/gcc/config/i386/bsd.h~	2007-09-02 00:28:30.000000000 +0900
+++ gcc-4.2.4/gcc/config/i386/bsd.h	2009-01-06 12:51:08.000000000 +0900
@@ -70,7 +70,7 @@
    to a multiple of 2**LOG bytes.  */
 
 #define ASM_OUTPUT_ALIGN(FILE,LOG)	\
-  if ((LOG)!=0) fprintf ((FILE), "\t.align %d\n", (LOG))
+  if ((LOG)!=0) fprintf ((FILE), "\t.align %d\n", 1<<(LOG))
 
 /* This is how to store into the string BUF
    the symbol_ref name of an internal numbered label where
--- gcc-4.2.4/gcc/config/i386/netbsd.h~	2004-07-18 06:09:14.000000000 +0900
+++ gcc-4.2.4/gcc/config/i386/netbsd.h	2009-01-06 12:55:50.000000000 +0900
@@ -41,7 +41,7 @@
    segment.  */
 #undef ASM_OUTPUT_ALIGN
 #define ASM_OUTPUT_ALIGN(FILE,LOG) \
-  if ((LOG)!=0) fprintf ((FILE), "\t.align %d,0x90\n", (LOG))
+  if ((LOG)!=0) fprintf ((FILE), "\t.align %d,0x90\n", 1<<(LOG))
 
 /* Profiling routines, partially copied from i386/osfrose.h.  */
 
and now getting:
checking for i386--netbsd-gcc... /export/local-src/gcc-4.2.4-enable-checking/./prev-gcc/xgcc -B/export/local-src/gcc-4.2.4-enable-checking/./prev-gcc/ -B/usr/local/i386--netbsd/bin/
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
config.log shows:
/usr/bin/ld: warning: type and size of dynamic symbol `_fini' are not defined
/usr/bin/ld: warning: cannot find entry symbol start; defaulting to 08048334
/usr/lib/crt0.o: In function `___start':
: undefined reference to `main'
/export/local-src/gcc-4.2.4-enable-checking/./prev-gcc/libgcc.a(__main.o): In function `__do_global_ctors':
/export/local-src/gcc-4.2.4-enable-checking/gcc/../../gcc-4.2.4/gcc/libgcc2.c:2146: undefined reference to `_atexit'


2009年01月04日() 旧暦 [n年日記] [更新:"2009/01/05 01:09:41"]

#1 [季節] 年賀状をやっと書いた

例によって LaTeX で作り、宛名の方は手書きで、 年賀状をやっと書いた。約 40 枚。

#2 [無線] 阿見方面に見学

ちょっとすごい塔を見て来た。帰りはずうっと下の道で戻る。


2009年01月02日(金) 旧暦 [n年日記] [更新:"2009/01/05 01:21:02"]

#1 [無線] 栃木方面に見学

朝 8:02 の電車で出発。11:10 氏家。 そこで拾ってもらって某山林を見に行く。馬頭道の駅で昼食。 その後、瓜連(何て読むんだ ?) 近くで積込作業。所沢に 20 時少し前に到着。
20:11 小手指
20:45 池袋
20:58 東京
21:43 千葉
22:01 本千葉 
で戻る


2009年01月01日(木) 旧暦 [n年日記] [更新:"2009/01/05 01:12:20"]

#1 [季節] 謹賀新年

今年もよろしくお願い致します。



最近の日記
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)
以上、15 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)