namazu-ml(ring)


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Text::kakasi/mknmz/perl



以前の話の続きから書きますと、
-fPIC と自動で入っているかという(公開個人宛の:-)質問があって、
その答えは
「Text::Kakasi の時には、自動で、-fPIC となっています。」
でした。
それから Solars 2.6 ではうまく行くとおっしゃった方は
| Subject: Re: Text::kakasi/mknmz/perl
| From: "yoshihide hirose" <yoshihide@xxxxxxxxxx>
| Date: Tue, 1 Jun 1999 14:39:52 +0900

Perl5.005_03 とのことでしたので、それにして見ましたが
同じでした。(その前は 5.004_04 でした)

  そうして今回の野首さんの patch を当てて見たのですが、やはり同じように
Segmentation fault します。
----------
NetBSD-1.4/sparc
egcs-1.1.1
kakasi-2.2.5
Text-Kakasi-0.21
namazu-1.4.0.0-beta-8
----------
makoto@fujiwara■8:32:09/990609(...src/Text-Kakasi-0.21)> /usr/local/namazu/bin/mknmz -O /tmp/kakasi "/~makoto/" ~/public_html/namazu-test
Index output directory: /tmp/kakasi
0 /export/~makoto/index.html
Segmentation fault (core dumped)
makoto@fujiwara■8:32:14/990609(...src/Text-Kakasi-0.21)> gdb /usr/local/bin/perl perl.core 
GNU gdb 4.17
Copyright 1998 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 "sparc--netbsd"...(no debugging symbols found)...
Core was generated by `perl'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/libexec/ld.so...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libm.so.0.1...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libc.so.12.40...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libposix.so.0.1...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libcrypt.so.0.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/perl5/5.00503/sparc-netbsd/auto/IO/IO.so...
(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/perl5/5.00503/sparc-netbsd/auto/Fcntl/Fcntl.so...
(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/perl5/site_perl/5.005/sparc-netbsd/auto/NKF/NKF.so...
(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/perl5/site_perl/5.005/sparc-netbsd/auto/Text/Kakasi/Kakasi.so...(no debugging symbols found)...done.
#0  0x1012f000 in strlen ()
(gdb) where
#0  0x1012f000 in strlen ()
#1  0x4fcb8 in Perl_newSVpv ()
#2  0x1019a314 in XS_Text__Kakasi_do_kakasi ()
#3  0x48254 in Perl_pp_entersub ()
#4  0x85890 in Perl_runops_standard ()
#5  0x5690 in perl_run ()
#6  0x2ac0 in main ()
(gdb) 

----
以下作業を一応念の為書いておきます。
kakasi-2.2.5/src に行って
patch はうまく当たらなかったので、手で変更した。
make
cp libkakasi.a /usr/local/lib
cd Text-Kakasi-0.21/
make clean
perl Makefile.PL
make
make install

# それから、 1.4.0.0 で Text::Kakasi,Text::Chasen1 を使おうとする
# と組立て作業が結構面倒という話があって、後向きの話ですが
# 作業一覧を http://www.ki.nu/software/namazu/ 
# まとめて見ました。
---
(藤原)

Attachment: kakasi.c patch
Description: Binary data