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

2016年07月24日() 旧暦 [n年日記] [更新:"2016/07/24 03:19:35"]

#1 [CD-R] using cdrecord


最近使っている CF-S9 には DVD/R Drive が付いているが、一度も使ったことがなかった。
FreeBSD の 10.3 の iso.xz
FreeBSD-10.3-RELEASE-amd64-disc1.iso.xz
ftp.allbsd.org からもらって来て、xz はなかったので archivers/xz を入れて
using cdrecord (2015/03/02) を見て、そのまま入力したら、うまく書いてくれた。たまたま HP ML115 があったので、 入れて起動したら、動いた。
CF-N9@makoto 11:44:13/160724(~/Downloads-japanese)%
sudo cdrecord -v dev=31,0,0 speed=16 driveropts=burnfree -data FreeBSD-10.3-RELEASE-amd64-disc1.iso
cdrecord: No write mode specified.
cdrecord: Assuming -sao mode.
cdrecord: If your drive does not accept -sao, try -tao.
cdrecord: Future versions of cdrecord may have different drive dependent defaults.
Cdrecord-ProDVD-ProBD-Clone 3.01 (amd64-unknown-netbsd7.0) Copyright (C) 1995-2015 Joerg Schilling
TOC Type: 1 = CD-ROM
scsidev: '31,0,0'
scsibus: 31 target: 0 lun: 0
Using libscg version 'schily-0.9'.
Driveropts: 'burnfree'
SCSI buffer size: 61440
atapi: 1
Device type    : Removable CD-ROM
Version        : 0
Response Format: 2
Capabilities   : 
Vendor_info    : 'MATSHITA'
Identifikation : 'DVD-RAM UJ869AS '
Revision       : '1.01'
Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
Current: CD-R
Profile: DVD-RAM 
Profile: DVD+R 
Profile: DVD+RW 
Profile: DVD-RW restricted overwrite 
Profile: DVD-RW sequential recording 
Profile: DVD-R sequential recording 
Profile: DVD-ROM 
Profile: CD-RW 
Profile: CD-R (current)
Profile: CD-ROM 
Profile: Removable Disk 
Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
Driver flags   : MMC-3 SWABAUDIO BURNFREE 
Supported modes: TAO PACKET SAO RAW/R16 RAW/R96P RAW/R96R
Drive buf size : 1310720 = 1280 KB
cdrecord: Warning: Cannot read drive buffer.
cdrecord: Warning: The DMA speed test has been skipped.
FIFO size      : 4194304 = 4096 KB
Track 01: data   696 MB        
Total size:      799 MB (79:11.60) = 356370 sectors
Lout start:      799 MB (79:13/45) = 356370 sectors
Current Secsize: 2048
ATIP info from disk:
  Indicated writing power: 4
Disk Is not unrestricted
Disk Is not erasable
  Disk sub type: Medium Type A, high Beta category (A+) (3)
  ATIP start of lead in:  -11849 (97:24/01)
  ATIP start of lead out: 359847 (79:59/72)
Disk type:    Long strategy type (Cyanine, AZO or similar)
Manuf. index: 25
Manufacturer: Taiyo Yuden Company Limited

    Capacity  Blklen/Sparesz.  Format-type  Type
     4104234             2048         0x00  No Media Present or Unknown Capacity
Blocks total: 359847 Blocks current: 359847 Blocks remaining: 3477
Starting to write CD/DVD/BD at speed 16 in real SAO mode for single session.
Last chance to quit, starting real write    0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... input buffer ready.
BURN-Free is ON.
Performing OPC...
Sending CUE sheet...
cdrecord: WARNING: Drive returns wrong startsec (0) using -150
Writing pregap for track 1 at -150
Starting new track at sector: 0
Track 01:   49 of  696 MB written (fifo 100%) [buf 100%]  12.6x.


Track 01:  696 of  696 MB written (fifo 100%)  16.7x.0%]  16.8x.
Track 01: Total bytes read/written: 729845760/729845760 (356370 sectors).
Writing  time:  361.748s (00:06:01.748)
Average write speed  13.3x.
Min drive buffer fill was 87%
Fixating...
Fixating time:    8.164s (00:00:08.164)
BURN-Free was never needed.
cdrecord: fifo had 11879 puts and 11879 gets.
cdrecord: fifo was 0 times empty and 10259 times full, min fill was 92%.
CF-N9@makoto 11:52:08/160724(~/Downloads-japanese)% 
所要 8 分くらい。 有難いことです。


2015年07月24日(金) 旧暦 [n年日記] [更新:"2015/07/23 21:17:47"]

#1 [無題] きょうの dd (OpenSUSE 13.2)

modena@makoto 05:58:55/150724(~/Downloads)% \
time sudo  dd if=openSUSE-13.2-DVD-x86_64.iso of=/dev/rsd0d bs=4m
Password:
1115+1 records in
1115+1 records out
4678746112 bytes transferred in 953.375 secs (4907561 bytes/sec)
0.04s 10.23s 15:55.17 1% 0+0k 0+1io 6pf+0w


2008年07月24日(木) 旧暦 [n年日記] [更新:"2008/07/25 00:25:03"]

#1 [NetBSD][pkgsrc] pkgsrc 外なら mingw32-gcc は簡単

mingw32-gcc を packages の外で make することを試すとして、 (mingw-w32api-bin, mingw-runtime-bin, mingw-binutils は pkgsrc でも、 何でもいいが、用意してあるとして)
--host=
--build=
「の行がなくても大丈夫か ? --- 駄目」と 書いたが、 それは実は ちょっと特殊な OS (uname -a)
NetBSD modena 4.0.0_PATCH NetBSD 4.0.0_PATCH (GENERIC.MP) #0
というか、長い uname -r
4.0.0_PATCH
だったためで、通常なら、次のようにすれば make 出来る
../gcc-4.2.1/configure \
--target=i386--mingw32 \
--enable-languages=c,c++ \
--disable-multilib \
--disable-nls \
--prefix=/usr/pkg/cross

gmake
これだけのことが pkgsrc の内で出来ない とは(自分の力が)さびしい。 「sysctl を調べているところ」 は pkgsrc の中の場合だったが、pkgsrc の外側で、うまく行く時には、同じところ はどうなっているかを調べて見た
ttyr2:makoto@genova 23:47:34/080724(...wip/mingw-binutils)> 
cat /tmp/log-gcc-local  /tmp/log-gcc-gmake | egrep -n 'Configur|sysctl'
93:Configuring in ./fixincludes
194:Configuring in ./libiberty
239:checking for sys/sysctl.h... yes
341:checking for sysctl... yes
634:Configuring in ./intl
753:Configuring in ./gcc
1031:Configuring in build-i386-unknown-netbsdelf4.0/libiberty
1078:checking for sys/sysctl.h... yes
1180:checking for sysctl... yes
1451:Configuring in build-i386-unknown-netbsdelf4.0/fixincludes
1568:Configuring in ./libcpp
1725:Configuring in ./libdecnumber
3256:Configuring in i386--mingw32/libstdc++-v3
3467:Configuring in i386--mingw32/libiberty
3512:checking for sys/sysctl.h... no
4249:Configuring in i386--mingw32/libssp
ttyr2:makoto@genova 23:48:00/080724(...wip/mingw-binutils)> 
かなり簡潔 にして見たが、やはり同じになる:
/export/pkgsrc/wip/mingw-gcc/work/gcc-4.2.1/host-i386-unknown-netbsdelf4.0/gcc/xgcc
-B/export/pkgsrc/wip/mingw-gcc/work/gcc-4.2.1/host-i386-unknown-netbsdelf4.0/gcc/
-L/export/pkgsrc/wip/mingw-gcc/work/gcc-4.2.1/i386--mingw32/winsup/mingw
-L/export/pkgsrc/wip/mingw-gcc/work/gcc-4.2.1/i386--mingw32/winsup/w32api/lib
-isystem
/export/pkgsrc/wip/mingw-gcc/work/gcc-4.2.1/winsup/mingw/include
-isystem
/export/pkgsrc/wip/mingw-gcc/work/gcc-4.2.1/winsup/w32api/include
-B/usr/pkg/cross/i386--mingw32/bin/
-B/usr/pkg/cross/i386--mingw32/lib/ -isystem
/usr/pkg/cross/i386--mingw32/include -isystem
/usr/pkg/cross/i386--mingw32/sys-include -c -DHAVE_CONFIG_H
-O2 -O2 -I. -I../.././libiberty/../include -W -Wall -pedantic
-Wwrite-strings -Wstrict-prototypes -Wc++-compat
../.././libiberty/physmem.c -o physmem.o
../.././libiberty/physmem.c:52:25: error: sys/sysctl.h: No
such file or directory gmake[2]: *** [physmem.o] Error 1
gmake[2]: Leaving directory
`/export/pkgsrc/wip/mingw-gcc/work/gcc-4.2.1/i386--mingw32/libiberty'
gmake[1]: *** [all-target-libiberty] Error 2 gmake[1]: Leaving
directory `/export/pkgsrc/wip/mingw-gcc/work/gcc-4.2.1' gmake:
*** [all] Error 2 *** Error code 2


2006年07月24日(月) 旧暦 [n年日記] [更新:"2006/07/24 17:36:44"]

#1 [NetBSD][pkgsrc] 3.99.21 三台目

機種PowerMac G4/400
CPU1.2GHz7455 (Revision 303)
disk wd010GIBM-DTTA-371010
disk wd180GWDC WD800BB-00CAA1
ifconfig gm0
media auto-select通信出来ない。
media 100BaseTX-FDX通信出来るが Full dup のランプが付かない
OF の時には Full dup のランプは付いている ....
  1. multi-user の時に
    cp netbsd-GENERIC_MD.gz /20060702.gz 
    
    のように用意しておいて boot ultra1,ofwboot.elf hd:10/20060702.gz
  2. (sysinst で) Install。全て区画をやり直し。 この時に HFS 区画も作る。(.. 作れるんだ)。
  3. しかし、何故か通信出来ずに、そのまま消えてしまった (autoselect が使えないなどととは想像出来なかった)
  4. 実は、この時点であわてて CDROM を作る
  5. boot cd:,ofwboot.elf で sysinst から入直し。今度は Use existing partition。
  6. pdisk が空っぽのため、起動出来ず
  7. pdisk /dev/wd0c で起動して disklabel wd0 を見ながら手動で区画を作る
  8. boot cd:,ofwboot.elf hd:3/netbsd で起動

pkg_add config-serv:

これは何かな
pkg_add: Where did our dependency go?!
getty[169]: /dev/ttyE0: Device not configured
こう言われるのは何の話か、良く教えてもらっている気がするが、 思い出せない。

ofwboot.elf を写す:

ttyZ0:root@st4200  10:52:50/060724(/cdrom)# disklabel wd0
     (omitted)
16 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a:   1023120      9072     4.2BSD   1024  8192 46512  # (Cyl.      9 -   1023)
 b:   2040192   1032192       swap                     # (Cyl.   1024 -   3047)
 c:  19746720         0     unused      0     0        # (Cyl.      0 -  19589)
 d:   8201088   3072384     4.2BSD   1024  8192 46600  # (Cyl.   3048 -  11183)
 e:      9009        63        HFS                     # (Cyl.      0*-      8)
 f:   8191008  11273472     4.2BSD   1024  8192 46544  # (Cyl.  11184 -  19309)
ttyZ0:root@st4200  10:52:55/060724(/cdrom)# hformat /dev/wd0e
Volume name is "Untitled"
Volume was created on Mon Jul 24 10:53:03 2006
Volume was last modified on Mon Jul 24 10:53:03 2006
Volume has 4536832 bytes free
ttyZ0:root@st4200  10:53:03/060724(/cdrom)# hmount /dev/wd0e
Volume name is "Untitled"
Volume was created on Mon Jul 24 10:53:03 2006
Volume was last modified on Mon Jul 24 10:53:03 2006
Volume has 4536832 bytes free
ttyZ0:root@st4200  10:53:09/060724(/cdrom)# hcopy ofwboot.elf :
二台目には次の link があるが、これが出来ていない。なくてもいいかな ?
lrwxr-xr-x 1 root wheel 22 Jul 22 10:36 /usr/pkg/bin/mkfontdir@ -> /usr/X11/bin/mkfontdir

samba Unsupported relocation type 6 in non-PLT relocations:

ttypf:makoto@mini 14:13:30/060724(~)> sudo /etc/rc.d/samba start
Starting nmbd.
/usr/pkg/sbin/nmbd: Unsupported relocation type 6 in non-PLT relocations

Starting smbd.
/usr/pkg/sbin/smbd: Unsupported relocation type 6 in non-PLT relocations

ttypf:makoto@mini 14:13:37/060724(~)> 
If you look the src, binutils-2.16/include/elf/ppc.h:
  RELOC_NUMBER (R_PPC_ADDR16,		  3)
  RELOC_NUMBER (R_PPC_ADDR16_LO,	  4)
  RELOC_NUMBER (R_PPC_ADDR16_HI,	  5)
  RELOC_NUMBER (R_PPC_ADDR16_HA,	  6)
  
  RELOC_NUMBER (R_PPC_GOT16,		 14)
  RELOC_NUMBER (R_PPC_GOT16_LO,		 15)
  RELOC_NUMBER (R_PPC_GOT16_HI,		 16)
  RELOC_NUMBER (R_PPC_GOT16_HA,		 17)
This is the number we are seeing now:
ttypf:makoto@mini 15:05:42/060724(...work/samba-3.0.22)> objdump -R /usr/pkg/sbin/smbd | grep ADDR16
002b1a3e R_PPC_ADDR16_HA   .rodata+0x00325c10
002b1a46 R_PPC_ADDR16_LO   .rodata+0x00325c10
002b1a8e R_PPC_ADDR16_HA   .rodata+0x00304d54
002b1a92 R_PPC_ADDR16_HA   .rodata+0x00304d58
002b1a96 R_PPC_ADDR16_LO   .rodata+0x00304d54
002b1a9a R_PPC_ADDR16_LO   .rodata+0x00304d58
002b1aca R_PPC_ADDR16_HA   .rodata+0x00325c18
002b1ace R_PPC_ADDR16_LO   .rodata+0x00304d58
002b1ad6 R_PPC_ADDR16_HA   .rodata+0x002bfddc
002b1ade R_PPC_ADDR16_LO   .rodata+0x002bfddc
Probably, this (Reloc 6) should not appear.

-fPIC or -fpic is missing somewhere ? objdump -d /usr/pkg/sbin/smbd | grep ^00

002b0c74 <__udivdi3>:
002b10f0 <__moddi3>:
002b15c0 <__divdi3>:
002b1a3c <__fixdfdi>:
002b1a8c <__fixunsdfdi>:
find . -name \*.o | awk '{print "echo " $0 "; nm ", $0" | grep fixdfdi"}' | sh
./libsmb/libsmbclient.o
U __fixdfdi

lang/gcc3-c:

/bin/tcsh ./genfixes machname.h
SHELL=/bin/sh: Command not found.
export: Command not found.
if: Expression Syntax.
gmake[2]: *** [machname.h] Error 1
gmake[2]: Leaving directory `/export/pkgsrc/lang/gcc3-c/work/gcc-3.3.5/gcc/fixinc'
gmake[1]: *** [fixinc.sh] Error 2
unsetenv SHELL
env PATH=/usr/pkg/gcc3/bin:${PATH} make
...
Compiling lib/time.c
lib/time.c: In function `GetTimeOfDay':
lib/time.c:66: error: too few arguments to function `gettimeofday'
*** Error code 1
void GetTimeOfDay(struct timeval *tval)
{
#if 1 
	gettimeofday(tval,NULL);
#else
	gettimeofday(tval);
#endif
}
with gcc-3.3.5,
ttypf:makoto@mini 16:13:18/060724(...net/samba)> sudo /etc/rc.d/samba start
Starting nmbd.
/usr/pkg/gcc3/lib/libgcc_s.so.1: Unsupported relocation type 10 in non-PLT relocations
in the log, we have the line
Compiling libsmb/libsmbclient.c with -fPIC -DPIC

gcc-3.3.6 with tsubai patch:

gcc-3.3.6/gcc/config -I../../gcc-3.3.6/gcc/../include ../../gcc-3.3.6/gcc/f/com.c -o f/com.o
../../gcc-3.3.6/gcc/f/com.c:11080: error: conflicting types for 'ffecom_gfrt_basictype'
../../gcc-3.3.6/gcc/f/com.h:236: error: previous declaration of 'ffecom_gfrt_basictype' was here
*** Error code 1
--- gcc-3.3.6/gcc/f/com.c~      2004-01-01 13:44:56.000000000 +0900
+++ gcc-3.3.6/gcc/f/com.c       2006-07-24 16:34:26.000000000 +0900
@@ -11075,7 +11075,7 @@
   return decl;
 }
 
-ffeinfoBasictype
+ffeinfoKindtype 
 ffecom_gfrt_basictype (ffecomGfrt gfrt)
 {
   assert (gfrt < FFECOM_gfrt);
../../gcc-3.3.6/gcc/java/gjavah.c:49: error: static declaration of 'flag_jni' follows non-static declaration
--- gcc-3.3.6/gcc/java/gjavah.c~        2003-03-29 07:18:48.000000000 +0900
+++ gcc-3.3.6/gcc/java/gjavah.c 2006-07-24 16:43:16.000000000 +0900
@@ -46,7 +46,7 @@
 static int found_error = 0;
 
 /* Nonzero if we're generating JNI output.  */
-static int flag_jni = 0;
+           flag_jni = 0;  // see java-tree.h line 170, or different variable ?
 
 /* When nonzero, warn when source file is newer than matching class
    file.  */
ttyq5:makoto@mini 16:43:19/060724(/export/local-src)> 
Making all in testsuite

/export/local-src/gcc-3.3.6-work/powerpc-unknown-netbsd3.99.21/soft-float/libstdc++-v3/include/bits/stl_alloc.h:652: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string[in-charge](char const*, std::allocator<char> const&)'

sudo pkg_add samba-3.0.21a.tgz:

Using old package for 3.99.15
ttypf:makoto@mini 17:17:33/060724(...packages/All)> sudo pkg_add samba-3.0.21a.tgz
pkg_add: Warning: package `/cdrom/packages/All/./samba-3.0.21a.tgz' was built for a different version of the OS:
pkg_add: NetBSD/powerpc 3.99.15 (pkg) vs. NetBSD/powerpc 3.99.21 (this host)


2004年07月24日() 旧暦 [n年日記]

#6 [hnf] (setq hnf-hour-not-today 2)

(defcustom hnf-hour-not-today 0
  "Till the specified hour, considered as the day before.
Set integer from 0 to 23.
これを設定していなかった。2 くらいかな (ただ、まだうまく行っていない)。

#5 [cygwin] emacs-21.3.50 (as of 2004-04-25)

Win/2k: cygwin 1.5.10
cvs -d :ext:anoncvs@savannah.gnu.org:/cvsroot/emacs co -D 2004-04-25 emacs
cd emacs
zcat ../emacs-21.3.50-cygwin.20040425.gz | patch -s -p6
./configure
make bootstrap
./temacs --batch --load loadup bootstrap
"0x610995c8" の 命令が "0x00000010" のメモリを参照しました。
メモリが "read"になることはできませんでした。

プログラムを終了するには [OK] をクリックしてください。
src/s/cygwin.h に USE_HEAP_DATA_FILE マクロ を定義したり、しなかったりする選択があるらしい。 最初は 1 になっている。
undef にして見たが、全く同じ。効いていない ?

gdb で見ると:

Program received signal SIGSEGV, Segmentation fault.
0x610995c8 in strtosigno () from /usr/bin/cygwin1.dll
(gdb) bt
#0  0x610995c8 in strtosigno () from /usr/bin/cygwin1.dll
#1  0x6105c66f in dll_entry@12 () from /usr/bin/cygwin1.dll
#2  0x61001c79 in getprogname () from /usr/bin/cygwin1.dll
#3  0x00000028 in ?? ()
#4  0x0022fd44 in ?? ()
#5  0x610aaf9b in cygwin1!__getreent () from /usr/bin/cygwin1.dll
#6  0x610f7e38 in cygwin1!__ctype_ptr ()
#7  0x0022fd44 in ?? ()
#8  0x610a7bc1 in cygwin1!__getreent () from /usr/bin/cygwin1.dll
#9  0xdf0df046 in ?? ()
#10 0x00000012 in ?? ()
#11 0x006346c0 in cygtiff4!_TIFFerrorHandler ()
#12 0x006334ec in cygtiff4!TIFFInitZIP ()
(gdb) 
NTFS って関係あるかな。

#4 [無線] Kleinschmidt AN/FGC-25 Keyboard/Perforator

知合いから、 Kleinschmidt AN/FGC-25 Keyboard/Perforator 要る人探してとメール

#3 [Mail] ML の健康チェック

いい言葉だなぁ。

#2 [XCAST6] えびふりゃあ CDROM

別の機械で起動して見た。login: には nbug と入力。 /var/log/XFree86.0.log に、
Data incomplete in file /etc/XF86Config
 At least one Device section is required.
となっている。大きさが 0 だった。この他に気が付いたことと言えば Audio Device がない、と言っていたこと。
No Current Audio Satus to Return
何かが Segfault している。
以下は RedHat 7.3 で起動した時の記録
makoto@d190 makoto]$ grep '(--)' /var/log/XFree86.0.log
Markers: (--) probed, (**) from config file, (==) default setting,
(--) using VT number 7
(--) PCI:*(1:0:0) Trident CyberBlade/i1 rev 106, Mem @ 0xe5800000/23, 0xe6000000/17, 0xe5000000/23
(--) Assigning device section with no busID to primary device
(--) Chipset cyberbladei1 found
(**) TRIDENT(0): Depth 16, (--) framebuffer bpp 16
(--) TRIDENT(0): IO registers at 0xE6000000
(--) TRIDENT(0): Revision is 106
(--) TRIDENT(0): Found CyberBlade/i1 chip
(--) TRIDENT(0): RAM type is SDRAM
(--) TRIDENT(0): Found 8MB board, using 4MB
(--) TRIDENT(0): VideoRAM: 4096 kByte
(--) TRIDENT(0): TFT Panel 800x600 found
(--) TRIDENT(0): Memory Clock is 57.27 MHz
(--) TRIDENT(0): Max pixel clock is 230 MHz
(--) TRIDENT(0): Virtual size is 1024x768 (pitch 1024)
(--) TRIDENT(0): Display dimensions: (300, 220) mm
(--) TRIDENT(0): DPI set to (86, 88)
[makoto@d190 makoto]$

これを使って fdisk を起動:

Windows/2k の機械は 10G(Win), 18G(RedHat 7.3), 10G(不明)となっていて、 Win があふれて cygwin で Emacs も make 出来ない状態だった。この 18G の部分を 上で起動した NetBSD を使って fdisk -u /dev/wd0 として、sysid を 7(NTFS)に変更。 これで Win の方から見えるようになったので format してしまった。
grub の設定は消えてしまわないかな ? .. 消えたような。見ていなかった。 消えていなかった。(でも設定出来ない ?)

cygwin を入直し (1.5.10-3):

setup.exe をもらって来て、それを起動
はじめに Download で全てを選び
+ ALL Install
次に Install From Local disk で全てを選んで
D:\cygwin
に入れる
実はその前に C:\ の Uninstall をしておく必要があった (そうしておかないと、既に入っているものはそちらを参照してしまう)。
Uninstall/Reinstall/Install の繰返
cygwin1.dll がないと言ってうるさいので、ごみ箱の中から E:\cygwin\bin に復活。 cygintl-2.dll も同様。

#1 [GNU] gcc-3.3.1 and gcc-3.3.2

if ( cond ) 
 (statment for error message)
という部分があって、 (statment for error message) の部分が Segfault して、 これを何とか回避したい。考えたらなくてもいいと思って、うっかり
if ( cond ) 
 /* (statment for error message) */
としてしまった。これで gcc-3.3.2/NetBSD の方は
if ( cond ) 
 nop
と思ってくれたが、gcc-3.3.1/Cygwin の方は、しっかり、その次の文を if ( cond ) の条件実行文としてしてくれるので結果的にそこが実行されない。
これってどちらが正しい ? gcc-3.3.1 の方が正しい気がする (それとも改行コードの関係か)。


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

#2 [無題] (多分初めて)中央林間まで行く。

行きは西船橋 → 九段下から。
帰りは神保町 → 秋葉原
愛三で線に名札を付けるやつ。 と USB シリアル。

#1 [RFC] RFC 2183

を見たりして..
--Multipart_Sat_Jan__6_17:36:02_2001-1
Content-Type: image/png
Content-Disposition: inline; filename="a.png"
Content-Transfer-Encoding: base64


2002年07月24日(水) 旧暦 [n年日記]

#2 [機械] 拾って来た Celeron を動かして見た

何と動いた。
  • CPU は一度二度外しているので、シリコングリスは塗り直した 方がいいよと、人に言われていたので、予め 300 円で買っておいた ものを塗直し
  • メモリを入れなかったら、ピーピーとうるさかった。
  • その辺にあった(実は専用にとっておいた) 64MB をさす
  • BIOS の設定で floppy disk から起動となっているのを CDROM 起動に変更
  • CDROM 装置は使えなかったので代りのものを入れる
  • IDE 線もなかった。ので近くから拝借
  • ずうっと昔に作った NetBSD/i386 1.5.2 の CDROM を入れて おいたら、sysinst まで行った
  • Celeron/466MHz とのこと
多分一年以上放っておいたと思うけれど、 早くから使って見れば良かった。 こんな機械で Windows/2000 とか動くのかな。
いつ拾って来たのか日記を検索して見たけれど、見つからなかった。 Video Card だけは 8/06/2001 に 話題にしていたので、それ以前のことは確か。

1.5.2 が動いたので、1.6_BETA4 も:

入れて見る。(CDROM から起動して sysinst を使ったので、 サーバ側に kern.tgz -> kern-GENERIC.tgz という link を張っておく 記念に dmesg も保存

kernel: page fault trap, code=0:

カーネルの作成中に..
uvm_fault
kernel: page fault trap, code=0
Stopped in pid 4 ( reaper) at pmap_page_remove+0x114: movl	0(%edx,%eax,4),%esi
db> trace
pmap_page_remove
uvm_anfree
amap_wipeout
amap_unref
uvm_unmap_detach
uvmspace_free
uvm_exit
reaper
もう一度やり直し xcast 版。
1089.617u 84.827s 25:03.20 78.1%        0+0k 79+17374io 231pf+0w
多分 G4 の 200MHz くらいの速さ.. かな。

scrc-1.2 を組立てて見ようとしたが、:

PosixThread.h:20: pthread.h: No such file or directory
そうか NetBSD 全部だめなのかなぁ。

#1 [Namazu] Out of memory!

ttyp1:makoto@quick  7:39:00/020724(...home/makoto)> time mknmz -f ~/.mknmzrc-Mail-1G -O /export/namazu/index Mail
Reading /home/makoto/.mknmzrc-Mail
検索対象の譜を調べています...
316507編の譜が索引作成の対象として見つかりました
1/316507 - /export/home/makoto/Mail/ampr-version/529 [message/rfc822]
....
313/316507 - /export/home/makoto/Mail/dm/akihabara/1 [message/rfc822]
perl in realloc(): warning: pointer to wrong page.
Out of memory!
109.032u 35.842s 2:32.74 94.8%  0+0k 5744+222io 1pf+0w
ttyp1:makoto@quick  7:41:35/020724(...home/makoto)>  limit
cputime         unlimited
filesize        unlimited
datasize        1048576 kbytes
stacksize       2048 kbytes
coredumpsize    unlimited
memoryuse       1188864 kbytes
descriptors     64 
memorylocked    396288 kbytes
maxproc         160 
ttyp1:makoto@quick  7:55:41/020724(...home/makoto)> pstat -s
Device      512-blocks     Used    Avail Capacity  Priority
/dev/wd0b      1572864        0  1572864     0%    0
....
....
$ON_MEMORY_MAX     = 80000000; # 80M   --1000M
これは大き過ぎたようなので、
$ON_MEMORY_MAX = 40000000; # 40M
で試している。
351 makoto    66    4   290M  287M RUN       82:33 96.19% 96.19% perl
ずうっと、このような感じ。

Segmentation fault (core dumped):

77202/316417 - /export/home/makoto/Mail/ml/hdl/22 [message/rfc822]
Segmentation fault (core dumped)
5590.998u 200.065s 1:54:18.84 84.4%     0+0k 7724+8052io 3pf+0w

ls -l /export/home/makoto/Mail/ml/hdl/23
 428207 Apr  8  1998 /export/home/makoto/Mail/ml/hdl/23
*.doc が添付書類になっている。これはよけて見たが、次に 1M の jpeg 形式があると、 やはり Segfault してしまう。 ここには 27 くらいメールがあるが、それだけだと通る。
てことで まず mknmz -O ??? dir/msg00292.html してから
次に mknmz -Y -Z -O ??? dir/ したら 無事にindex作成 終了しました。
というようなメールがあったが、

その後 --mtime -300 などで分けて:

96121/96121 - /export/home/makoto/Mail/webcount/1665 [message/rfc822]
索引を書き出しています...
[追加]
日付:                Wed Jul 24 20:08:54 2002
追加された文書数:    96,121
大きさ (bytes):      349,355,411
合計の文書数:        96,121
追加検索語数:        2,001,844
合計検索語数:        2,002,726
わかち書き:          module_kakasi -ieuc -oeuc -w
経過時間 (秒):       6,157
譜/秒:               15.61
系:                  netbsd
Perl:                5.006001
Namazu:              2.0.10

5807.235u 231.189s 1:42:38.56 98.0%     0+0k 7948+9222io 6pf+0w
ttyp0:makoto@quick  20:08:55/020724(...home/makoto)> time mknmz -f ~/.mknmzrc-Mail-1G -O /export/namazu/index --mtime -700 Mail
Reading /home/makoto/.mknmzrc-Mail
検索対象の譜を調べています...
ASSERTION ERROR!: NMZ.r (169325) and NMZ.t (169620)
      are not consistent! at /usr/pkg/share/namazu/pl/util.pl line 257.
77.127u 29.222s 1:55.19 92.3%   0+0k 5376+188io 27pf+0w
ttyp0:makoto@quick  20:29:40/020724(...home/makoto)> 


2000年07月24日(月) 旧暦 [n年日記]

7102歩

#2 [天気] 風が強い。家の中がほこりだらけ。


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

Count.cgi (since 2000/02/05)