|
|
便利なツール Emacs らくらく 入門 ![]() |
|
Namazu for hns による簡易全文検索 詳しくは 詳細指定/ヘルプを参照して下さい |
||||||||||||||||||||||||||||||||||||||||||||||
2021年03月26日(金) 旧暦 [n年日記] [更新:"2021/03/26 00:47:09"]#1 [mail][pkgsrc][MIME] decoding MIME encoded subject
を見て、そのまま実行したら、
sevan@makoto 09:38:28/210326(..wip/wsjt)% perl ~/perl/decode_mime Can't locate MIME/Words.pm in @INC (you may need to install the MIME::Words module) (@INC contains: /usr/pkg/lib/perl5/site_perl/5.32.0/x86_64-netbsd-thread-multi /usr/pkg/lib/perl5/site_perl/5.32.0 /usr/pkg/lib/perl5/vendor_perl/5.32.0/x86_64-netbsd-thread-multi /usr/pkg/lib/perl5/vendor_perl/5.32.0 /usr/pkg/lib/perl5/5.32.0/x86_64-netbsd-thread-multi /usr/pkg/lib/perl5/5.32.0) at /home/makoto/perl/decode_mime line 5. BEGIN failed--compilation aborted at /home/makoto/perl/decode_mime line 5.となったので、 sudo pkgin install p5-MIME-toolsしたら、動くようになった ( つっこみ )
2015年03月26日(木) 旧暦 [n年日記] [更新:"2015/04/03 02:05:18"]#1 [NetBSD] DRMKMS kernel problem on Let's Note CF-R4 (kern/49751)
PR kern/49751
Riastradh@ に教えてもらったことなのだが、次のような patch を当てておくと Index: sys/arch/x86/x86/bus_space.c =================================================================== RCS file: /cvsroot/src/sys/arch/x86/x86/bus_space.c,v retrieving revision 1.38 diff -p -u -r1.38 bus_space.c --- sys/arch/x86/x86/bus_space.c 27 Jan 2012 18:53:07 -0000 1.38 +++ sys/arch/x86/x86/bus_space.c 18 Mar 2015 13:20:58 -0000 @@ -153,6 +153,8 @@ x86_bus_space_mallocok(void) ioport_malloc_safe = 1; } +#include <ddb/ddb.h> + int bus_space_map(bus_space_tag_t t, bus_addr_t bpa, bus_size_t size, int flags, bus_space_handle_t *bshp) @@ -161,6 +163,12 @@ bus_space_map(bus_space_tag_t t, bus_add bus_space_tag_t it; int error; + if (bpa <= 0xc0000 && 0xc0000 - bpa < size) { + printf("%s: mapping vga rom\n", __func__); + db_stack_trace_print((db_expr_t)(intptr_t) + __builtin_frame_address(0), true, 65536, "", printf); + } + if ((t->bst_exists & BUS_SPACE_OVERRIDE_MAP) == 0) ; /* skip override */ else for (it = t; it != NULL; it = it->bst_super) {dmesg has following back trace lines: (Please note another dmesg with DRM debug is below) bus_space_map: mapping vga rom intel_parse_bios (c2e58c4c,2,54,800004,3,6,c2e58a38,c12ceae0, c0b8024b,c2cdff30) at netbsd:intel_parse_bios+0x1758 i915_driver_load (c2e58c4c,c0c38c40,c12cecc0,c2e58c4c,c2e5ec48, c12cec00,c0307750,c2e58c4c,c0c38c40,5) at netbsd:i915_driver_load+0xbae drm_dev_register (c2e58c4c,c0c38c40,5,c2e5ec54,c2e5ec48,c2e5ec4c,c2e5ec54,c2e58c4c,24,c3231388) at netbsd:drm_dev_register+0x7f drm_pci_attach(c3231388,c12cecc0,c2d1001c,c1072040,c0c38c40, c2d10018,c2e354e0,c0c38c40,c12cecc0,c1059578) at netbsd:drm_pci_attach+0x30b i915drmkms_attach(c3231808,c3231388,c12cecc0,c12cecb8,c12cecc0, c3231388,c326caf0,0,c326c000,c12ced08) at netbsd:i915drmkms_attach+0xc0 config_attach_loc(c3231808,c1057fe8,c12cecb8,c12cecc0,c0809044, c09950e6,c326cb5c,3000003,25928086,8086) at netbsd:config_attach_loc+0x181 pci_probe_device(c326c000,80001000,0,0,0,c12ced4e,2,0,0,0) at netbsd:pci_probe_device+0x437 pci_enumerate_bus(c326c000,c0d9a148,0,0,10,c12cee64,10,c326c000, c12cedd4,c080a2ec) at netbsd:pci_enumerate_bus+0x1a7 pcirescan(c3231808,c0e210c5,c0d9a148,c1114164,2,4,c3231808, c1059578,c3231808,c0e210c5) at netbsd:pcirescan+0x51 pciattach(c2e3cd88,c3231808,c12cee64,0,c12cee64,c3231808,0,c0e210c9, c0e210c9,c12cee20) at netbsd:pciattach+0x17d config_attach_loc(c2e3cd88,c1057538,0,c12cee64,c08125c4,0,c12cee4c, c0767078,c2e3cd88,c0e00c80) at netbsd:config_attach_loc+0x181 config_found_ia(c2e3cd88,c0e00c80,c12cee64,c08125c4,c2e34008,0,c0e00c80, c2d06238,c2e3cd88,c12ceea0) at netbsd:config_found_ia+0x36 mp_pci_scan(c2e3cd88,c12cee64,c08125c4,0,c106af60,c106af60,c106af40, c10cf280,0,0) at netbsd:mp_pci_scan+0x84 mainbus_rescan(c2e3cd88,c0e00c80,0,c2e3cd88,2,c2e35dc0,c2e39d70, c0e39d3a,c2e39d70,c2e35dc0) at netbsd:mainbus_rescan+0x23b mainbus_attach(0,c2e3cd88,0,0,c1057520,c2e3cd88,0,c0dffe4e, 12d5000,c12cef48) at netbsd:mainbus_attach+0xfc config_attach_loc(0,c1057520,0,0,0,1314c,16800000,c12cef5c,c02134b6,c0dffe4e) at netbsd:config_attach_loc+0x181 config_rootfound(c0dffe4e,0,1314c,c12cefa0,c0b7d368,c0e672d8,6,3,0,0) at netbsd:config_rootfound+0x4a cpu_configure(c0e672d8,6,3,0,0,0,0,0,0,0) at netbsd:cpu_configure+0x2a main(0,0,0,0,0,0,0,0,0,0) at netbsd:main+0x2c8i915_load_modeset_init 1355 static int i915_load_modeset_init(struct drm_device *dev) 1356 { 1357 struct drm_i915_private *dev_priv = dev->dev_private; 1358 int ret; 1359 1360 ret = intel_parse_bios(dev); 1361 if (ret) 1362 DRM_INFO("failed to find VBIOS tables\n");intel_parse_bios @ drm_debug = 4;:
I have
set drm_debug = 4; and getting dmesg Following are suspicious lines: DRM debug in intel_modeset_init: 2 display pipes available. DRM debug in intel_crtc_init: swapping pipes & planes for FBC DRM debug in intel_modeset_init: pipe A sprite A init failed: -19 DRM debug in intel_crtc_init: swapping pipes & planes for FBC DRM debug in intel_modeset_init: pipe B sprite B init failed: -19 DRM debug in gmbus_xfer: GMBUS [i915 gmbus panel] NAK for addr: 0050 r(1) DRM debug in drm_do_probe_ddc_edid: drm: skipping non-existent adapter i915 gmbus panel DRM debug in intel_lvds_init: No LVDS modes found, disabling.intel_modeset_init -> intel_crtc_init -> -> intel_plane_init (why calls with false ?) -> -> -> drm_plane_init -> -> -> -> drm_universal_plane_init driver -> .load i915_driver_load intel_setup_gmbus -> -> -> -> gmbus_algorithm gmbus_xfer drm_do_probe_ddc_edid intel_lvds_init PR kern/49254 ( つっこみ )
2009年03月26日(木) 旧暦 [n年日記] [更新:"2009/03/26 08:21:47"]#1 [政治] 期日前投票の数が前回より 1.5 倍
や、
投票率アップを目指して! 千葉県選管の試み
を見ると、今回は、前回の時よりも期日前投票する人が 1.5 倍に
なっているそうだ。
「『県知事選を知らなかった』だけは避けたい」というのは本当のところだろう。
( つっこみ )
2008年03月26日(水) 旧暦 [n年日記] [更新:"2008/03/26 11:02:42"]#1 [Emacs] tcode
最近
列 + 台 = 殆が合成されないとか、いくつか合成されない文字があって 何故かなと思っている。 bushu.rev には次の行はある 殆歹台これもある。 列歹リ @ 22.0.50:
22.0.50 ( = 22.1) でも合成しないが、
~/T-Code2 を消して、mkdir ~/T-Code2 してから
だと合成してくれる。(消さなくても大丈夫のような気がする)。
@ 23.0.60:
/usr/local/share/tc/bushu.index2 も見えなくしてあったので
ファイル /usr/local/share/tc/bushu.index2 が存在しません。 と言われる 2007/12/24 の日記 を見て入直し。 105 9:17 tar zxf /e/tera/j/distfiles/tc-2.3.1.tar.gz 106 9:17 cd tc-2.3.1/ 107 9:18 patch -s -p1 < ~/Mail/ml/tcode/1545 108 9:18 patch -s -p1 < ~/Mail/ml/tcode/1528 109 9:18 cd etc 110 9:18 mv bushu.rev bushu.rev-orig 111 9:18 cat bushu.rev-orig symbol.rev | sort > bushu.rev 112 9:18 cd .. 113 9:18 ./configure --with-lispdir=/usr/share/emacs/site-lisp/tc-2.3.1 114 9:19 make 115 9:20 sudo make install 116 9:20 emacs . 117 9:21 mkdir ~/T-Code2まだだめだな ..... こんな字が出ているが: config.status: WARNING: etc/Makefile.in seems to ignore the --datarootdir settingこれは多分関係ないとして、文字を指す処理に何か変更があったと思われる。 列 + 列 = 歹となるか、ならないのか、が違う。今回はならない。でも、考えたら 誠 + 誠 = 言となるのだから、データ依存で、単純な論理の問題ではない。でも一応 見るのは、その辺からかな tc-bushu.el: (defun tcode-bushu-convert-preceding-chars (&optional arg) "ポイントの前の2文字を合成する。" ... (tcode-bushu-compose-two-chars prev-prev-char prev-char))) @ tcode-bushu-compose-two-chars:;;; ;;; 部首合成変換用インタフェース ;;; ;;;###autoload (defun tcode-bushu-compose-two-chars (char1 char2) "CHAR1とCHAR2を合成する。" (tcode-bushu-load-dictionary) (let* ((str (concat (char-to-string char1) (char-to-string char2))) (cache (get (intern-soft str tcode-stroke-table) 'compose))) (or (and tcode-bushu-use-cache cache) (let ((selected-char (tcode-bushu-compose (list char1 char2)))) (when selected-char (put (intern str tcode-stroke-table) 'compose selected-char) selected-char))))) (defun tcode-bushu-compose (char-list) "Compose a character from characters in CHAR-LIST. See also `tcode-bushu-functions'." (catch 'found (mapcar (lambda (function) (let ((r (funcall function char-list))) (if r (throw 'found (car r))))) tcode-bushu-functions) nil))これはちょっと分り難い :-) が、多分 tcode-bushu-functions にある関数を 順に試して行く、ということらしい: (defvar tcode-bushu-functions '(tcode-bushu-compose-explicitly tcode-bushu-complete-compose-set tcode-bushu-complete-diff-set tcode-bushu-strong-compose-set tcode-bushu-strong-diff-set tcode-bushu-weak-diff-set tcode-bushu-weak-compose-set) "* A list of functions to apply to characters for a character composition.")データ依存なのだから、○と×を挙げていく、というのも一つの方法か。 @ 22.0.50 では○で、23.0.60 ではだめなもの:階 + ア = 皆 屋 + 由 = 届 広 + 車 = 庫 列 + 台 = 殆 列 + 列 = 歹どちらも○なもの 比 + 白 = 皆 局 + 由 = 届 応 + 車 = 庫 残 + 台 = 殆結果の違うもの 22.0.50 23.0.60 残 + 残 = 戔 歹 ( つっこみ )
2006年03月26日(日) 旧暦 [n年日記] [更新:"2006/03/26 22:52:59"]#1 [pkgsrc] missing the MySQL ... for WordPress.
WordPress の画面を開くと、また次のように言われてしまった
Your PHP installation appears to be missing the MySQL which is required for WordPress.
ttyp2:makoto@s900 14:13:06/060326(/usr/pkg)> diff -u etc/php.ini{.orig,} --- etc/php.ini.orig 2006-03-26 11:50:10.000000000 +0900 +++ etc/php.ini 2006-03-26 13:34:53.000000000 +0900 @@ -548,6 +548,9 @@ ; Note that it should be the name of the module only; no directory information ; needs to go here. Specify the location of the extension with the ; extension_dir directive above. +extension=session.so +extension=pgsql.so +extension=mysql.so ;Windows Extensions ttyp2:makoto@s900 14:13:08/060326(/usr/pkg)>これで解決。 pkg_info -D php-mysqlに書いてあった。 ( つっこみ )
2005年03月26日(土) 旧暦 [n年日記] [更新:"2005/03/27 01:24:09"]#2 [NetBSD][pkgsrc][bulk-build] graphic/gimp = gimp-2.2.4 was not packagedttyp3:makoto@mini 0:12:32/050327(...plug-ins/common)> make xpmThis function is to be defined in lib/libXpm.so. > nm /usr/pkg/lib/libXpm.so |grep XpmReadFileToXpmImage 0000b660 T XpmReadFileToXpmImagein Makefile, LIBXPM is empty LIBXPM = 1069 ################## ttyp3:makoto@mini 0:47:44/050327(...graphics/gimp)> ls -l /usr/pkg/include/X11/xpm.h -r--r--r-- 1 root wheel 16644 Mar 17 16:17 /usr/pkg/include/X11/xpm.h from config.log: configure:31324: checking for XpmReadFileToXpmImage in -lXpm ( つっこみ )
#1 [cvsync]
手元には(歴史的な理由で) 2 つ保管庫のミラーがある。
たまたま前に使っていた方を参照している pkgsrc で make をしていたら、
問題が出て、調べたら、単に内容が更新されていなかっただけと分った。
で何故更新されていないか調べた。
@ rcsan:
実は rcscan はまだ新しくしていなかった。で、それを使って
ttyp0:makoto@owada 18:25:44/050326(/export/cvsync)> find . -name \*,v -exec rcscan -q '{}' \; | grep -v 'NO ERRO' 問題がなさそう。 @ 手で cvsync を起動:ttyp0:makoto@owada 23:00:43/050326(/export/cvsync)> cvsync @ Please set 'errormode' to 'fixup' or 'ignore' and try again:
と言われても、どうしたらいいか ?
ttyp0:makoto@owada 23:00:47/050326(/export/cvsync)> cvsync -errormode cvsync: unknown option -- e Usage: cvsync [-46LVZhqvz] [-c <file>] [-p <file>] The version: 0.24.16 The protocol version: 0.24 The default configuration file: /usr/pkg/etc/cvsync.conf URL: http://www.cvsync.org/ ... -V 版名表示 -v verbose -4 IPv4 -6 IPv6らしい。-L を付けると、何だか始まった。 ( つっこみ )
2003年03月26日(水) 旧暦 [n年日記]#1 [NetBSD][pkgsrc] textproc/kakasi giving problemcc -DLIBRARY -DHAVE_CONFIG_H -DKANWADICT=\"/usr/pkg/share/kakasi/kanwadict\" -DITAIJIDICT=\"/usr/pkg/share/kakasi/itaijidict\" -I.. -I../src -I/export/pkgsrc/textproc/kakasi/work/.buildlink/include -O2 -I/export/pkgsrc/textproc/kakasi/work/.buildlink/include -Wall -Wunused -Wuninitialized -Wmissing-prototypes -Wmissing-declarations -pedantic -c libkakasi.c -fPIC -DPIC -o .libs/libkakasi.oこれが出ないという人もいるのだなぁ。 ( つっこみ )
2000年03月26日(日) 旧暦 [n年日記]#4 [site-map] site.cgi を作って見た。
/~makoto/site.cgi
のような表示をするもの。 /~makoto/site.cgi の中身 まだ作ったばかり。 それ専用の画面を用意しようかな。 見せたくないものを 例えば site.config に書いたとする。 それは directory 毎に違うこともあるかも知れないが、 それの違いを directory 毎に指定出来るように、そこに site.config という名前で置くと、 (名前が分れば)それが見えてしまう。 hns のように Web の外側に置くようにする必要がある。 それと、 /software/site.cgi のように 2000 くらいあって SS-10 のような機械だと二分以上 かかるので cache を考えている。 ( つっこみ )
#3 [Perl] core dumpmakoto@harry 20:47:17/000326(/tmp)> cat b my %bitmask = ( refs => 0x00000002, subs => 0x00000200, vars => 0x00000400 ); sub bits { my $bits = 0; foreach my $s (@_){ $bits |= $bitmask{$s} || 0; }; $bits; } 1; makoto@harry 20:47:19/000326(/tmp)> perl -wc b Segmentation fault (core dumped) makoto@harry 20:48:20/000326(/tmp)>reboot したら直った。(以前にもそういうこと、つまり 何かが理不尽に Seg. fault するので再起動したら直った ということがあった。気がする。) ( つっこみ )
#2 [NetBSD] mailing list に加わる
tech-kern netbsd-bugs netbsd-announce をいまさらながら読むようにした。 ( つっこみ )
#1 [NetBSD] anoncvs で持って来たら 13:20 もかかった
きのうは Network がおかしかった気もするが。
traceroute to pigu.iri.co.jp (203.139.62.211), 30 hops max, 40 byte packets 1 cis2-kome.ki.nu (210.145.40.113) 3.572 ms 3.405 ms 3.362 ms 2 203.139.166.149 (203.139.166.149) 18.590 ms 16.226 ms 16.096 ms 3 203.139.166.145 (203.139.166.145) 84.291 ms 48.947 ms 48.996 ms 4 203.139.164.195 (203.139.164.195) 237.061 ms 107.075 ms 189.092 ms 5 210.163.252.213 (210.163.252.213) 124.170 ms 55.940 ms 412.408 ms 6 210.254.184.105 (210.254.184.105) 55.452 ms 93.039 ms 50.995 ms 7 210.254.184.66 (210.254.184.66) 304.931 ms 213.592 ms 50.973 ms 8 210.163.252.10 (210.163.252.10) 263.921 ms 93.636 ms 56.028 ms 9 nspixp2-fddi.itjit.ad.jp (202.249.2.17) 54.173 ms 166.635 ms 116.052 ms 10 tok-gw1.GbBB2.itjit.ad.jp (203.139.125.189) 50.937 ms 101.065 ms 165.944 ms 11 iri.u.gate.itjit.ad.jp (202.217.202.30) 354.706 ms 193.318 ms 199.410 msきょうは正常。 何故か scsipi_all.h が古い。変。 1.4M makoto@milano 10:08:49/000326(~)> ls -l /usr/include/dev/scsipi/scsipi_all.h -r--r--r-- 1 root wheel 5576 Nov 8 22:17 /usr/include/dev/scsipi/scsipi_all.h source root@harry 10:09:28/000326(/usr/src)# ls -l /usr/include/dev/scsipi/scsipi_all.h -r--r--r-- 1 root wheel 5580 Dec 30 1998 /usr/include/dev/scsipi/scsipi_all.hやはり ping6.o(.text+0xaac): undefined reference to `__cmsg_alignbytes' で止ってしまう。 root@harry 10:26:53/000326(/usr/src)# find . -name \*.c -exec grep cmsg_alignbytes /dev/null '{}' \; ./lib/libc/net/__cmsg_alignbytes.c:__cmsg_alignbytes() ./sys/lib/libkern/__cmsg_alignbytes.c:__cmsg_alignbytes() ( つっこみ )
|
最近の日記 2025年02月13日 ・dvipdfmx ICC profile format spec. version 4.3.0 2025年01月29日 ・ham/wsjtx 2025年01月27日 ・wip/wsjtx 5.4.2 2025年01月25日 ・ham/wsjtx 2025年01月15日 ・今更 advent calendar | ||