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

  • 04/25(木) Interface
  • 04/27() 2100 - 2100 ALL JA
  • 04/28() tokuda net 誕生日
  • 04/28() 自動車保険期限 (OS/Browser 制限有)
  • 04/30(火) NTT 東 払込期日
  • 04/30(火) ○ 固定資産税振替・支払
  • 05/01(水) atactl check
  • 05/01(水) 不燃ごみ
  • 05/03(金) 0900-1500 東京コンテスト
  • 05/14(火) All JA ログ締切
  • 05/15(水) 不燃ごみ
  • 05/18() 木之本会議
  • 05/19() CQ Ham Radio
  • 05/19() 別冊 CQ
  • 05/25() Interface
  • 403 JNUG 総会/BOF 2017/07/08 (土)
  • 402 用途別 Emacs ( C, LaTeX, 日本語 )
  • 380 cvsweb の移行
  • 370 tamago 辞書登録
  • 368 CROSS (cross/i386-mingw32, cross/powerpc-linux ) Framework --- binutils + gcc
  • 363 Wanderlust+HyperEstraier
  • 360 evbppc 用 patch / 玄箱
  • 335 /dev/battery is missing hack | libgcc_s_pic.a is missing | samba の -PIE 問題335 ntpd monitor
  • 325 tcode頁の更新
  • 322 software |hardware
  • 321 emacs-22 | IPv6
  • 320 bulk build (Mac OS X 10.4 and NetBSD/macppc)
  • 310 Wanderlust の Namazu の挙動
  • 290 WordPress 1.2 -> 1.5 migration
  • 220 Wanderlust で日本語題名の wl-summary-print-buffer
  • 215 NetBSD/ofppc
便利なツール
Emacs
らくらく 入門
rakuraku-emacs-cover

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

2019年11月08日(金) 旧暦 [n年日記] [更新:"2019/11/08 21:54:16"]

#1 [pkgsrc] math/py-tables

I'm trying to fix build problem by upgrading to 3.6.1 but,

ERROR: ************************************************************
ERROR: The following files are in the PLIST but not in /tmp/math/py-tables/work/.destdir/usr/pkg:
ERROR:         /tmp/math/py-tables/work/.destdir/usr/pkg/lib/python3.7/site-packages/tables/tests/__pycache__/__pycache__/test_suite.cpython-37.cpython-37.pyc
ERROR:         /tmp/math/py-tables/work/.destdir/usr/pkg/lib/python3.7/site-packages/tables/tests/__pycache__/__pycache__/test_suite.cpython-37.opt-1.cpython-37.pyc
ERROR: ************************************************************
ERROR: The following files are in /tmp/math/py-tables/work/.destdir/usr/pkg but not in the PLIST:
ERROR:         /tmp/math/py-tables/work/.destdir/usr/pkg/lib/python3.7/site-packages/tables/tests/__pycache__/test_suite.cpython-37.opt-1.pyc
ERROR:         /tmp/math/py-tables/work/.destdir/usr/pkg/lib/python3.7/site-packages/tables/tests/__pycache__/test_suite.cpython-37.pyc
*** Error code 1


2015年11月08日() 旧暦 [n年日記] [更新:"2015/11/08 06:10:39"]

#1 [無題] 井戸・水面リレー修理

井戸の制御盤が、 9/18 日に雷で故障した。 それをやっと昨日、直した。 G2R-2


2011年11月08日(火) 旧暦 [n年日記] [更新:"2011/11/08 12:28:07"]

#1 [Linux] Ubuntu 11.10 upgrade

きのう、NetBSD/5.1 amd64 の xen33 の上で動いている Ubuntu 11.04 を久振りに起動したら、
Welcome to Ubuntsu 11.10 'Oneiric Ocelog'
と言うので、「今すぐアップグレードする」を選んで小一時間更新をしていて、 再起動もした。その時には、画面に 11.10 と出ていて、 Mac OS X 風のアイコンが画面の左側に縦に並んでいた。
きょう、また起動したら、それをすっかり忘れて (?) また同じアップグレードをたづねる画面になっている。何が悪かったのかな。
と思ったら、二つ Ubuntu があって、違う方を見ていた。
vncviewer :1 と vncviewer :0 の違いだった。

Comments related this article

Re: Ubuntu 11.10 upgrade by abeche    2011/11/08 22:15
あたしのお守りしている ubuntu は GUI が立ち上がらなかったりネットワークの設定で...
Re: Ubuntu 11.10 upgrade by Makoto Fujiwara    2011/11/10 19:12
ごぶさたしています。 ありがとうございます。 GUI が上らないというのは Video Card ...

2009年11月08日() 旧暦 [n年日記] [更新:"2009/12/17 00:18:56"]

#3 [comp] (Ubuntu) ssh の設定を探してしまった

いくら探してもないと思ったら、 別途入れる必要がある ということだった。情報有難し。

#2 [EDA] SpecC Reference Compiler (scrc)

Ubuntu 8.10 の上での作業:
  570  ln -s /home/makoto/distfiles/scrc-2.1-1.src.rpm .
  571  cd ../SRPMS/
  573  rpm -ihv scrc-2.1-1.src.rpm
  579  cd ..
  584  vi SPECS/scrc.spec
     ( add # in front of Copyright, and 
       add the line
       License: UCB )
  591  rpmbuild --bb SPECS/scrc.spec 


g++ -DX86 -DLINUX  -O2 -DNDEBUG    \
		-DHAVE_LLONG  -s  -c -Wall -I/usr/src/rpm/BUILD/scrc-2.1/inc \
		Alignment.cc
Alignment.cc:262: error: extra qualification ‘BufferStruct::’ on member ‘BufferStruct’
Alignment.cc:269: error: extra qualification ‘BufferStruct2::’ on member ‘BufferStruct2’
make[2]: *** [Alignment.o] エラー 1
make[2]: ディレクトリ `/usr/src/rpm/BUILD/scrc-2.1/src/IntRep' から出ます
make[1]: *** [all] エラー 2
make[1]: ディレクトリ `/usr/src/rpm/BUILD/scrc-2.1/src' から出ます
make: *** [all] エラー 2
エラー: /var/tmp/rpm-tmp.87604 の不正な終了ステータス (%build)


RPM ビルドエラー:
    /var/tmp/rpm-tmp.87604 の不正な終了ステータス (%build)
root@ubuntu:/usr/src/rpm# 
The patches for above problem:
ubuntu@root 11:05:44/091108(..src/rpm)% zcat SOURCES/scrc-2.1-extra-qual.patch.gz
--- BUILD/scrc-2.1/src/IntRep/Alignment.cc.orig 2006-09-29 01:20:45.000000000 +0900
+++ scrc-2.1/src/IntRep/Alignment.cc    2009-11-08 10:50:37.000000000 +0900
@@ -259,14 +259,14 @@
 {
 char x1;
 _specc::buffered<char> x2;
-BufferStruct::BufferStruct() : x2(event(&clk)) { }
+BufferStruct() : x2(event(&clk)) { }
 };
 
 struct BufferStruct2
 {
 _specc::buffered<char> x2;
 char x1;
-BufferStruct2::BufferStruct2() : x2(event(&clk)) { }
+BufferStruct2() : x2(event(&clk)) { }
 };
 
 int            x;

error: conflicting declaration unsigned int PRS_lineno:

In file included from PRS_Scanner.l:92:
PRS_Scanner.h:128: error: conflicting declaration unsigned int PRS_lineno
<stdout>:362: error: PRS_lineno has a previous declaration as int PRS_lineno
PRS_Scanner.l:198: error: conflicting declaration unsigned int PRS_lineno
<stdout>:362: error: PRS_lineno has a previous declaration as int PRS_lineno
PRS_Scanner.l: In function int PRS_lex():
PRS_Scanner.l:292: error: yy_current_buffer was not declared in this scope
make[2]: *** [PRS_Scanner.o]  1
make[2]:  `/usr/src/rpm/BUILD/scrc-2.1/src/Parser' 
make[1]: *** [all]  2
make[1]:  `/usr/src/rpm/BUILD/scrc-2.1/src'
The problem is at following line, but this is generated file:
./BUILD/scrc-2.1/src/Parser/PRS_Scanner.cc:362:int PRS_lineno = 1;

#1 [NetBSD][pkgsrc] Error: You need to have libxerces-c installed.

FERMAT SystemC Parser: に (README を見て)
genova@makoto 07:59:45/091108(..local-src/sxml2)% ./autogen.sh 
...
checking for main in -lxerces-c... no
Error: You need to have libxerces-c installed.
上のように言われた時に、次のようにするのは有効
genova@makoto 08:01:59/091108(..local-src/sxml2)% \
env LIBS=-L/usr/pkg/lib ./autogen.sh 

xercesc/parsers/SAXParser.hpp: No such file or directory:

  • /usr/pkg/include/xercesc/parsers/SAXParser.hpp に実物があるのに
  • In file included from doxygenparser.cpp:25:
    ../include/doxygenparser.h:29:41: error: xercesc/parsers/SAXParser.hpp: No such file or directory
    と言われた時に、次のような変更をしてから ./autogen.sh すると回避出来る
--- sxml2/src/Makefile.am.orig  2005-04-01 02:33:20.000000000 +0900
+++ sxml2/src/Makefile.am       2009-11-08 08:18:12.000000000 +0900
@@ -5,7 +5,8 @@
 ##     Please disable it in the Anjuta project configuration
 
 INCLUDES =\
-        -I../include
+        -I../include \
+        -I/usr/pkg/include
 
 AM_CXXFLAGS =\
         -Wall\

Shared object "libxerces-c.so.28" not found:

genova@makoto 08:21:02/091108(..sxml2/src)% ./systemcxml 
Shared object "libxerces-c.so.28" not found
と言われた時に、次のようにするのは有効
genova@makoto 08:21:24/091108(..sxml2/src)% env LD_LIBRARY_PATH=/usr/pkg/lib ./systemcxml 

The primary document entity could not be opened:

次のようになるのを回避する方法は不明
genova@makoto 08:21:24/091108(..sxml2/src)% env LD_LIBRARY_PATH=/usr/pkg/lib ./systemcxml 
SystemXML - v1.0 2005-04-11
Reading raw SystemC XML file "fir_flat_cpp.xml"
Raw Parsing 1st pass:
Fatal Error: An exception occurred! Type:RuntimeException, Message:
The primary document entity could not be opened. Id=/export/local-src/sxml2/src/fir_flat_cpp.xml
sc_output.xml at line: 0
Modules found.

Raw parsing second pass:
Fatal Error: An exception occurred! Type:RuntimeException, Message:
The primary document entity could not be opened. Id=/export/local-src/sxml2/src/fir_flat_cpp.xml
sc_output.xml at line: 0
Processed file written

Reading architectural information
Fatal Error: Invalid document structure at line: 1
All information read
zsh: segmentation fault (core dumped)  env LD_LIBRARY_PATH=/usr/pkg/lib ./systemcxml
genova@makoto 08:21:30/091108(..sxml2/src)%
上で言っている譜はあります (we have the file listed above)
genova@makoto 08:41:18/091108(/export/local-src)% ls -l sxml2/src/fir_flat_cpp.xml 
-rw-r--r--  1 makoto  wheel  148478 Mar  2  2005 sxml2/src/fir_flat_cpp.xml
genova@makoto 08:41:46/091108(/export/local-src)% 
次のようにしたら動きました (Now it works with following command)
genova@makoto 08:45:12/091108(..local-src/sxml2)% \
? env LD_LIBRARY_PATH=/usr/pkg/lib \
? src/systemcxml --dtd src/systemc.dtd src/fir_flat_cpp.xml
help is available
genova@makoto 08:45:12/091108(..local-src/sxml2)% \
? env LD_LIBRARY_PATH=/usr/pkg/lib \
? src/systemcxml --help

INSTALL を見て:

  240  env LDFLAGS=-L/usr/pkg/lib ./configure
  241  env LDFLAGS=-L/usr/pkg/lib gmake
  242  sudo env LDFLAGS=-L/usr/pkg/lib gmake  install

genova@makoto 09:46:03/091108(..local-src/sxml2)% find /usr/local -cmin -10 -type f
/usr/local/bin/systemcxml
/usr/local/include/systemcxml/doxygenparser.h
/usr/local/include/systemcxml/inoutport.h
/usr/local/include/systemcxml/inport.h
/usr/local/include/systemcxml/liststructure.h
/usr/local/include/systemcxml/module.h
/usr/local/include/systemcxml/outport.h
/usr/local/include/systemcxml/port.h
/usr/local/include/systemcxml/process.h
/usr/local/include/systemcxml/sc_process.h
/usr/local/include/systemcxml/scparser.h
/usr/local/include/systemcxml/sensitivity.h
/usr/local/include/systemcxml/toplevel.h
/usr/local/include/systemcxml/xsystemc.h
/usr/local/include/systemcxml/ref_signal.h
/usr/local/include/systemcxml/Reflection_Service.h
/usr/local/include/systemcxml/moduleinstance.h
/usr/local/include/systemcxml/connection.h
/usr/local/include/systemcxml/objectregistry.h
/usr/local/include/systemcxml/graphout.h
/usr/local/include/systemcxml/signalout.h
/usr/local/doc/systemcxml/README
/usr/local/doc/systemcxml/COPYING
/usr/local/doc/systemcxml/AUTHORS
/usr/local/doc/systemcxml/ChangeLog
/usr/local/doc/systemcxml/INSTALL
/usr/local/doc/systemcxml/NEWS
/usr/local/doc/systemcxml/TODO
genova@makoto 09:46:04/091108(..local-src/sxml2)% his
genova@makoto 09:46:47/091108(..local-src/sxml2)% which systemcxml 
/usr/local/bin/systemcxml
genova@makoto 09:47:35/091108(..local-src/sxml2)%  systemcxml src/fir_flat_cpp.xml 
Shared object "libxerces-c.so.28" not found
With following command,
  293  sudo env LIBS='-L/usr/pkg/lib'  LD_RUN_PATH=/usr/pkg/lib gmake clean
  294  sudo env LIBS='-L/usr/pkg/lib'  LD_RUN_PATH=/usr/pkg/lib gmake
  295  sudo env LIBS='-L/usr/pkg/lib'  LD_RUN_PATH=/usr/pkg/lib gmake install
Now it executes fine:
systemcxml --dtd src/systemc.dtd src/fir_flat_cpp.xml


2008年11月08日() 旧暦 [n年日記] [更新:"2008/11/12 12:05:35"]

#1 [NetBSD] TsubaiBSD/20080908

(ちょっと遅くなってしまったが ./build.sh して見た)
いつものように、 自動で cvs 保管庫を作った後で、もう一度持出してから ./build.sh している。
以前からのことだけれど、次のようになってしまう。これをどうやって回避していた か覚えていない ;-(
/export/20080908/checkout/src/obj/tooldir.NetBSD-4.0.0_PATCH-i386/bin/i386--netbsdelf-gcc
-O2 -Wno-pointer-sign -ffreestanding -Wall -Wstrict-prototypes
- Wmissing-prototypes -Wpointer-arith -Wno-sign-compare
-Wno-traditional -Wa,--fatal-warnings -Wreturn-type -Wswitch
-Wshadow -Wcast-qual -Wwrite-strings -W extra
-Wno-unused-parameter -std=gnu99 -Werror
-I/export/20080908/checkout/src/sys/rump/fs/lib/libhfs/../../../include
-D_KERNEL -D_RUMPKERNEL -DDIAGN OSTIC
-I/export/20080908/checkout/src/sys/rump/fs/lib/libhfs
-I. -I/export/20080908/checkout/src/sys/rump/fs/lib/libhfs/../../../../../common/include
-nos tdinc
-I/export/20080908/checkout/src/sys/rump/fs/lib/libhfs/../../../..
-nostdinc -isystem
/export/20080908/checkout/src/obj/destdir.i386/usr/include - c
/export/20080908/checkout/src/sys/rump/fs/lib/libhfs/../../../../fs/hfs/hfs_nhash.c
-o hfs_nhash.o

cc1: warnings being treated as errors

/export/20080908/checkout/src/sys/rump/fs/lib/libhfs/../../../../fs/hfs/hfs_nhash.c:93:
warning: no previous prototype for 'hfs_nhashinit'
/export/20080908/checkout/src/sys/rump/fs/lib/libhfs/../../../../fs/hfs/hfs_nhash.c:105:
warning: no previous prototype for 'hfs_nhashdone'
/export/20080908/checkout/src/sys/rump/fs/lib/libhfs/../../../../fs/hfs/hfs_nhash.c:117:
error: expected declaration specifiers or '...' before
'hfs_cnid_ t'
あるいは 2007/08/16 頃に 4.99.25 を作った後には、 一度も完走していないのでは ? という気もして来た。
とりあえずは hfs 等を全て無効 にして見るのだろうか ?
/export/20080908/checkout/src/sys/fs/hfs/hfs.h: In function 'GET8B':
/export/20080908/checkout/src/sys/fs/hfs/hfs.h:133:  \
error: dereferencing pointer to incomplete type
これは確か 単に include 文が足りないだけ だったと思う。

かなり完走しそうになってから気が付いた .. -m macppc の指定を忘れていた。 良く見ると、(この日記の)最初の方にも i386--netbsdelf-gcc と書いてある。 (という訳で、またやり直し)
elf_machdep.h:16:38: error: machine/reloc.h: No such file or directory
以前に見たことがあるが、修正方法が見つからない。
これは、#include "machine/reloc.h" で macppc を見に行くけれど powerpc の方 にあるということで、#include にしないで展開してしまえば、だった。
その後 cross がうまく行っていない気配があるので cross でなく native で実行。
2008/11/12 に続く


2007年11月08日(木) 旧暦 [n年日記] [更新:"2007/11/16 21:38:20"]

#1 [無題] 連句の会

六本木にて。


2006年11月08日(水) 旧暦 [n年日記] [更新:"2006/11/10 10:38:03"]

#1 [機械] LinkStation HD-HGLAN

HD-LAN がまだ(本来の姿で)動いていないのに、 次の HD-HGLAN を何故か入手した。電源を入れる前に分解して 写真を 撮る。直列通信口を付ける。 14.7456MHz の水晶が付いている。147,456 = 256 x 57,600 なので、 この機械の通信速度は いままでの機械 と違ってちょうどの値になっているのだろう。 AVR が Atmel のものでないようだ (SP100552CDW NAS0DT001)。AVR とは言わないのだろう。

以前に HD-LAN で試していた disk (3.2G)をつなぐ。

Bootcode Ver.1.11 for [HGLAN]
Build:May 17 2005 [14:11:09]
isUseRevClock=0

******* Product Information *******
----------------------------------
Product Name: HD-HGLAN(IEMITSU)
          VER: 2.08
         Date: 2006/2/9 12:0:6
----------------------------------
Firmware check:done.

>>root=/dev/hda1
hit any key to boot EM mode.
Now Loading...done.
Now Booting
hit any key to boot EM mode. って素適なのだが、実は password が分らない。
BUFFALO INC. Link Station series HD-HGLAN (IEMITSU)

HD-HGLAN-EM login: root
Password: 
Login incorrect

nbloader:

以前のものをそのままつないでいるけれど、(それだから)、 uname が違うので、nbloader はだめだよと言って NetBSD 側には行かなかった。
Select the OS in 3 secs: (default is 3)
1: Linux
2: NetBSD(sysinst)
3: NetBSD in production
4: NetBSD(trial-pack)
5: NetBSD(emergency)

** Default **
** No.3 **
/boot/nbloader_v3.o: kernel-module version mismatch
        /boot/nbloader_v3.o was compiled for kernel version 2.4.17_kuro-box
        while this kernel is version 2.4.20_mvl31-ppc_linkstation.
Oops, Boot failed...
Checking all file systems...
linux 側では root になって操作が出来るのだけれど、書込不可。
root@KURO-BOX:/boot# 
 cp -p  kuro-bootsel2/kuro_bootsel2.sh   kuro-bootsel2/kuro_bootsel2.sh-HDLAN 
cp: cannot create regular file `kuro-bootsel2/kuro_bootsel2.sh-HDLAN': 
Read-only file system
Disk を、一度別の基板 (HD-LAN)につないで uname 違いを直した上で、再試行
hda: 6346368 sectors (3249 MB) w/256KiB Cache, CHS=6296/16/63, UDMA(33)
Partition check:
 hda:
hda: dma_timer_expiry: dma status == 0x61
-- BREAK DMA (hda) --
   0x60
hda: dma_timer_expiry: status=0x58 { DriveReady SeekComplete DataRequest }
hda: irq timeout: status=0xd0 { Busy }
hda: DMA disabled
ide0: reset: success
 hda1 hda2 hda3

 hda:hda: dma_timer_expiry: dma status == 0x61
の(青の) hda: のところで少し待つような感じになるが、待っていると先に行く。
uhub2: 5 ports with 5 removable, self powered
biomask a netmask b ttymask b
wd0 at atabus0 drive 0: <WDC AC23200L>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 3098 MB, 6296 cyl, 16 head, 63 sec, 512 bytes/sect x 6346368 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
wd0(iteide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
boot device: wd0
root on wd0a dumps on wd0b
iteide0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
iteide0:0:0: bus-master DMA error: missing interrupt, status=0x21
wd0: transfer error, downgrading to Ultra-DMA mode 1
wd0(iteide0:0:0): using PIO mode 4, Ultra-DMA mode 1 (using DMA)
wd0d: DMA error reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
wd0: transfer error, downgrading to PIO mode 4
wd0(iteide0:0:0): using PIO mode 0
wd0d: error reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
wd0: (aborted command, interface CRC error)
wd0: soft error (corrected)
root file system type: ffs
Wed Nov  8 05:36:16 GMT 2006
swapctl: adding /dev/wd0b as swap device at priority 0
と言われるのは個体のせいかどうか分らないが、それ以外は正常に動く。
kuro-hg# uname -a
NetBSD kuro-hg.ki.nu 4.99.3 NetBSD 4.99.3 (KUROBOX) #0: 
Mon Oct 30 19:30:30 JST 2006  
root@trapani:/work/20061019/sys/arch/evbppc/compile/obj/KUROBOX evbppc
kuro-hg# 
(例によって、機械の名前と機種名は関係ありません) dmesg: Linux EM mode | NetBSD/evbppc 4.99.3 AVR は違うものだが、 boot selector2 (20061108 版)は期待通り動く。 かわうちさん ありがとう。 sysinst で設置可能かどうかは後で試して見よう。

全く新しい disk をつないで:

firmware update をしたところ、一回目は「ファームウェアの更新に失敗しました」 と言っていたが (卓を見る限り何か変な状態になっているらしかったので)、もう一度 同じことをしたら、正常に使えるようになり、管理者パスワードも、元は空に設定され ていたので、変更が可能だった。つまり HD-HGLAN に新しい disk をつないでも使えるようには出来る、と言える。
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
IT8212: IDE controller on PCI bus 00 dev 60
IT8212: chipset revision 19
IT8212: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0xbffed0-0xbffed7, BIOS settings: hda:pio, hdb:pio
    ide1: BM-DMA at 0xbffed8-0xbffedf, BIOS settings: hdc:pio, hdd:pio
hda: WDC WD400EB-11CPF0, ATA DISK drive
これは実は 11/09 に湘南で 3,150 円で買って来たもの。40GB。

でも卓の login とか EM mode のパスワードは未だ不明。

ユーザ設定をしたら卓からは login が出来るようになった。 EM-MODE ANALYSIS


2004年11月08日(月) 旧暦 [n年日記] [更新:"2004/11/08 22:25:17"]

#2 [買物] 玄箱・160G・Meadow/Emacs スーパーチュートリアル

玄箱
WDC WD1600JB-00GVA0

#1 [Unix] STDOUT と STDERR を別々に譜に保存

prepare Perl script:

#!/usr/pkg/bin/perl
print STDOUT "This is for STDOUT\n";
print STDERR "This is for STDERR\n";

doit:

ttyp3:makoto@harry  9:39:54/041108(~/perl/practice)> ( ./stderr > /tmp/std) >& /tmp/err

check it:

ttyp3:makoto@harry  9:40:11/041108(~/perl/practice)> head /tmp/std /tmp/err
==> /tmp/std <==
This is for STDOUT

==> /tmp/err <==
This is for STDERR
ttyp3:makoto@harry  9:40:17/041108(~/perl/practice)> 

for sh/bash:

$ ./stderr 1>/tmp/std 2>/tmp/err
$ head /tmp/std /tmp/err
==> /tmp/std <==
This is for STDOUT

==> /tmp/err <==
This is for STDERR
$ 


2003年11月08日() 旧暦 [n年日記]

#1 [InputMethod] tamago -> Wnn7

Can't activate input method 'Japanese-egg-wnn7'
EmacsLisp           egg-version /usr/local    Wnn
----------------    ----------- ----------   ------- 
tamago              4.0.6                    FreeWnn
japanese-egg-wnn7   3.11 Wnn7                Wnn7
  • Wnn7 が入っている機械に tamago を入れると、何も考えないで使える。
  • Wnn7 が動いていれば「きんしちょう」を変換出来る。
  • tamago が動いていればマルチフェンスが使える
  • Emacs Lisp 側に何を使うかは ~/.emacs の書き方で切換可能
ただし、tamago から別の機械の Wnn7 を使おうとした場合には、
egg Japanese backend: 付属語ファイルが読み込まれていません
と言われてしまう。この時に、*Message* を見ると、次のような字が残っている。
Wnn: connecting to jserver at server...done
Loading /usr/share/emacs/site-lisp/egg-20031003/eggrc...done
ファイルが存在しません
辞書ファイル iwanami/fisd がありません: ファイルが存在しません
辞書ファイル iwanami/kihon.dic がありません: ファイルが存在しません
辞書ファイル iwanami/symbol.dic がありません: ファイルが存在しません
辞書ファイル iwanami/tankan.dic がありません: ファイルが存在しません
辞書ファイル iwanami/tankan2.dic がありません: ファイルが存在しません
辞書ファイル iwanami/tel.dic がありません: ファイルが存在しません
辞書ファイル iwanami/zip.dic がありません: ファイルが存在しません
ファイルが存在しません
egg Japanese backend: 付属語ファイルが読み込まれていません
何だか wnn6 の辞書を見に行っている感じ。 wnn6-jserver-setup() が呼ばれているようだが、どこから ? eggrc
(cond
 ((eq egg-backend-type 'wnn)
  (cond
   ((eq wnn-server-type 'jserver)
    (if wnn-wnn6-server
        (wnn6-jserver-setup)
      (wnn4-jserver-setup)))
試しに上の
(wnn6-jserver-setup) を
(wnn7-jserver-setup) に変更すると、使えるようになる。
  • wnn-wnn6-server を設定しているのはどこ ?
  • egg-20031003/egg/wnn.el で設定している
    1876 (condition-case err
    1877     (let ((wnn-server-type server-type)
    1878           (wnn-wnn6-server (eq version 'wnn6)))
    
何だか Wnn7 のサーバって、 version(wnn6) proc(Wnn) って返す気が するが気のせいかなぁ。
個人的に eggrc を書き替えてしまえば、済む話というか ~/.eggrc に置 けばいいのか。Niibe さんにおこられそう。
でも、 「Wnn7 が自分の機械で動いている場合には、それが必要ない」 ことは説明が付かない。


2002年11月08日(金) 旧暦 [n年日記]

#3 [NetBSD][CDROM] bootable macppc CDROM

distrib/cdrom の下で make するのって、ぼくには応用が効かない (というか効かせるには分り難い)気がする。ので、以前の方法を調べる。
mkisofs -part -hfs -r -J -l -o CDimage directory

mkisofs is at /usr/pkgsrc/sysutils/cdrecord/
directory has files:
  macppc/
  netbsd.GENERIC_MD.gz
  netbsd.gz
  ofwboot.xcf
これだと OF1/2 はだめだなぁ。その他に
bin/pdisk
bin/date
OF3/ofwboot.xcf-for-dd
いくつかの netbsd.GENERIC_MD.gz
を入れておくかな。

#2 [NetBSD] NetBSD/macppc の設置と設定

ちょっとがんばり過ぎか

#1 [NetBSD] root file system type: ffs から先に行かない問題

init を次のようにして作り直して見た。
ttyp1:root@quick 0:24:33/021108(...sbin/init)# /export-n/src-20021031-ts/tools/obj/tools.NetBSD-1.6F-powerpc/bin/nbmake-macppc dependall
CC=/export-n/src/tools/obj/tools.NetBSD-1.6F-powerpc/bin/powerpc--netbsd-gcc /export-n/src/tools/obj/tools.NetBSD-1.6F-powerpc/bin/nbmkdep -a -DMFS_DEV_IF_NO_CONSOLE -DSUPPORT_UTMP -DSUPPORT_UTMPX -DALTSHELL -DSECURE -nostdinc -isystem /usr/include init.c
/export-n/src/tools/obj/tools.NetBSD-1.6F-powerpc/bin/powerpc--netbsd-gcc -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wreturn-type -Wswitch -Wshadow -fno-strict-aliasing -Werror -DMFS_DEV_IF_NO_CONSOLE -DSUPPORT_UTMP -DSUPPORT_UTMPX -DALTSHELL -DSECURE -nostdinc -isystem /usr/include -c init.c
/export-n/src/tools/obj/tools.NetBSD-1.6F-powerpc/bin/powerpc--netbsd-gcc -static -o init -nostdlib -Wl,-dynamic-linker=/libexec/ld.elf_so -Wl,-rpath-link,/lib:/usr/lib -Wl,-rpath,/lib:/usr/lib -L/lib /usr/lib/crt0.o /usr/lib/crtbegin.o init.o -lutil -lcrypt -L/usr/lib -lgcc -lc -lgcc /usr/lib/crtend.o
ttyp1:root@quick 0:24:42/021108(...sbin/init)#
何をしても segfault する
ような気がする。

MacOS9.2 の CDROM ドライブ設定を使って:

区画を作って 20020818ts を入れて見たが 「root file system type: ffs から先に行かない問題」

daily/200210280000 を入れると:

Process (pid 1) got signal 4

Release 1.6 の CDROM を作って入れたら、何とか復活:

しかし
ttyp0:root@ibook 9:34:41/021108(/)# tar ztvf /a/j/ftp/pub/NetBSD/port-macppc/XFree86/X11R6-2002-07-08-2.95.3.tar.gz
Illegal instruction (core dumped)
ttyp0:root@ibook 9:35:19/021108(/)# which tar
/bin/tar
ttyp0:root@ibook 9:35:24/021108(/)#

20021029-ts-insecure と 20020818ts/ld.elf_so:

を入れたが、やはり coredoum する。
ttyp0:root@ibook 9:47:34/021108(/)# gdb /bin/tar tar.core
GNU gdb 5.0nb1
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "powerpc--netbsd"...(no debugging symbols found)...
Core was generated by `tar'.
Program terminated with signal 4, Illegal instruction.
#0 0x4182a4a0 in ?? ()
(gdb) where
#0 0x4182a4a0 in ?? ()
(gdb) ttyp0:root@ibook 9:47:52/021108(/)#
何だか最近、これを捨てたという話を読んだ気がする。

pax -zrf:

ttyp0:root@ibook 9:51:40/021108(/)# pax -zrf /a/j/ftp/pub/NetBSD/port-macppc/XFree86/X11R6-2002-07-08-2.95.3.tar.gz
これで一応開いたが、iBook ではこれは動かなかったので 2002-04-17 を入れる。
X の suid bit が立っていない。... fvwm2 も入れておく
chmod 4711 /usr/X11R6/bin/XFree86 pkg_add fvwm2

これでかなり復活。:

NetBSD ibook 1.6J NetBSD 1.6J (INSECURE) #0: Wed Oct 30 11:49:16 JST 2002
makoto@ibook:/export/syssrc-ts-021029/syssrc/sys/arch/macppc/compile/INSECURE macppc


2001年11月08日(木) 旧暦 [n年日記]

#3 [機械] Fast Page 16MBytes 72pin SIMM wit Parity

はなかったときのう書いたけれど、 メディア・バレーに行ったら 16 x 2 = 32M を 14,400 円 で売っていた。しかし二つは必要ないのだなぁ。

#2 [NetBSD] pkgsrc

/pkgsrc というのを作って、 /export/pkgsrc の下に union mount しておけば、中身を他の機械と共有したり rsync したりするのに便利かなと思って、
  • 126M Byte の区画を作って見た。 (特に端数は意味がない)
  • /etc/fstab に -b option で書く方法が分らなかったので、 /etc/rc.local に次のように書いておいた。
    mount_union -b /pkgsrc /export/pkgsrc 
    
  • ところが、inode が足りないと言って全部入らなかった。
  • (ので) newfs -m 2 -i 1024 /dev/wd0f で作り直し
  • いまは、こんな感じ。
    makoto@harry  16:21:22/011108(/)# df -k
    Filesystem            1K-blocks     Used     Avail Capacity  Mounted on
    /dev/wd0e               3961864   521136   3361490    13%    /export
    /dev/wd0f                114415    71098     41028    63%    /pkgsrc
    <below>:/pkgsrc         4032962   592234   3361490    14%    /export/pkgsrc
    
    この harry は TiBook,
  • X401-2001-04-17 を作って見たが、:

    (--) PCI: (0:16:0) ATI unknown chipset (0x4c59) 
        rev 0, Mem @ 0xb8000000/27, 0xb0000000/16, I/O @ 0x0400/8
    
    と言われているが ATI Radeon Mobility LY (AGP) というものらしい

関係ないけれど powerpc--netbsd となるのはさびしいので:

send-pr して見た。(/usr/pkgsrc/mk/bsd.prefs.mk の修正)

sudo-1.6.3p7:

Some files you might need to customize include the following:
        /etc/sudoers

#1 [英語] I doubt it's wrong.

「それが間違っているというのは疑しい」= 「合っていると思う」 で良かったかな。 port-macppc から Chuck:
I don't know what document that reference about "As shown in Section 7.6.3.2.2" comes from, is that document wrong or did you just mis-read it, matt?
matt:
I doubt it's wrong. Hmmm. that sequence is only value for the REF bit, not the CHG bit. I think I need to think about this more.
Chuck:
could you build a profiling kernel and collect some kernel profile data of one of these ftp sessions?
Allen:
That looks to be from the 6xx Programming Environments Manual (PEM), pdf page 333 / 7-65 / section "7.6.3.2.2 Clearing the Referenced (R) Bit":
Chuck:
yea, that looks like it. the manual appears to be wrong.

the old pmap looks more like the "general case" section right before that. we should note that the section 7.6.3.2.2 code is only for clearing the referenced bit, not the modified bit "because the R bit need not be maintained exactly." if we want to optimize pmap_clear_reference() to use this faster algorithm, it can't share code with pmap_clear_modify().

「profiling kernel を作ってちょっと調べて見て」ってどうやるのかな。 2001/06/17 にもらった個人メールから にやりかたはあります。けど結果がわかりにくいです。



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

Count.cgi (since 2000/02/05)