|
Namazu for hns による簡易全文検索 詳しくは 詳細指定/ヘルプを参照して下さい |
|||||||||||||||||||||||||||||||||||||||||||||||||||
2006年07月31日(月) 旧暦 [n年日記] [更新:"2006/07/31 09:09:16"]#1 [Emacs] Emacs の zone-mode で DNS 情報を編集
.emacs に次のように書いておく
(add-hook 'find-file-hooks (function (lambda () ;;; ... ( omitted) ... (if (string-match "/etc/named/" buffer-file-name) (progn (zone-mode) (jaspace-mode) )) )))これで PATH の一部分に /etc/named/ がある譜を編集する時に zone-mode になる( jaspace-mode は関係ないが便利なので)。 zone 情報が 一つだけというような時なら、その情報の最後に次のような 字を付けておいても、もちろんいい。 ;; Local Variables: ;; mode: zone ;; End;実は、いつも、Variables: か Variable: か、zone-mode か単に zone か、まよう。 これの機能は、次の二つ(だけ)
(while (re-search-forward "\\b\\([0-9]+\\)\\([0-9][0-9]\\)\\([ \t]+;[ \t]+[Ss]erial\\)" (point-max) t)つまり 約束事として、次のように、「数字 ; serial 」という行を探して、それを更新してくれる。 2006073100 ; serialうまく行かなかったのは、最近は serial という字を付けていなかったから。 簡単に試すのなら、 (何も設定をしない時でも) 次のように書いて、保存して、もう一度開けて、何か変更を加えて見ると分る。 2006073103 ; serial test ... ;; Local Variables: ;; mode: zone ;; End: ( つっこみ )
#2 [game] Mod chip Mod チップとは ?
最近 モトチップという言葉を聞いて、実は google でも探せなかった。
つづりを最近聞き直して google 出来た。
買えば済む
っていう問題ではないのか。
しかし楽しそ
しかし (言っては悪いが)、こういうところに Credit Card の番号を教えるっていう
のは、ちょっと気が進まないなぁ。
( つっこみ )
2006年07月30日(日) 旧暦 [n年日記] [更新:"2006/07/31 00:01:43"]#1 [NetBSD] build.sh (TNF) NetBSD/macppccpu0 at mainbus0: 7455 (Revision 303), ID 0 (primary) 1200.00 MHz 115 22:22 cvs update -D 20060728-UTC time sudo ./build.sh release >& log-D.20060728-UTC 11901.426u 3546.210s 4:20:36.78 98.7% 0+0k 37500+583680io 25380pf+211wruns again with: patch for using gdb6 ttyp2:makoto@st4200 19:16:35/060730(/export/20060729)> time sudo ./build.sh release > & log-D.20060728-UTC-gdb6 Password: 11964.620u 3546.302s 4:14:50.96 101.4% 0+0k 17101+568545io 19074pf+247w ( つっこみ )
2006年07月29日(土) 旧暦 [n年日記] [更新:"2006/07/31 09:19:22"]#1 [pkgsrc] pukiwiki が何も表示しない
「pukiwiki が何も表示しない」なと思って、
php index.php して見ると、
get_script_uri() failed: Please set $script at INI_FILE manually.とのたもうていた。 pukiwiki.ini.phpに$scriptを書けばいいんじゃないでしょうかとの御託宣が。 *1 確かに次のようなものがある。 // index.php などに変更した場合のスクリプト名の設定 // とくに設定しなくても問題なし //$script = 'http://example.com/pukiwiki/';しかし php-4.4.1nb1 の機械では、これは必要ない。一応変更して見よう。
<div id="body"><h3>Runtime error</h3> <strong>Error message : <br /> <br /> Directory is not found or not writable (DATA_DIR)<br /> Directory is not found or not writable (DIFF_DIR)<br /> Directory is not found or not writable (BACKUP_DIR)<br /> Directory is not found or not writable (CACHE_DIR)<br /> </strong></div>
*1: (託 = 言 + セ)
( つっこみ )
#2 [NetBSD] ./build.sh -> Could not find sbin/chown/Makefilenbmake: "/export/20060729/sbin/chown/(stdin)" line 3: Could not find /export/20060729/sbin/chown/Makefile ( cd vi; printf '.PATH: /export/20060729/usr.bin/vi/build\n.CURDIR:= /export/20060729/usr.bin/vi/build\n.include "${.CURDIR}/Makefile"\n' | /export/20060729/obj/tooldir.NetBSD-3.99.21-powerpc/bin/nbmake -f- CRUNCHEDPROG=1 DBG="-Os" vi.ro )vi の時には usr.sbin となっているのに chown の時には sbin となっている のが良くない rescue/obj/rescue.mk 1831 chown_make: chown .PHONY 1832 ( cd chown; printf '.PATH: ${chown_SRCDIR]}\n.CURDIR:= ${chown_SRCDIR}\n.include "$${.CURDIR}/Makefile"\n'\ 1833 | ${MAKE} -f- CRUNCHEDPROG=1 DBG="${DBG}" depend )chown_SRCDIR が usr.sbin なのか sbin なのか .. <- rescue.conf <- parselist mode=crunch <- distrib/common/parselist.awk ( つっこみ )
2006年07月28日(金) 旧暦 [n年日記] [更新:"2006/07/29 07:39:23"]#1 [NetBSD] ./build.sh for gdb6
src/disrib/sets/set.subr の中に export が必要だった。
現在の diff
( つっこみ )
2006年07月27日(木) 旧暦 [n年日記] [更新:"2007/08/30 12:25:41"]#1 [pkgsrc] mktexpk: don't know how to create bitmap font for rml.ttyp5:makoto@mini 16:15:55/060727(~...finance/hoge)> dvipdfmx 20060727.dvi 20060727.dvi -> 20060727.pdf [1kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 0+577/600 --dpi 577 rml mktexpk: don't know how to create bitmap font for rml. kpathsea: Appending font creation commands to missfont.log. n ** WARNING ** Could not locate a virtual/physical font for TFM "rml". ** WARNING ** >> There are no valid font mapping entry for this font. ** WARNING ** >> Font file name "rml" was assumed but failed to locate that font. ** ERROR ** Cannot proceed without .vf or "physical" font for PDF output... Output file removed. ttyp5:makoto@mini 16:15:56/060727(~...finance/hoge)> ttyp0:makoto@yoshimi 16:17:57/060727(~...finance/hoge)> sudo find /usr/pkg -name dvipdfm Password: /usr/pkg/bin/dvipdfm /usr/pkg/share/texmf-dist/dvipdfm /usr/pkg/share/texmf-dist/fonts/map/dvipdfm /usr/pkg/share/texmf-dist/tex/latex/dvipdfm /usr/pkg/share/texmf-local/dvipdfm /usr/pkg/share/texmf-local/fonts/map/dvipdfm /usr/pkg/share/texmf-var/fonts/map/dvipdfm ttyp0:makoto@yoshimi 16:18:11/060727(~...finance/hoge)>/usr/pkg/share/texmf-dist/dvipdfm/config -rw-r--r-- 1 root wheel 1803 Dec 26 2002 README.config -rw-r--r-- 1 root wheel 898 Jul 19 09:58 config/usr/pkg/share/texmf-local/dvipdfm/config -r--r--r-- 1 root wheel 120 Jul 19 13:32 cid-x.map -r--r--r-- 1 root wheel 6830 Jul 19 13:33 dvipdfmx.cfg -r--r--r-- 1 root wheel 80664 Jul 19 13:32 glyphlist.txt ttyp5:makoto@mini 16:31:52/060727(...pkg/share)> find tex* -name \*map -type f -exec grep rml '{}' /dev/null \; texmf-dist/fonts/map/fontname/bitstrea.map:brmli8a CarminaBT-LightItalic BT 0624 carminli texmf-dist/fonts/map/fontname/bitstrea.map:brml8a CarminaBT-Light BT 0667 carminal texmf-dist/fonts/map/fontname/bitstrea.map:bpi005 Formal436BT-Regular BT 1141 frml436n texmf-local/fonts/map/dvips/ptex/jis.map:rml Ryumin-Light-H texmf-local/fonts/map/dvips/ptex/jis.map:rmlv Ryumin-Light-V texmf-local/fonts/map/dvips/ptex/nmin-ngoth.map:rml Ryumin-Light-H texmf-local/fonts/map/dvips/ptex/psfonts_jp.map:rmlsl ".167 SlantFont" Ryumin-Light-H texmf-local/fonts/map/dvips/ptex/psfonts_jp.map:rml Ryumin-Light-H texmf-local/fonts/map/dvips/ptex/psfonts_jp.map:rmlv Ryumin-Light-V texmf-local/fonts/map/dvips/ptex/psfonts_jp.map:%rml Ryumin-Light-Ext-H texmf-local/fonts/map/dvips/ptex/psfonts_jp.map:%rmlv Ryumin-Light-Ext-V ttyp5:makoto@mini 16:32:15/060727(...pkg/share)>一か所、 /usr/pkg/share/texmf-local/dvipdfm/config/dvipdfmx.cfg に f jis.map を追加して見たが ttyp5:makoto@mini 16:39:12/060727(~...finance/hoge)> dvipdfmx 20060727.dvi 20060727.dvi -> 20060727.pdf [1 ** ERROR ** Could not find encoding file "Ryumin-Light-H".2007/08/30 記入 → patch ttyp5:makoto@mini 16:55:21/060727(...pkg/share)> sudo find tex* -type f -name R\*.tfm texmf-local/fonts/tfm/morisawa/ptex/Ryumin-Light-H.tfm texmf-local/fonts/tfm/morisawa/ptex/Ryumin-Light-J.tfm texmf-local/fonts/tfm/morisawa/ptex/Ryumin-Light-V.tfm ttyp5:makoto@mini 16:55:47/060727(...pkg/share)>pdvips の方もだめだなぁ。... だめなのは pkg_add した方だけのような気もする。 @ xpdf:Error: Couldn't find a font for 'Ryumin-Light-Identity-H' ttyp5:makoto@mini 17:35:23/060727(~)> pkg_info | grep pdf pdflib-4.0.3nb7 C library to produce PDF files xpdf-3.01pl2nb1 Display tool for PDF files xpdf-japanese-20040727nb1 Xpdf support files for Japanese dvipdfmx-0.0.0.20050831nb5 Dvi to pdf converter with CID-keyed font supportError: Couldn't find a mapping to Unicode for font 'Ryumin-Light-Identity-H' 何だか全然だめー。 いつも同じようなことばかり。 進歩がないな。 以前のメール。 ( つっこみ )
#2 [NetBSD] ./build.sh for gdb6ttyp4:makoto@mini 19:48:54/060727(...checkout/src)> \ ? time sudo ./build.sh release > & make-gdb6-active-version-if-no-etc.mk 8626.675u 2618.057s 3:15:22.00 95.9% 0+0k 18354+282476io 37103pf+246w ttyp4:makoto@mini 23:04:21/060727(...checkout/src)>flist で失敗。直したつもりだったが ... ======= 2 extra files in DESTDIR ========= Files in DESTDIR but missing from flist. File is obsolete or flist is out of date ? ------------------------------------------ ./usr/bin/gdbtui ./usr/bin/psim ========= end of 2 extra files ===========単に置いただけではやはりだめなのかな。 ttyp4:makoto@mini 23:10:07/060727(...checkout/src)> cat distrib/sets/lists/comp/gdb6.ad.powerpc # $NetBSD: gcc4.ad.i386,v 1.1 2006/06/09 03:14:54 dogcow Exp $ ./usr/bin/gdbtui comp-c-bin gdbcmds ./usr/bin/psim comp-c-bin gdbcmdsこれは多分次のようにして簡単に確かめられる。 ttyp4:makoto@mini 23:19:42/060727(...distrib/sets)> ./makeflist comp | grep gdb ./usr/bin/gdb ./usr/include/sys/kgdb.h ./usr/share/man/cat1/gdb.0 ./usr/share/man/man1/gdb.1./set.subr の中に書いてあった。hardcode .. elif [ "${HAVE_GCC}" = "4" ]; thenこれで確認 cd distrib/sets env HAVE_GDB=6 ./makeflist | egrep 'psim|gdb' ./usr/bin/gdb ./usr/bin/gdbtui ./usr/bin/psim (以下略)これでも失敗してしまった... 現在の diff ( つっこみ )
2006年07月26日(水) 旧暦 [n年日記] [更新:"2006/07/27 21:33:16"]#1 [機械] KERNEL_DATA_INPAGE_ERROR
家人の Let's Note CF-R2 が、これを言っている。
どうも disk の swap に使っているところが変とかいうことの気がしている。
一応簡単な方から: memtest86 (Download - Memtest86 v3.2 ISO image (gzip)) → memtest86-3.2.iso.gz を現在実行中 ( つっこみ )
#2 [pkgsrc] sysutils/cdrecord-ossdvd が Segfault するStarting program: /usr/pkg/bin/mkisofs -volid XXXX -part -hfs -r -J -l -o CDimage dir (no debugging symbols found) (no debugging symbols found) /usr/pkg/bin/mkisofs: Warning: no Apple/Unix files will be decoded/mapped Program received signal SIGSEGV, Segmentation fault. 0x419611e4 in memmove () from /usr/lib/libc.so.12 (gdb) bt #0 0x419611e4 in memmove () from /usr/lib/libc.so.12 #1 0x0182dec0 in getopt_long () #2 0x01827858 in getopt_long () #3 0x0182804c in getopt_long () #4 0x01827a4c in getopt_long () #5 0x0180df34 in ?? () #6 0x0180d930 in ?? () #7 0x01803464 in ?? () #8 0x018016c4 in ?? () #9 0x418733f0 in _rtld_start () from /usr/libexec/ld.elf_so Previous frame inner to this frame (corrupt stack?) (gdb)これは 3.99.17 (つまり gcc-3.3.3) でも起きる。どうも引数によるらしい。 ( つっこみ )
#3 [NetBSD] gdb6 を使うとすると
./build.sh の時には -Werror を付けているので、一つでも warning があると
止ってしまう。
で、gdb6 は三か所出るが、そのうちの二つは直せた。しかし、
これが分らない。 src/gnu/dist/gdb6/sim/ppc/device.h 729 EXTERN_DEVICE\ 730 (void volatile) device_error 731 (device *me, 732 const char *fmt, 733 ...) __attribute__ ((format (printf, 2, 3)));/export/20060702/checkout/src/gnu/dist/gdb6/sim/ppc/device.h:733: warning: type qualifiers ignored on function return type [KJ] [PATCH] Fix warning: type qualifiers ignored on function return cat -n readline/rlstdc.h | sed -n '39,$p 39 #ifndef __attribute__ 40 # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) || __STRICT_ANSI__ 41 # define __attribute__(x) 42 # endif 43 #endifこれって今は意味がないのか。古い gcc では __attribute__ 以下は無視するっていう意味か。 @ __attribute__ は関数属性:
format .. first-to-check
また、 first-to-check は、書式文字列に照らし合わせてチェックすべき最初の引き数の番号です。チェックすべき引き数を指定できない関数に対しては、第 3 パラメータに 0 を指定してください。この場合、コンパイラは、書式文字列だけを対象にして整合性のチェックを行います。(M-x text-adjust-region 済) @ gdb6 を使う変更:
これで出来た気が
する。えー、実は (void) と (void volatile) の違いは分っていません。
UNIX入門 > C言語 > 17.2. volatile
何か勝手に外してしまっては良くない気もしますが sim なので、いいことにしませう。
多分、 「そのようなところ (関数の戻り値) に volatile なんか付けても無視するよ」 (type qualifiers ignored on function return type) って gcc が言っているのだから、外して正解という気がする ( つっこみ )
2006年07月25日(火) 旧暦 [n年日記] [更新:"2006/07/26 09:33:32"]#1 [NetBSD][macppc] /usr/bin/gdb が Segfault する
core を作ってしまうものがあったので gdb しようとすると:
ttyp6:makoto@mini 12:01:58/060725(...gas/work)> gdb gas/as-new as-new.core GNU gdb 5.3nb1 Copyright 2002 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"... Core was generated by `as-new'. Program terminated with signal 11, Segmentation fault. Reading symbols from /usr/lib/libc.so.12...done. Loaded symbols for /usr/lib/libc.so.12 Reading symbols from /usr/libexec/ld.elf_so...done. Loaded symbols for /usr/libexec/ld.elf_so Segmentation fault (core dumped) ttyp6:makoto@mini 12:02:40/060725(...gas/work)>で gdb の方はどこで落ちているかというと: gdb /usr/bin/gdb gdb.core ....(omitted) ... #0 0x0183fd84 in decode_locdesc () (gdb) bt #0 0x0183fd84 in decode_locdesc () #1 0x0183d43c in new_symbol () #2 0x01838728 in read_func_scope () #3 0x01838320 in read_file_scope () #4 0x01837ca0 in psymtab_to_symtab_1 () #5 0x01837a5c in dwarf2_psymtab_to_symtab () #6 0x018d5954 in psymtab_to_symtab () #7 0x018de548 in find_pc_sect_symtab () #8 0x018d42a8 in select_frame () #9 0x018092e8 in reinit_frame_cache () #10 0x018c6af0 in solib_add () #11 0x0182d490 in solib_add_stub () #12 0x018e9354 in do_catch_errors () #13 0x018e9254 in catcher () #14 0x018e93a0 in catch_errors () #15 0x0182d7c4 in core_open () #16 0x0189c67c in nbsd_core_open () #17 0x0182c7d4 in core_file_command () #18 0x018e93e8 in do_captured_command () #19 0x018e9354 in do_catch_errors () #20 0x018e9254 in catcher () #21 0x018e93a0 in catch_errors () #22 0x018e9434 in catch_command_errors () #23 0x01887914 in captured_main () #24 0x018e9354 in do_catch_errors () #25 0x018e9254 in catcher () #26 0x018e93a0 in catch_errors () #27 0x01887ca8 in gdb_main () #28 0x01856d0c in main () #29 0x01802a48 in _start () #30 0x41b733f0 in ?? () from /usr/libexec/ld.elf_so (gdb)
0183fd14 <decode_locdesc>: 183fd14: 7c 08 02 a6 mflr r0 183fd18: 94 21 fe a0 stwu r1,-352(r1) 183fd1c: 39 20 00 00 li r9,0 183fd20: 92 41 01 28 stw r18,296(r1) 183fd24: 3e 40 01 b9 lis r18,441 183fd28: 92 61 01 2c stw r19,300(r1) 183fd2c: 3e 60 01 b9 lis r19,441 183fd30: 92 81 01 30 stw r20,304(r1) 183fd34: 7c b4 2b 78 mr r20,r5 183fd38: 92 a1 01 34 stw r21,308(r1) 183fd3c: 3e a0 01 b9 lis r21,441 183fd40: 92 c1 01 38 stw r22,312(r1) 183fd44: 3e c0 01 b9 lis r22,441 183fd48: 92 e1 01 3c stw r23,316(r1) 183fd4c: 3e e0 01 b9 lis r23,441 183fd50: 93 01 01 40 stw r24,320(r1) 183fd54: 7c 98 23 78 mr r24,r4 183fd58: 93 21 01 44 stw r25,324(r1) 183fd5c: 3b 21 00 08 addi r25,r1,8 183fd60: 93 61 01 4c stw r27,332(r1) 183fd64: 3b 60 00 00 li r27,0 183fd68: 90 01 01 64 stw r0,356(r1) 183fd6c: 38 00 00 01 li r0,1 183fd70: 93 41 01 48 stw r26,328(r1) 183fd74: 93 81 01 50 stw r28,336(r1) 183fd78: 93 a1 01 54 stw r29,340(r1) 183fd7c: 93 c1 01 58 stw r30,344(r1) 183fd80: 93 e1 01 5c stw r31,348(r1) 183fd84: 83 43 00 00 lwz r26,0(r3) 183fd88: 83 c3 00 04 lwz r30,4(r3) 183fd8c: 2f 9a 00 00 cmpwi cr7,r26,0 183fd90: 91 33 a1 34 stw r9,-24268(r19) 183fd94: 90 15 a1 20 stw r0,-24288(r21) 183fd98: 91 21 00 0c stw r9,12(r1) 183fd9c: 91 36 a1 24 stw r9,-24284(r22) 183fda0: 91 37 a1 28 stw r9,-24280(r23) 183fda4: 91 32 a1 30 stw r9,-24272(r18) 183fda8: 40 9d 00 e4 ble- cr7,183fe8c <decode_locdesc+0x178>gdb/dwarf2read.c 6376 static CORE_ADDR 6377 decode_locdesc (struct dwarf_block *blk, struct objfile *objfile, 6378 const struct comp_unit_head *cu_header) ... 6388 i = 0; 6389 stacki = 0; 6390 stack[stacki] = 0; 6391 isreg = 0; 6392 offreg = 0; 6393 isderef = 0; 6394 islocal = 0; 6395 optimized_out = 1; 6396 6397 while (i < size)万一どこが悪いと分っても gdb だけ作り直すのは大変だから pkgsrc の gdb6 でも、と思ったら、 ERROR: privilege-escalation vulnerability in gdb-6.2.1nb3 - see http://secunia.com/advisories/15449/ for more information6.4 が出たのはかなり古い話の気がする。 patch の数が 40 もあると、それを上げるというのも .. ttyp6:makoto@mini 12:27:37/060725(...devel/gdb6)> ls patches/|wc 40 40 356src の方に gdb6 が用意されている。そちらは 6.4 のようだ。 cat src/gnu/dist/gdb6/gdb/version.in 6.4 268 12:32 tar zxf $DISTFILES/gdb-6.4.tar.bz2 269 12:33 mkdir gdb-6.4-work 270 12:33 cd gdb-6.4-work 271 12:33 ../gdb-6.4/configure 272 12:33 time make 481.843u 125.106s 10:31.90 96.0% 0+0k 119+15385io 135pf+21w make install env PATH=/usr/local/bin:${PATH} gdb gas/as-new as-new.coreこっちは動いた。 /etc/mk.conf に HAVE_GDB= 6と書いておけば、gdb6 になる。 src/gnu/usr.bin/Makefile より。 19 .if ${MKGDB} != "no" 20 .if ${HAVE_GDB} == "5" 21 SUBDIR+= gdb53 22 .else 23 SUBDIR+= gdb6 24 .endif 25 .endifでも、見る限り、何の設定もない場合、gdb6 に行くような ? どこかに HAVE_GDB= 5 って書いてあるのかな。 ( つっこみ )
2006年07月24日(月) 旧暦 [n年日記] [更新:"2006/07/24 17:36:44"]#1 [NetBSD][pkgsrc] 3.99.21 三台目
@ 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+0x002bfddcProbably, 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 @ 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 2unsetenv 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 relocationsin 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~ 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 @ 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 ( つっこみ )
2006年07月23日(日) 旧暦 [n年日記] [更新:"2006/07/23 19:16:53"]#1 [NetBSD][pkgsrc] 最近気が付いた meta-pkg の問題
最近は、(出来れば)、
自分で用意している meta-pkg
を毎月更新している。
meta-pkg の
バイナリパッケージ
というものも出来る。
これは、本来は、とても良く出来たもので、例えば次のような形をしている。
-rw-r--r-- 1 root wheel 2028 Jul 20 18:52 config-serv-1.0.2.tgzこれを sudo pkg_add config-serv-1.0.2.tgz とか sudo pkg_add config-servすれば、この操作だけで、 それに含まれている全てのバイナリパッケージを設置してくれる。 *1 で作る時にちょっと問題があることが分った。 作る時には cd personal-pkgsrc/config-serv sudo make packageとやる。全てに何も問題がなければ、これだけでいい訳だが、なかなかそうは行かない。 これに必要なパッケージを作っている段階で
cd personal-pkgsrc/config-serv sudo make packageをする。この時に、あるパッケージが終了しているか未了かは、 make install が済んでるかどうかで確認している。 もっと正確には pkg_info で表示される状態かどうかで判断する。 つまり、 失敗の段階が make package だった場合には、その段階は、再びは実行されない。 それで、その要素のバイナリパッケージは作られずに、次に行ってしまう。 この問題は、単に自分の理解や設定が悪いだけなのか、 あるいは解決するようなしくみはまだ用意されていないのか現在は不明。
*1: 現ディレクトリにバイナリパッケージが置いてあるか、
PKG_PATH で置いてある位置を ( 複数ある時には PATH を ; で区切って)
指定しておく必要がある。
( つっこみ )
#2 [pkgsrc] mysql-php4Your PHP installation appears to be missing the MySQL which is required for WordPress.php4-mysql-4.4.2 は入っている(はず)。server 側で mysql> grant all on hoge.* to username@localhost identified by 'username';はやってある 以前の日記 (2005/10/30) には /usr/pkg の下に次の二つが必要なのに mysql.so が入っていなかったのです。とあるが..既に両方ともある。apache の httpd.conf には、次の行もある LoadModule php4_module lib/httpd/mod_php4.soしかし、php_info() で表示される画面には右のような表示がない .. /usr/pkg/etc/php.ini に次の行が入っていなかった。 extension=mysql.so extension=pgsql.soこれで見えるようになった ( pgsql.so の行は mysql には関係ありません)。 (関係ないはずだが) 再び 4 MySQL Database Administration より GRANT INSERT(user) on mysql.user to 'user''hostname'; ( つっこみ )
2006年07月22日(土) 旧暦 [n年日記] [更新:"2007/12/24 21:30:42"]#1 [Emacs] 所謂 install 大会
2005/05/04 の日記 (所謂 install 大会)
semi emacs-w3m mu-cite elscreen (自分の日記) ElScreen (FTP)
ttyp0:makoto@mini 8:48:18/060722(...local-src/riece)> autoreconf -f -i ./riece-ja.texi:747: 知らないコマンド `$G$-$'. makeinfo: エラーにより、出力ファイル `./riece-ja.info' を削除します。 -- 残したい場合には `--force' オプションを使ってください。 *** Error code 1 181 8:06 mkdir local-src 183 8:33 setenv CVS_RSH ssh 198 8:46 setenv DISTFILES /e/u/j/distfiles/ @ semi:184 8:33 cd local-src/ 186 8:40 tar zxf $DISTFILES/apel-10.6.tar.gz 187 8:41 tar zxf $DISTFILES/flim-1.14.8.tar.gz 188 8:41 tar zxf $DISTFILES/semi-1.14.6.tar.gz 189 8:42 cvs -d :pserver:anonymous@cvs.m17n.org:/cvs/root checkout wanderlust 190 8:42 cd apel-10.6/ 192 8:43 sudo make EMACS=/usr/local/bin/emacs install 193 8:44 cd ../flim-1.14.8/ 192 8:43 sudo make EMACS=/usr/local/bin/emacs install 195 8:44 cd ../semi-1.14.6/ 192 8:43 sudo make EMACS=/usr/local/bin/emacs install 197 8:44 cd .. @ emacs-w3m:199 8:46 tar zxf $DISTFILES/emacs-w3m-1.4.4.tar.gz 200 8:46 cd emacs-w3m-1.4.4/ 201 8:46 ./configure --with-emacs=/usr/local/bin/emacs 202 8:47 sudo make install 203 8:47 sudo make install-icons @ wanderlust:204 8:47 cd ../wanderlust/ 205 8:47 sudo make EMACS=/usr/local/bin/emacs install @ riece:206 8:47 cd .. 207 8:48 cvs -d :pserver:anonymous@cvs.m17n.org:/cvs/root login 208 8:48 cvs -d :pserver:anonymous@cvs.m17n.org:/cvs/root checkout riece 209 8:48 cd riece/ 211 8:49 less INSTALL-CVS 210 8:48 autoreconf -f -i (automake was not installed 214 8:51 pkg_info | grep automake 215 8:52 pushd $PKGSRC/packages/powerpc/All 216 8:52 sudo pkg_add automake-1.9.6.tgz 217 8:52 popd 218 8:52 autoreconf -f -i 219 8:52 ./configure --with-emacs=/usr/local/bin/emacs 221 8:53 setenv LANG C 222 8:53 sudo make -i install 156 9:00 env LANG=ja_JP.eucJP make 157 9:00 env LANG=ja_JP.eucJP make -i 158 9:00 env LANG=ja_JP.eucJP sudo make -i install @ auc-tex:
(You need TeX/LaTeX or pLaTeX to install auc-tex)
@ t-code:236 9:12 tar zxf $DISTFILES/tc-2.3.1.tar.gz 237 9:12 cd tc-2.3.1/ 238 9:12 patch -s -p1 < ~/Mail/ml/tcode/1545 239 9:12 patch -s -p1 < ~/Mail/ml/tcode/1528 242 9:12 cd etc 244 9:13 mv bushu.rev bushu.rev-orig 245 9:13 cat bushu.rev-orig symbol.rev | sort > bushu.rev 246 9:13 cd .. 249 9:14 ./configure --with-emacs=/usr/local/bin/emacs 250 9:14 sudo make install @ mu-cite:253 9:17 tar zxf $DISTFILES/mu-cite-200507060209.tar.gz 276 9:22 cd mu-cite-200507060209/ 277 9:22 sudo make EMACS=/usr/local/bin/emacs install @ x-face:284 9:30 sudo mkdir /usr/local/share/emacs/site-lisp/a-files 286 9:30 cd /export/local-src/ 287 9:30 cp $DISTFILES/x-face-e21.el.gz . 289 9:30 gunzip x-face-e21.el.gz 293 9:31 /usr/local/bin/emacs -batch -f batch-byte-compile x-face-e21.el 294 9:31 sudo cp x-face-e21.el* /usr/local/share/emacs/site-lisp/a-files/ Symbol's value as variable is void: image-type-regexps @ elscreen + elscreen-gf:
まず elscreen を入れる
121 11:02 tar zxf $DISTFILES/elscreen-1.4.3.tar.gz 124 11:02 cd elscreen-1.4.3/ 125 11:02 emacs -batch -f batch-byte-compile elscreen.el 126 11:02 /usr/local/bin/emacs -batch -f batch-byte-compile elscreen.el 134 11:05 sudo cp -p * /usr/local/share/emacs/site-lisp/elscreen 138 11:06 ( cd /usr/local/share/emacs/site-lisp/elscreen ; \ sudo mv README README-elscreen )その後で elscreen-gf を入れる(この順は重要)。 cd .. 122 11:02 tar zxf $DISTFILES/elscreen-gf-1.5.1.tar.gz 135 11:05 cd elscreen-gf-1.5.1/ 140 11:07 /usr/local/bin/emacs -batch -f batch-byte-compile read-directory-name.el 141 11:07 /usr/local/bin/emacs -batch -f batch-byte-compile elscreen-gf.el 143 11:07 sudo cp -p * /usr/local/share/emacs/site-lisp/elscreen @ wanderlust を起動:--- Wanderlust NEWS --- press 'a' to show all NEWS press 'm' to mail this NEWS to your folder press 'q' to quit press 'Q' to force quit -------------- * 2.14.x から 2.16.0 への変更点 ** namazu フォルダは機能を拡張した search フォルダに置き換えられました。 namazu 以外の外部プログラムを使った検索が出来るようになりました。デ フォルトでは、grep での検索がサポートされています。 -------------- * Changes in 2.16.0 from 2.14.x ** A folder type `namazu' is abolished. New folder type `search' is added instead. @ 机上機入替:
Mac mini の開腹手術をして 80G disk を 80G disk と交換。
起動方法は次の通り。
mount / ed /etc/fstab /sd s/sd/wd / s/sd/wd w q等のようにして直す ( つっこみ )
#2 [pkgsrc] mozilla が動かない
作り直そうとすると、「gtk+ の版が分らない」とか言う。
どうも
/usr/X11R6 -> /usr/X11の接続 (symlink) が必要そうな雰囲気。多分どこかで間違えたとは思うが。 その上で make package し直したら、動いた。何だか文字が大きい気がする。 font が足りないのかな。 ( つっこみ )
2006年07月21日(金) 旧暦 [n年日記] [更新:"2006/07/22 01:12:15"]#1 [NetBSD][X11] error: conflicting types for 'malloc'
これって一つづつ char * -> void * と 直すしかないのかな ?
ttyp0:makoto@yoshimi 9:11:44/060721(/export/xc)> cat -n ../xc-make-world-log-2 | grep 'error: conflicti' 4591 AuFileName.c:36: error: conflicting types for 'malloc' 6562 AuFileName.c:36: error: conflicting types for 'malloc' 9230 CloseHook.c:61: error: conflicting types for 'malloc' 9268 CvtCache.c:38: error: conflicting types for 'malloc' 12278 bmtoa.c:42: error: conflicting types for 'malloc' 12288 atobm.c:39: error: conflicting types for 'malloc' 12289 atobm.c:39: error: conflicting types for 'calloc' 12439 iceauth.h:44: error: conflicting types for 'malloc' 12440 iceauth.h:44: error: conflicting types for 'realloc' 12447 iceauth.h:44: error: conflicting types for 'malloc' 12448 iceauth.h:44: error: conflicting types for 'realloc' 13254 parsedpy.c:47: error: conflicting types for 'malloc' 13389 xconsole.c:277: error: conflicting types for 'malloc' 14207 utils.c:396: error: conflicting types for 'realloc' 15508 dsimple.c:72: error: conflicting types for 'malloc' 15510 dsimple.c:88: error: conflicting types for 'realloc' 15722 dsimple.c:72: error: conflicting types for 'malloc' 15724 dsimple.c:88: error: conflicting types for 'realloc' 15807 xrefresh.c:62: error: conflicting types for 'malloc' 15809 xrefresh.c:88: error: conflicting types for 'malloc' 16149 charproc.c:99: error: conflicting types for 'malloc' 16150 charproc.c:100: error: conflicting types for 'realloc' 16862 xwd.c:246: error: conflicting types for 'calloc' 16884 dsimple.c:73: error: conflicting types for 'malloc' 16886 dsimple.c:89: error: conflicting types for 'realloc' 16973 dsimple.c:73: error: conflicting types for 'malloc' 16975 dsimple.c:89: error: conflicting types for 'realloc' 16988 xwud.c:47: error: conflicting types for 'malloc' 17308 utils.c:859: error: conflicting types for 'malloc' 17310 utils.c:948: error: conflicting types for 'realloc' ttyp0:makoto@yoshimi 9:11:56/060721(/export/xc)>直した (少しだけ warning を外しただけの部分もある)。 ( つっこみ )
#2 [build.sh][NetBSD][macppc] ./build.sh release を Firewire の上でttyp0:makoto@mini 14:58:51/060721(...checkout/src)> time sudo ./build.sh release >& ../log-1 9851.609u 2959.855s 3:32:30.78 100.4% 0+0k 19770+323586io 25200pf+240w ttyp0:makoto@mini 18:31:28/060721(...checkout/src)>いつもだと 3:10 くらいで終わるが、今回は ATA/IDE disk ではまだ測れていないので、 とりあえず比較なし。と思ったら、失敗している adb_direct.o: In function `adb_reinit': adb_direct.c:(.text+0x578): undefined reference to `adb_dummy_noop' adb_direct.c:(.text+0x714): undefined reference to `adb_dummy_noop'変だなぁ、一度作れたはずなのだが。そうか gcc-4 で kernel を作るのは 初めてかも知れない。 static void adb_dummy_noop(void); static void adb_dummy_panic(void); void adb_dummy_noop() { }もっと変。そのままでカーネルは完走: time sudo env TOOLDIR=/export/20060702/checkout/src/tooldir.NetBSD-3.99.21-powerpc ./build.sh kernel=GENERIC ( つっこみ )
#3 [Emacs] 久振りに emacs-22.0.50 の make150 23:47 cd /export/ cvs -d :pserver:anoncvs@cvs.sv.gnu.org:/sources/emacs co emacs 154 23:47 mkdir emacs-work 155 23:47 cd emacs-work/ 156 23:47 ../emacs/configure 158 23:48 time make bootstrap Wrote /export/emacs/lisp/cus-load.el Generating /export/emacs/lisp/cus-load.el...done 1596.902u 151.485s 29:55.75 97.3% 0+0k 553+8203io 154pf+9w ttyp0:makoto@mini 0:18:45/060722(/export/emacs-work)>(相変らず Firewire の上で動いている NetBSD/macppc の上で) ttyp0:makoto@mini 0:34:00/060722(/export/emacs-work)> env DISPLAY=cvsync:0.0 /usr/local/bin/emacsあっれーっという感じで: bt したら、もう一度 ttyp0:makoto@mini 0:36:49/060722(/export/emacs-work)> gdb /usr/local/bin/emacs emacs.core ... (gdb) bt #0 0x41e093e8 in ?? () from /usr/lib/libc.so.12 Segmentation fault (core dumped)2006/2/13 の日記 やはり --without-xim すると問題ない。 ( つっこみ )
|
最近の日記 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) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||