Bug 50904 - Text-ChaSen is unsable
Bug#: 50904 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: critical Priority: P2
Resolution: FIXED Assigned To: cjk@gentoo.org Reported By: knok@daionet.gr.jp
Component: Development
URL: 
Summary: Text-ChaSen is unsable
Keywords:  
Status Whiteboard: 
Opened: 2004-05-13 00:29 0000
Description:   Opened: 2004-05-13 00:29 0000
Latest libchasen uses C++ library, but MakeMaker was not considerd about it.
So you need to change Makefile.Pl a little bit.


Reproducible: Always
Steps to Reproduce:
1. ebuild Text-ChaSen
2. perl -e 1 -MText::ChaSen

Actual Results:  
# perl -e 1 -MText::ChaSen
Can't load
'/usr/lib/perl5/vendor_perl/5.8.2/i686-linux/auto/Text/ChaSen/ChaSen.so' for
module Text::ChaSen: /usr/lib/libchasen.so.0: undefined symbol:
__gxx_personality_v0 at /usr/lib/perl5/5.8.2/i686-linux/DynaLoader.pm line 229.
 at -e line 0
Compilation failed in require.
BEGIN failed--compilation aborted.


Expected Results:  
# perl -e 1 -MText::ChaSen
# echo $?
0


I made a patch for it.

--- Text-ChaSen-1.03.ebuild     2004-05-13 07:21:40.000000000 +0000
+++ Text-ChaSen-1.03.ebuild.new 2004-05-13 07:24:28.000000000 +0000
@@ -21,4 +21,6 @@
        unpack ${A}
        cd ${S}
        patch -p0 < ${DISTDIR}/ChaSen.pm-1.03-pod-fix.diff
+       sed -e '5a"LD" => "g++",' Makefile.PL > MP.tmp
+       mv MP.tmp Makefile.PL
 }

------- Comment #1 From Jason Stubbs (RETIRED) 2004-07-07 09:22:23 0000 -------
Had the same problem and this patch fixed it.

------- Comment #2 From MATSUU Takuto 2004-07-22 07:58:48 0000 -------
in cvs.