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

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

2014年07月31日(木) 旧暦 [n年日記] [更新:"2014/07/31 23:16:04"]

#1 [pkgsrc] libsmb_samba_internal.so: missing library: libtalloc.so.2

=> Checking for missing run-time search paths in samba-4.1.9
ERROR: lib/python2.7/site-packages/samba/samba3/libsmb_samba_internal.so: 
   missing library: libtalloc.so.2
ERROR: lib/samba/libcmdline-credentials.so: missing library: libtalloc.so.2
ERROR: lib/samba/libinterfaces.so: missing library: libtalloc.so.2
ERROR: lib/samba/libsmbpasswdparser.so: missing library: libtalloc.so.2
*** Error code 1
RPATH issue ?
modena@makoto 21:49:29/140731(%) grep  talloc.so usr/pkgsrc/wip/samba/PLIST
${PYSITELIB}/talloc.so
lib/samba/libtalloc.so.2
lib/samba/libtalloc.so.2.0.8
Following line may fix the issue:
LDFLAGS+=       -Wl,-rpath,${PREFIX}/lib/samba


2014年07月27日() 旧暦 [n年日記] [更新:"2014/07/30 00:11:37"]

#1 [pkgsrc] wip/rtl-sdr rtl-sdr in pkgsrc

Realtek RTL2838UHIDIR, rev 2.00/1.00, addr 2
modena@makoto 17:13:04/140727(..)% sudo rtl_adsb
Found 1 device(s):
  0:  Realtek, RTL2838UHIDIR, SN: 00000001

Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
Tuner gain set to automatic.
Tuned to 1090000000 Hz.
Exact sample rate is: 2000000.052982 Hz
Sampling at 2000000 S/s.
Failed to submit transfer 0!
zsh: segmentation fault (core dumped)  sudo rtl_adsb
Then checked by gdb (You need to be root)
modena@makoto 17:13:55/140727(..)% \
sudo gdb /usr/pkg/bin/rtl_adsb rtl_adsb.core
GNU gdb (GDB) 7.3.1
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64--netbsd".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/pkg/bin/rtl_adsb...(no debugging symbols found)...done.
[New process 1]
[New process 2]
Core was generated by `rtl_adsb'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007f7ff7404892 in libusb_cancel_transfer () from /usr/pkg/lib/libusb-1.0.so.0
(gdb) bt
#0  0x00007f7ff7404892 in libusb_cancel_transfer () from /usr/pkg/lib/libusb-1.0.so.0
#1  0x00007f7ff7805dbf in rtlsdr_read_async () from /usr/pkg/lib/librtlsdr.so.0
#2  0x00000000004027cf in main ()
(gdb) 
i386 does not have the same problem (NetBSD/i386 6.1.4)


2014年07月22日(火) 旧暦 [n年日記] [更新:"2014/07/22 21:53:18"]

#1 [Mail] imget stores in +inbox

ずうっと昔の日記 (2003/11/13) を見て、(あまり良く考えずに)
  imget --source:local=../makoto
のようにしたら +inbox に入ってしまった。ので、次のようにして procmail に入直し
  imget --source:local=../makoto
  pushd ~/Mail/inbox
  foreach i (`seq 72406 72420`)
  sudo cat $i | \
     /usr/sbin/sendmail -f \
    `grep Return-Path $i  | sort -u | sed -e 's/Return-Path: <//' -e 's/>//'` \
    makoto at ki nu; 
  sleep 3
  end


2014年07月21日(月) 旧暦 [n年日記] [更新:"2014/07/26 00:33:18"]

#1 [NetBSD] Switch Lets Note R4 from 6.99.7 to 6.99.47

6.99.7 を入れて run0 を動かしていた Lets Note R4 を 6.99.47 に入替えた (upgrade)
  • nyftp の から、次の二つだけ持って来て netboot
    ls -l i386-current/
    total 30384
    -rw-r--r--  1 makoto  wheel       80 Jul 20 20:21 URL
    -rw-r--r--  2 makoto  wheel  7729699 Jul 20 18:10 netbsd
    -rw-r--r--  2 makoto  wheel  7729699 Jul 20 18:10 netbsd-INSTALL.gz
    -rw-r--r--  1 makoto  wheel    53444 Jul 20 18:10 pxeboot_ia32.bin
    modena@makoto 22:23:49/140720(~)% cat  URL
    http://nyftp.netbsd.org/pub/NetBSD-daily/HEAD/201407200700Z/i386/binary/kernel/
    
  • sysinst では upgrade を選ぶ。 Install は Full を選ぶ (この href の先の内容は要更新だけれども)。
  • 無事終了して再起動すると、何と xdm が動いている
  • run0 を差した時に、自動的に設定する手続も(以前のままで)うまく動く。
  • 何か操作をしていたら、間違ったキーの組合せを押してしまったらしく
    login: 
    
    が出てしまう。この辺は、あまり慣れていない訳だが、 を見て、 Control + Alt + (F1 .. F12) で切替えられるらしい。F5 の時に、元に戻った。
  • 今は 以前に作った pkgsrc のものが入っているのだが、作り直す予定。 さて modular にするのでしょうか。
Xorg.0.log
dmesg.boot run0 を差したまま
sudo /etc/powerd/script/lid_switch hoge pressed
をすると、
Jul 20 23:00:31 r4-2 dhclient: Received signal 15, initiating shutdown.
Jul 20 23:00:31 r4-2 dhclient: DHCPRELEASE on run0 to 192.168.60.30 port 67
Jul 20 23:00:33 r4-2 /netbsd: acpi0: entering state S3
Jul 20 23:00:33 r4-2 /netbsd: Devices without power management support: run0
Jul 20 23:00:33 r4-2 /netbsd: acpi0: aborting suspend
となるので、手で抜いてからだと寝てくれる。起きてから run0 を差せば、 (ちょっと時間がかかるが) 自動でつながってくれる

昔の 2010/07/04 を見ると、蓋をしめるだけで寝てくれる、とある。 ふたをしめた時に、

sysctl -w hw.acpi.sleep.stat=3
を実行するようにしたら、起動後、一回だけは、 ふたをとじると寝て、開けると、 起きる。しかし、二度目は 何も反応しない。ただし、その時でも
hw.acpi.sleep.state= 3
とすると寝るので、「ふたをとじる」感知が効いていないだけらしい。
hw.acpi.sleep.vbios = 1
という変数は何に使うのだろうか
man acpi
...
hw.acpi.sleep.vbios
     Defines the handling of the graphics card on i386 and amd64
     architectures.  The supported values are:

       0    No attempt to reset the VGA controller will be made.

       1    Call the VGA BIOS when still in real mode.  This can
            result in direct reboots.  In that case, use `2' or
            vbetool post from the pkgsrc/sysutils/vbetool pack-
            age.

       2    Call the VGA BIOS using the in-kernel x86 emulator.

     If the system has problems in resuming from the S3 state,
     experimenting with different values may provide a solution.
とりあえず、今回は関係なさそう。
もし S3 の状態から再開する時に、何か問題があるなら、この値をいろいろ変えて 見ると、解決方法があるかも知れない、
と書いてある。(とじる方には関係ないが、再開する方には大いに関係がありそうだ)


2014年07月20日() 旧暦 [n年日記] [更新:"2014/07/22 21:58:08"]

#1 [pkgsrc] doxygen

'doygen -g' (Re: Doxygen after long time absense)
--- a/parser/Doxyfile
+++ b/parser/Doxyfile
-CREATE_SUBDIRS         = NO
+CREATE_SUBDIRS         = YES
-OPTIMIZE_OUTPUT_FOR_C  = NO
+OPTIMIZE_OUTPUT_FOR_C  = YES
-EXTRACT_ALL            = NO
+EXTRACT_ALL            = YES
-EXTRACT_PRIVATE        = NO
+EXTRACT_PRIVATE        = YES
-RECURSIVE              = NO
+RECURSIVE              = YES
-EXAMPLE_RECURSIVE      = NO
+EXAMPLE_RECURSIVE      = YES
-SOURCE_BROWSER         = NO
+SOURCE_BROWSER         = YES
-STRIP_CODE_COMMENTS    = YES
+STRIP_CODE_COMMENTS    = NO
-GENERATE_LATEX         = YES
+GENERATE_LATEX         = NO
-PERL_PATH              = /usr/bin/perl
+PERL_PATH              = /usr/pkg/bin/perl
-HAVE_DOT               = NO
+HAVE_DOT               = YES
-CALL_GRAPH             = NO
+CALL_GRAPH             = YES
-CALLER_GRAPH           = NO
+CALLER_GRAPH           = YES
-DOT_IMAGE_FORMAT       = png
+DOT_IMAGE_FORMAT       = svg
-INTERACTIVE_SVG        = NO
+INTERACTIVE_SVG        = YES
Browser で file:///PATH/TO/html/ で開ける
印刷したい時には、browser で右上の ←⊃ のような印を選んで 一画面にしてから print する
あるいは
GENERATE_LATEX         = YES
にしておくと、*_cgraph.pdf のような名前で pdf 形式を作ってくれる

#2 [printer] HL-6050DN

Toner end of life:
ItemDescription
Node_NameBRN_EEF287
Printer_TypeBrother HL-6050DN series
Location
Contact
IP_Address192.168.1.1
Serial no.C9J247369
Printer Firmware Version2.18
Network Version1.06
Memory Size32
Page Count21115
Drum Count21115
Estimated Pages Remaining8885
% of Life Remaining29.6
Paper Feeding Kit MP98544
Paper Feeding Kit 184215
Paper Feeding Kit 2100000
Fuser Unit128885
Scanner Unit178885
MP_Tray1456
Tray115785
Tray20
Duplex3874
A4/Letter16972
Legal/A4 Long/Folio0
B5/Exe152
Envelope0
Others117
Paper Feeding Kit MP0
Paper Feeding Kit 10
Paper Feeding Kit 20
Fuser Unit0
Scanner Unit0
Drum Unit0
Toner3
Total Paper Jams59
Jam MP Tray13
Jam Tray132
Jam Tray20
Jam Inside7
Jam Rear5
Jam Duplex2
Error1TONER LIFE END
Error2JAM MP TRAY
Error3NO PAPER MP
Error4JAM TRAY1
Error5NO PAPER MP
Error6JAM MP TRAY
Error7NO PAPER MP
Error8JAM MP TRAY
Error9NO PAPER MP
Error10DX LEVER ERROR
2009/07/10 購入
2010/04/21 トナー交換
ちょうど 5 年で 21,000 枚なので、4,200 枚/年 くらいか。
7/22 に 7,500 枚用の TN47J を買って来たら 11,100 円だった。


2014年07月18日(金) 旧暦 [n年日記] [更新:"2014/07/20 14:46:27"]

#1 [Mail] procmail で文字列の中央に一致させ、その名前のフォルダに保存

procmail で \/ の文字の後を取出すことは出来る。その更に後の方を切りたい(捨てたい)時:
(以下 では @ を ' at ' に変えています)
#  文字列の中(中央)の文字を拾いたかったら、二回 match を使えば良い
#    Return-Path: <announce-ja-return-159-makoto=ki.nu at jp.netbsd.org>
#                  ===========
:0
* ^Return-Path: <\/.*makoto=ki.nu at jp.netbsd.org
   {
   :0
   * ^Return-Path: <\/.*-return-
     {
     :0 h
     FILE=|echo "$MATCH"|sed s/-return-//
     :0
     jp.netbsd.org/$FILE/.
  #    You need to mkdir Mail/jp.netbsd.org manually
  }
}


2014年07月16日(水) 旧暦 [n年日記] [更新:"2014/07/17 05:51:05"]

#1 [pkgsrc] Can't locate Net/IDN/Encode.pm in @INC (you may need to

modena@makoto 19:17:02/140716(..security/caff)% caff --help
 Can't locate Net/IDN/Encode.pm in @INC (you may need to
 install the Net::IDN::Encode module) (@INC contains:
  /usr/pkg/lib/perl5/site_perl/5.20.0/x86_64-netbsd-thread-multi
  /usr/pkg/lib/perl5/site_perl/5.20.0
  /usr/pkg/lib/perl5/vendor_perl/5.20.0/x86_64-netbsd-thread-multi
  /usr/pkg/lib/perl5/vendor_perl/5.20.0
  /usr/pkg/lib/perl5/5.20.0/x86_64-netbsd-thread-multi
  /usr/pkg/lib/perl5/5.20.0 .) at /usr/pkg/bin/caff line 378.
  BEGIN failed--compilation aborted at /usr/pkg/bin/caff line  378.

modena@makoto 19:17:05/140716(..security/caff)% ls /export/packages-6.1.4*/All/caff*
/export/packages-6.1.4/All/caff-1.1.5.tgz                /export/packages-6.1.4a/All/caff-1.1.7nb1.tgz
modena@makoto 19:17:31/140716(..security/caff)% ls -l /export/packages-6.1.4*/All/caff*
-rw-r--r--  1 makoto  wheel  49383 Feb 21 15:33 /export/packages-6.1.4/All/caff-1.1.5.tgz
-rw-r--r--  1 makoto  wheel  57315 Jun 14 19:41 /export/packages-6.1.4a/All/caff-1.1.7nb1.tgz
modena@makoto 19:17:33/140716(..security/caff)% pkg_info |grep caff
caff-1.1.7nb1       Various GnuPG related tools
modena@makoto 19:17:41/140716(..security/caff)% 
modena@makoto 19:26:45/140716(..security/caff)% \
   ls -l  /usr/pkg/lib/perl5/5.20.0/x86_64-netbsd-thread-multi/Encode.pm
-r--r--r--  1 root  wheel  33216 Jun 14 11:27 
   /usr/pkg/lib/perl5/5.20.0/x86_64-netbsd-thread-multi/Encode.pm
   376  use Encode ();
   377  use I18N::Langinfo qw{langinfo};
   378  use Net::IDN::Encode ();


2014年07月13日() 旧暦 [n年日記] [更新:"2014/07/13 13:26:13"]

#1 [NetBSD] git repository

NetBSD の VCS を git にしようというような話では msaitoh@ さんからまとめを教わりました。つまり などの変換努力があります。 以下ではその中から、IIJ の Team によるものを持出して、一つ tools を作って見た。
   11  git clone https://github.com/IIJ-NetBSD/netbsd-src/
   14  cd netbsd-src/
   16  ./build.sh --help
   17  ./build.sh --help | grep -i obj
   18  sudo ./build.sh -j 4 -m prep -O /export/obj tools
...
mkdir -p /export/obj/tooldir.NetBSD-6.1.4-amd64/bin
/export/obj/tooldir.NetBSD-6.1.4-amd64/bin/powerpc--netbsd-install
  -c -r -m 555 config
  /export/obj/tooldir.NetBSD-6.1.4-amd64/bin/nbconfig
===> Tools built to /export/obj/tooldir.NetBSD-6.1.4-amd64
===> build.sh ended:      Sun Jul 13 09:52:25 JST 2014
===> Summary of results:
         build.sh command:    ./build.sh -j 4 -m prep -O /export/obj tools
         build.sh started:    Sun Jul 13 09:39:22 JST 2014
         NetBSD version:      6.99.45
         MACHINE:             prep
         MACHINE_ARCH:        powerpc
         Build platform:      NetBSD 6.1.4 amd64
         HOST_SH:             /bin/sh
         No $TOOLDIR/bin/nbmake, needs building.
         Bootstrapping nbmake
         MAKECONF file:       /etc/mk.conf
         TOOLDIR path:        /export/obj/tooldir.NetBSD-6.1.4-amd64
         DESTDIR path:        /export/obj/destdir.prep
         RELEASEDIR path:     /export/obj/releasedir
         Created /export/obj/tooldir.NetBSD-6.1.4-amd64/bin/nbmake
         Updated makewrapper: /export/obj/tooldir.NetBSD-6.1.4-amd64/bin/nbmake-prep
         Tools built to /export/obj/tooldir.NetBSD-6.1.4-amd64
         build.sh ended:      Sun Jul 13 09:52:25 JST 2014
===> .

clone joerg version of github:

modena@makoto 11:17:05/140713(/export/git-work)% time git clone https://github.com/jsonn/src
Cloning into 'src'...
remote: Reusing existing pack: 3367231, done.
remote: Counting objects: 627, done.
remote: Compressing objects: 100% (614/614), done.
remote: Total 3367858 (delta 337), reused 0 (delta 0)
Receiving objects: 100% (3367858/3367858), 1.05 GiB | 1.11 MiB/s, done.
Resolving deltas: 100% (2704136/2704136), done.
Checking connectivity... done.
Checking out files: 100% (144201/144201), done.
301.99s 162.38s 1:48:23.35 7% 0+0k 2272+20572io 20942pf+0w
(On another proccess, gcc-4.8.3 is being compiled, that may be why too slow, I am afraid).
Note: joerg version include the commit done on 7/06, a week ago,
451e6af1 sys/arch/powerpc/include/oea/bat.h (mrg 2014-07-06 08:06:03 +0000  72) } __aligned(8);
while IIJ version does not.


2014年07月12日() 旧暦 [n年日記] [更新:"2014/07/13 21:22:41"]

#1 [pkgsrc] gcc-4.8.3 and Emacs-22

gmake[1]: *** [quail/CCDOSPY.elc] Error 134
Converting ziranma.cin to ZIRANMA.el...done
Converting cangjie-table.cns to tsang-cns.el...
Converting cangjie-table.cns to tsang-cns.el...done
Converting cangjie-table.cns to quick-cns.el...
Converting cangjie-table.cns to quick-cns.el...done
Converting CTLau-b5.html to CTLau-b5.el...
Converting CTLau-b5.html to CTLau-b5.el...done
Converting CTLau.html to CTLau.el...
Converting CTLau.html to CTLau.el...done
[1]   Abort trap (core dumped) EMACSLOADPATH=/W...
gmake[1]: Leaving directory '/WRKOBJDIR/editors/emacs22/work/emacs-22.3/leim'
Makefile:293: recipe for target 'leim' failed
gmake: *** [leim] Error 2
*** Error code 2

Stop.
make: stopped in /usr/pkgsrc/editors/emacs22
*** Error code 1

Stop.
modena# (cd /WRKOBJDIR/editors/emacs22/work/emacs-22.3/src/; gdb emacs emacs.core)
GNU gdb (GDB) 7.3.1
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64--netbsd".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /WRKOBJDIR/editors/emacs22/work/emacs-22.3/src/emacs
     ...(no debugging symbols found)...done.
[New process 1]
Core was generated by `emacs'.
Program terminated with signal 6, Aborted.
#0  0x00007f7ff343962a in kill () from /usr/lib/libc.so.12
SIGINT is used by the debugger.
Are you sure you want to change it? (y or n) [answered Y; input not from terminal]
DISPLAY = :0
TERM = xterm
.gdbinit:1110: Error in sourced command file:
No struct type named Lisp_Symbol.
(gdb) bt
#0  0x00007f7ff343962a in kill () from /usr/lib/libc.so.12
#1  <signal handler called>
#2  0x00007f7ff343962a in kill () from /usr/lib/libc.so.12
#3  0x00000000004addc5 in abort ()
#4  0x00007f7ff3009423 in __deregister_frame_info_bases (begin=0x5876e0)
                             at ../../../gcc-4.8.3/libgcc/unwind-dw2-fde.c:216
#5  0x000000000040c5d3 in ?? ()
#6  0x0000000000000000 in ?? ()

Lisp Backtrace:
Attempt to extract a component of a value that is not a structure pointer.
(gdb) 


2014年07月11日(金) 旧暦 [n年日記] [更新:"2014/07/11 23:08:23"]

#1 [pkgsrc] spamd killed: out of swap

Jul 11 14:42:51 agrigento /netbsd: UVM: pid 11910 (perl), uid 2029 killed: out of swap
Jul 11 14:42:51 agrigento /netbsd: UVM: pid 9944 (perl), uid 2029 killed: out of swap
Jul 11 14:42:51 agrigento /netbsd: UVM: pid 8178 (perl), uid 2029 killed: out of swap
Jul 11 14:42:51 agrigento /netbsd: UVM: pid 12209 (perl), uid 2029 killed: out of swap
Jul 11 14:42:51 agrigento /netbsd: UVM: pid 11744 (perl), uid 2029 killed: out of swap
Jul 11 14:42:51 agrigento /netbsd: UVM: pid 12212 (perl), uid 2029 killed: out of swap
Jul 11 14:42:51 agrigento /netbsd: UVM: pid 10402 (spamc), uid 0 killed: out of swap
Jul 11 14:42:51 agrigento /netbsd: UVM: pid 10715 (perl), uid 2029 killed: out of swap
Jul 11 14:42:51 agrigento /netbsd: UVM: pid 9871 (perl), uid 2029 killed: out of swap
Jul 11 14:42:51 agrigento /netbsd: UVM: pid 10099 (perl), uid 2029 killed: out of swap
Jul 11 14:59:03 agrigento /netbsd: UVM: pid 12242 (perl), uid 2029 killed: out of swap
Jul 11 14:59:03 agrigento /netbsd: UVM: pid 12799 (spamc), uid 0 killed: out of swap
Jul 11 15:03:02 agrigento /netbsd: UVM: pid 12294 (perl), uid 2029 killed: out of swap
Jul 11 15:04:49 agrigento /netbsd: UVM: pid 11322 (perl), uid 2029 killed: out of swap
Jul 11 15:21:21 agrigento /netbsd: UVM: pid 4363 (perl), uid 2029 killed: out of swap
Jul 11 15:26:24 agrigento /netbsd: UVM: pid 12139 (perl), uid 2029 killed: out of swap
Jul 11 15:30:11 agrigento /netbsd: UVM: pid 11035 (perl), uid 2029 killed: out of swap
Jul 11 15:30:11 agrigento /netbsd: UVM: pid 10527 (spamc), uid 0 killed: out of swap
Jul 11 16:00:00 agrigento syslogd[9593]: restart
Jul 11 16:11:44 agrigento /netbsd: UVM: pid 12398 (perl), uid 2029 killed: out of swap
Jul 11 16:20:49 agrigento /netbsd: UVM: pid 13055 (perl), uid 2029 killed: out of swap
Jul 11 16:24:37 agrigento /netbsd: UVM: pid 4555 (perl), uid 2029 killed: out of swap
Jul 11 16:34:06 agrigento /netbsd: UVM: pid 12462 (perl), uid 2029 killed: out of swap
Jul 11 16:57:25 agrigento /netbsd: UVM: pid 11748 (perl), uid 2029 killed: out of swap
Jul 11 17:05:20 agrigento /netbsd: UVM: pid 10675 (perl), uid 2029 killed: out of swap
Jul 11 17:19:27 agrigento /netbsd: UVM: pid 10647 (perl), uid 2029 killed: out of swap
Jul 11 17:31:08 agrigento /netbsd: UVM: pid 10890 (perl), uid 2029 killed: out of swap
Jul 11 17:34:40 agrigento /netbsd: UVM: pid 11940 (perl), uid 2029 killed: out of swap
Jul 11 17:42:09 agrigento /netbsd: UVM: pid 10867 (perl), uid 2029 killed: out of swap
Jul 11 17:47:35 agrigento /netbsd: UVM: pid 11039 (perl), uid 2029 killed: out of swap
Jul 11 18:04:55 agrigento /netbsd: UVM: pid 12704 (perl), uid 2029 killed: out of swap
Jul 11 18:08:26 agrigento /netbsd: UVM: pid 13091 (perl), uid 2029 killed: out of swap
Jul 11 18:21:12 agrigento syslogd[9593]: Fatal error, exiting
実メモリが 8GB, swap が 8GB、合計 16GB。これでも足りなくなり、 上記のようになるらしい。何か無駄なことをやっているに違いない。

一応 perl の malloc がおかしいと仮定すると:

modena@makoto 15:47:57/140711(~)% ldd `which perl`
/usr/pkg/bin/perl:
        -lperl => /usr/pkg/lib/perl5/5.20.0/x86_64-netbsd-thread-multi/CORE/libperl.so
        -lm.0 => /usr/lib/libm.so.0
        -lgcc_s.1 => /usr/lib/libgcc_s.so.1
        -lc.12 => /usr/lib/libc.so.12
        -lcrypt.1 => /usr/lib/libcrypt.so.1
        -lpthread.1 => /usr/lib/libpthread.so.1

modena@makoto 23:05:46/140711(~)% nm `which perl` |grep alloc 
                 U perl_alloc
modena@makoto 23:06:01/140711(~)% \
nm  /usr/pkg/lib/perl5/5.20.0/x86_64-netbsd-thread-multi/CORE/libperl.so |grep alloc
0000000000132507 T PerlIO_allocate
000000000013256b T PerlIO_list_alloc
0000000000032bd4 T Perl_alloccopstash
0000000000032873 T Perl_allocmy
00000000000a0f56 T Perl_calloc
00000000000a0f51 T Perl_malloc
000000000007a8f7 T Perl_pad_alloc
00000000000a0f5b T Perl_realloc
00000000000a221d T Perl_safesyscalloc
00000000000a1896 T Perl_safesysmalloc
00000000000a1cd2 T Perl_safesysrealloc
00000000000eeda9 T Perl_save_alloc
000000000008108e t S_alloc_maybe_populate_EXACT
00000000000a2273 t S_mess_alloc
000000000007aa6a t S_pad_alloc_name
                 U calloc
                 U malloc
0000000000048049 T perl_alloc
                 U realloc


2014年07月06日() 旧暦 [n年日記] [更新:"2014/07/06 11:04:06"]

#1 [NetBSD] NetBSD/prep 6.99.46 build.sh

make release started at:  Sat Jul  5 23:32:40 JST 2014
make release finished at: Sun Jul  6 01:24:39 JST 2014
===> Successful make release
===> build.sh ended:      Sun Jul  6 01:24:39 JST 2014
===> Summary of results:
         build.sh command:    ./build.sh -j 8 -m prep release
         build.sh started:    Sat Jul  5 23:32:31 JST 2014
         NetBSD version:      6.99.46
         MACHINE:             prep
         MACHINE_ARCH:        powerpc
         Build platform:      NetBSD 6.1.4 amd64
         HOST_SH:             /bin/sh
         No $TOOLDIR/bin/nbmake, needs building.
         Bootstrapping nbmake
         MAKECONF file:       /etc/mk.conf
         TOOLDIR path:        /export/src/obj/tooldir.NetBSD-6.1.4-amd64
         DESTDIR path:        /export/src/obj/destdir.prep
         RELEASEDIR path:     /export/src/obj/releasedir
         Created /export/src/obj/tooldir.NetBSD-6.1.4-amd64/bin/nbmake
         Updated makewrapper: /export/src/obj/tooldir.NetBSD-6.1.4-amd64/bin/nbmake-prep
         Successful make release
         build.sh ended:      Sun Jul  6 01:24:39 JST 2014
===> .
8960.06s 1864.56s 1:52:10.81 160% 0+0k 5088+26373io 39961pf+0w
0.55s 17.06s 1:52:10.81 0% 0+0k 3+1733io 15pf+0w
modena@makoto 01:24:39/140706(/export/src)% 
Index: sys/arch/powerpc/include/oea/bat.h
===================================================================
RCS file: /cvs/cvsroot/src/sys/arch/powerpc/include/oea/bat.h,v
retrieving revision 1.17
diff -u -r1.17 bat.h
--- sys/arch/powerpc/include/oea/bat.h	15 Feb 2012 04:33:19 -0000	1.17
+++ sys/arch/powerpc/include/oea/bat.h	5 Jul 2014 22:52:22 -0000
@@ -69,7 +69,7 @@
 struct bat {
 	register_t batu;
 	register_t batl;
-};
+} __aligned(8);
 #endif
 
 /* Lower BAT bits (all but PowerPC 601): */
modena@makoto 10:23:06/140706(/export/src)% \
foreach i ( sys/arch/prep/compile/obj/*/netbsd)
echo -n $i "\t"; ./obj/tooldir.NetBSD-6.1.4-amd64/bin/powerpc--netbsd-objdump -x $i \
| grep -i battable
end
sys/arch/prep/compile/obj/GENERIC/netbsd        0058f330 g     O .bss   00001000 battable
sys/arch/prep/compile/obj/INSTALL/netbsd        00531de8 g     O .bss   00001000 battable
sys/arch/prep/compile/obj/INSTALL_SMALL/netbsd  004d6228 g     O .bss   00001000 battable
kernelresult
sysinst.fso
sysinst_small.fso
generic.fscursor blink


sysinst_com0.fsINTRF (*)
sysinst_small_com0.fsINTRF (*)
generic_com0.fsnothing happens after kernel loaded
(*)
>> NetBSD/prep BOOT, Revision 1.9 (Sun Jul  6 00:52:37 JST 2014)

INTRF
phase mismatch without command
selection timeout without command
unhandled scsi interrupt, sist=0xffff sstat1=0xff DSA=0xffffffff DSP=0x7f7e8fff
XXXXX: fatal error, need reset the bus...


2014年07月05日() 旧暦 [n年日記] [更新:"2014/07/06 09:56:33"]

#1 [NetBSD] build.sh -m prep

I have PReP machine and checked the current status.
 time cvs -Q -d :pserver:anoncvs@anoncvs.jp.netbsd.org:/cvs/cvsroot  co -D '2014-06-18 2110' src 
38.51s 98.91s 1:08:05.47 3% 0+0k 937+85593io 3pf+0w
time sudo ./build.sh -j 1 -u -m prep release |& tee ../log-release-2014-06-18-prep
===> Summary of results:
         build.sh command:    ./build.sh -j 1 -u -m prep release
         build.sh started:    Sat Jul  5 07:59:37 JST 2014
         NetBSD version:      6.99.44
         MACHINE:             prep
         MACHINE_ARCH:        powerpc
         Build platform:      NetBSD 6.1.4 amd64
         HOST_SH:             /bin/sh
         MAKECONF file:       /etc/mk.conf
         TOOLDIR path:        /export/src-current/src/obj/tooldir.NetBSD-6.1.4-amd64
         DESTDIR path:        /export/src-current/src/obj/destdir.prep
         RELEASEDIR path:     /export/src-current/src/obj/releasedir
         Updated makewrapper: /export/src-current/src/obj/tooldir.NetBSD-6.1.4-amd64/bin/nbmake-prep
         Successful make release
         build.sh ended:      Sat Jul  5 10:50:34 JST 2014
===> .
7718.78s 1499.21s 2:51:04.04 89% 0+0k 1470+19094io 55316pf+0w
0.31s 16.47s 2:51:04.04 0% 0+0k 3+2501io 16pf+0w
modena@makoto 11:01:14/140705(..src-current/src)% ls -lR obj/releasedir/prep/
total 976
-r--r--r--  1 root  wheel  132122 Jul  5 10:46 INSTALL.html
-r--r--r--  1 root  wheel  105106 Jul  5 10:46 INSTALL.more
-r--r--r--  1 root  wheel  157037 Jul  5 10:46 INSTALL.ps
-r--r--r--  1 root  wheel   97782 Jul  5 10:46 INSTALL.txt
drwxr-xr-x  4 root  wheel     512 Jul  5 10:45 binary
drwxr-xr-x  3 root  wheel     512 Jul  5 10:45 installation

obj/releasedir/prep/binary:
total 8
drwxr-xr-x  2 root  wheel  512 Jul  5 10:50 kernel
drwxr-xr-x  2 root  wheel  512 Jul  5 10:50 sets

obj/releasedir/prep/binary/kernel:
total 12436
-rw-r--r--  1 root  wheel      323 Jul  5 10:50 MD5
-rw-r--r--  1 root  wheel      818 Jul  5 10:50 SHA512
-r--r--r--  1 root  wheel  2468612 Jul  5 10:47 netbsd-GENERIC.gz
-r--r--r--  1 root  wheel  1904431 Jul  5 10:47 netbsd-INSTALL.gz
-r--r--r--  1 root  wheel    88943 Jul  5 10:47 netbsd-INSTALL.symbols.gz
-r--r--r--  1 root  wheel  1743561 Jul  5 10:47 netbsd-INSTALL_SMALL.gz
-r--r--r--  1 root  wheel    77895 Jul  5 10:47 netbsd-INSTALL_SMALL.symbols.gz

obj/releasedir/prep/binary/sets:
total 290664
-rw-r--r--  1 root  wheel       511 Jul  5 10:50 MD5
-rw-r--r--  1 root  wheel      1501 Jul  5 10:50 SHA512
-rw-r--r--  1 root  wheel  44463036 Jul  5 10:48 base.tgz
-rw-r--r--  1 root  wheel  71624555 Jul  5 10:50 comp.tgz
-rw-r--r--  1 root  wheel    581373 Jul  5 10:50 etc.tgz
-rw-r--r--  1 root  wheel   3328006 Jul  5 10:50 games.tgz
-rw-r--r--  1 root  wheel   2468714 Jul  5 10:45 kern-GENERIC.tgz
-rw-r--r--  1 root  wheel  10707523 Jul  5 10:50 man.tgz
-rw-r--r--  1 root  wheel   3604395 Jul  5 10:50 misc.tgz
-rw-r--r--  1 root  wheel   2010102 Jul  5 10:50 modules.tgz
-rw-r--r--  1 root  wheel   6834869 Jul  5 10:50 tests.tgz
-rw-r--r--  1 root  wheel   2931632 Jul  5 10:50 text.tgz

obj/releasedir/prep/installation:
total 4
drwxr-xr-x  2 root  wheel  512 Jul  5 10:47 floppy

obj/releasedir/prep/installation/floppy:
total 24904
-rw-r--r--  1 root  wheel      339 Jul  5 10:47 MD5
-rw-r--r--  1 root  wheel      933 Jul  5 10:47 SHA512
-r--r--r--  1 root  wheel  2535560 Jul  5 10:47 generic.fs
-r--r--r--  1 root  wheel  2525480 Jul  5 10:47 generic_com0.fs
-r--r--r--  1 root  wheel  1971379 Jul  5 10:47 sysinst.fs
-r--r--r--  1 root  wheel  1961299 Jul  5 10:47 sysinst_com0.fs
-r--r--r--  1 root  wheel  1810509 Jul  5 10:47 sysinst_small.fs
-r--r--r--  1 root  wheel  1800429 Jul  5 10:47 sysinst_small_com0.fs
(after patch)
modena@makoto 15:07:06/140705(..src-current/src)% foreach i ( sys/arch/prep/compile/obj/*/netbsd)
echo $i; ./obj/tooldir.NetBSD-6.1.4-amd64/bin/powerpc--netbsd-objdump -x $i |grep battable
end
sys/arch/prep/compile/obj/GENERIC/netbsd
0058e480 g     O .bss   00001000 battable
sys/arch/prep/compile/obj/INSTALL/netbsd
00531840 g     O .bss   00001000 battable
sys/arch/prep/compile/obj/INSTALL_SMALL/netbsd
004d5e00 g     O .bss   00001000 battable
modena@makoto 15:07:13/140705(..src-current/src)% 
after patch, sysinst_com0.fs
>> NetBSD/prep BOOT, Revision 1.9 (Sat Jul  5 10:19:00 JST 2014)

INTRF
phase mismatch without command
selection timeout without command
unhandled scsi interrupt, sist=0xffff sstat1=0xff DSA=0xffffffff DSP=0x7f7e8fff
XXXXX: fatal error, need reset the bus...
INTRF
phase mismatch without command
selection timeout without command
unhandled scsi interrupt, sist=0xffff sstat1=0xff DSA=0xffffffff DSP=0x7f7e8fff
XXXXX: fatal error, need reset the bus...
after patch, sysinst_small_com0.fs
>> NetBSD/prep BOOT, Revision 1.9 (Sat Jul  5 10:19:00 JST 2014)

INTRF
phase mismatch without command
selection timeout without command
unhandled scsi interrupt, sist=0xffff sstat1=0xff DSA=0xffffffff DSP=0x7f7e8fff
XXXXX: fatal error, need reset the bus...
INTRF
phase mismatch without command
selection timeout without command
unhandled scsi interrupt, sist=0xffff sstat1=0xff DSA=0xffffffff DSP=0x7f7e8fff
XXXXX: fatal error, need reset the bus...

score of various kernel:

netboot kernel20140618+ patch20140703(nyftp)
generic.fsxxcursor blinking
sysinst.fsooo
sysinst_small.fsooo




generic_com0.fsxx(nothing)
sysinst_com0.fsINTRFINTRFINTRF
sysinst_small_com0.fsINTRFINTRFINTRF
 232  static int
 233  siop_intr(struct siop_adapter *adp)
 234  {
    .........
 246         if (istat & ISTAT_INTF) {
 247                 printf("INTRF\n");
 248                 writeb(adp->addr + SIOP_ISTAT, ISTAT_INTF);
 249         }
    .........
 277                 if ((sist & SIST0_MA) && need_reset == 0) {
 278                         if (siop_xfer) {
 279                                 int scratcha0;
 280 
 281                                 dstat = readb(adp->addr + SIOP_DSTAT);
 282                                 /*
    .........
 319                                         return 1;
 320                                 }
 321                                 printf("unexpected phase mismatch %d\n",
 322                                     sstat1 & SSTAT1_PHASE_MASK);
 323                         } else
 324                                 printf("phase mismatch without command\n");
 325                         need_reset = 1;

multi-user:

(Strange) ... I've SMALL conf, which is strip version from INSTALL_SMALL, and have kernel compiled.
Then I did mkbootimage (with cross environment).
modena@makoto 18:09:27/140705(..usr/mdec)% 
/export/src-current/src/obj/tooldir.NetBSD-6.1.4-amd64/bin/nbpowerpc-mkbootimage \
-m prep -b ./boot -k  /export/src-current/src/sys/arch/prep/compile/obj/SMALL/netbsd /tmp/.bootimage

modena@makoto 18:09:51/140705(..usr/mdec)% lslt /tmp/.bootimage 
-rw-r--r--  1 makoto  wheel  1313905 Jul  5 18:09 /tmp/.bootimage
The next dd, I tried within net-booted sysinst environment. But I've got 'conv disabled'. So,
mount /dev/sd0a /mnt
chroot /mnt
mount -a
and did dd transfer.
Then rebooted. But dmesg says
NetBSD 6.99.44 (GENERIC) #0: Sat Jul  5 10:39:47 JST 2014
        root@modena:/export/src-current/src/sys/arch/prep/compile/obj/GENERIC
Model: IBM PPS Model 7248 (E)
(and besides, serial console works).
illegal request, data = 0 0 0 0 24 0 0 cb 0 1


2014年07月03日(木) 旧暦 [n年日記] [更新:"2014/07/04 00:23:00"]

#1 [Ham] LoTW filled by N6QQ

某局が LoTW の recent QSL が N6QQ で埋っている、 というので、調べて見たら、自分も同じだった。3.5MHz がないのが残念 ;-)
ついでに 160m の DXCC を見たら 40 -> 42 に増えている。多分最近のは、 次の二つだと思う。(25 x 39 ページ目)
HB9CVQ 	2014-01-26 19:10:00 160M CW 1.812000 SWITZERLAND
SV3RF 	2014-01-26 19:48:00 160M CW 1.817000 GREECE


2014年07月01日(火) 旧暦 [n年日記] [更新:"2014/07/27 07:03:04"]

#1 [git] gitolite-3.5.2/README.txt (gitolite again)

devel/gitolite で make package-install する を見ながら ..
以下上記 README.txt と pkg_info -D gitolite の表示 に沿って作業をするが、 ここで
  • workstation というのが手元の機械 (client という人もいる)
  • server というのが共用の機械
以下で、(管理用の)公開鍵を使うが、これは、
  1. 管理する人(自分)がいつも使っているものを流用
  2. 専用のものを用意してその組を使う
の二つの方法が一応考えられる。 上記 README.txt では、前者と思われるので、以下ではその方法とする。

step to install::

(server 側で)
  • git という名前の user を作っておく。 例えば pkg_info -D gitolite にあるように
# groupadd git
# useradd -m -g git git
(場合によっては)
# useradd -m -g git -d /PATH/NEW_HOME git
管理用の公開鍵が、 サーバ側の $HOME/YourName.pub で (git user から) 読めるようになっていること
例えば
workstation 側の ~/.ssh/id_rsa.pub を サーバ側の ~YourName/YourName.pub に写しておく

(server 側で) git user で、次の操作をする

cd
git clone git://github.com/sitaramc/gitolite
gitolite setup -pk YourName.pub
(上の例では)
gitolite setup -pk ~YourName/YourName.pub
こうすることで YourName が conf/gitolite.conf の repo gitolite-admin の RW+ = に加えられる

利用者と保管庫:

利用者 (user) と保管庫 (repository) は手動で加えないこと、 これらと、利用許可 (access rule) の三点は、 特別な保管庫 (名前は gitolite-admin) で管理するので、 それに push するようにすること

まず、workstation (client) 側で、例えば

mkdir git-work
cd git-work
した後で、次の方法で、(作ったばかりの自分のサーバから) 手元に clone する
git clone git@Your_server:gitolite-admin
ここで passwd を聞かれるようでは、何か間違っているので、 上から見直す
何とか、password を聞かれないところまでこぎつけた
modena@makoto 18:38:05/140701(/export/git-work)% git clone git@ml2:gitolite-admin
Cloning into 'gitolite-admin'...
remote: Counting objects: 6, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 6 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (6/6), done.
Checking connectivity... done.
modena@makoto 18:38:24/140701(/export/git-work)% 

access rule (gitolite.conf):

例えば、次のような項目を加えて git commit と git push をする
modena@makoto 18:59:30/140701(..git-work/gitolite-admin)% git diff 17d0d063a7c
diff --git a/conf/gitolite.conf b/conf/gitolite.conf
index c8ddd03..adc0879 100644
--- a/conf/gitolite.conf
+++ b/conf/gitolite.conf
@@ -3,3 +3,6 @@ repo gitolite-admin
 
 repo testing
     RW+     =   @all
+
+repo hogehoge
+    RW+            =   makoto hisname hername
modena@makoto 18:59:37/140701(..git-work/gitolite-admin)%
実は、この後、いい加減な操作をしていたら、gitolite-admin を変更出来なくなってしまった。そういう時の回復手段も必要だなぁ。
その後、既存の保管庫を写すには、次のところに方法が書いてある

gitolite で Git 保管庫への SSH 利用を制御する




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

Count.cgi (since 2000/02/05)