NetBSD Problem Report #27289

Received: (qmail 15724 invoked by uid 605); 18 Oct 2004 09:45:08 -0000
Message-Id: <20041018094501.908FE25266E@narn.netbsd.org>
Date: Mon, 18 Oct 2004 09:45:01 +0000 (UTC)
From: kevlo@kevlo.org
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: kevlo@kevlo.org
To: gnats-bugs@gnats.NetBSD.org
Subject: Fix core dump in inputmethod/xcin package
X-Send-Pr-Version: www-1.0

>Number:         27289
>Category:       pkg
>Synopsis:       Fix core dump in inputmethod/xcin package
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    rxg
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 18 09:46:00 +0000 2004
>Closed-Date:    Sun Jun 26 16:50:50 +0000 2005
>Last-Modified:  Sun Jun 26 16:50:50 +0000 2005
>Originator:     Kevin Lo
>Release:        2.0_RC4
>Organization:
Indivisual
>Environment:
NetBSD i386
>Description:
Don't use libtool for inputmethod/xcin package. Otherwise,
you'll get core dump message.

>How-To-Repeat:

>Fix:
--- Makefile.orig       2004-10-18 17:11:04.000000000 +0000
+++ Makefile    2004-10-18 17:31:35.000000000 +0000
@@ -15,7 +15,6 @@
 USE_BUILDLINK3=                yes
 USE_PKGLOCALEDIR=      yes
 USE_X11BASE=           yes
-USE_LIBTOOL=           yes

 GNU_CONFIGURE=         yes
 CONFIGURE_ARGS+=       --with-db-lib=${BUILDLINK_PREFIX.db3}/lib

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->rxg 
Responsible-Changed-By: ben 
Responsible-Changed-When: Mon Oct 18 14:28:59 UTC 2004 
Responsible-Changed-Why:  
Assigned to package maintainer, rxg. 
From: Rui-Xiang Guo <rxg@myrealbox.com>
To: kevlo@kevlo.org
Cc: gnats-bugs@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/27289
Date: Tue, 23 Nov 2004 15:34:56 +0800

 Hi,
 Could you please upgrade your system to more recent and try it again?
 It works just fine for me now.

 -rxg

From: Kevin Lo <kevlo@ns.kevlo.org>
To: Rui-Xiang Guo <rxg@myrealbox.com>
Cc: gnats-bugs@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/27289
Date: Wed, 16 Mar 2005 15:31:55 +0000

 Rui-Xiang Guo wrote:

 > Hi,
 > Could you please upgrade your system to more recent and try it again?
 > It works just fine for me now.

 Yes, I upgraded my system to -current, it still doesn't work.
 Would you take the time to fix it? Thanks.

 > -rxg

 	Kevin

From: Rui-Xiang Guo <rxg@myrealbox.com>
To: Kevin Lo <kevlo@ns.kevlo.org>
Cc: gnats-bugs@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/27289
Date: Wed, 16 Mar 2005 17:35:07 +0800

 > Yes, I upgraded my system to -current, it still doesn't work.

 I also notice about this...

 > Would you take the time to fix it? Thanks.

 Yes, I will do.
 It's welcome if you have any good patch.

From: Kevin Lo <kevlo@kevlo.org>
To: rxg@myrealbox.com
Cc: gnats-bugs@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/27289
Date: Thu, 02 Jun 2005 11:52:42 +0800

 --=-NJQ3DaaVeQ3sAcek9jQm
 Content-Type: text/plain
 Content-Transfer-Encoding: 7bit

 Rui-Xiang Guo wrote:

 >>Kevin Lo wrote:
 >> Yes, I upgraded my system to -current, it still doesn't work.

 > I also notice about this...

 >> Would you take the time to fix it? Thanks.

 > Yes, I will do.
 > It's welcome if you have any good patch.

 Well, I finally have time to take a look at the code :-) Obviously, 
 It's related to /usr/lib/libpthread.so.0 while using gdb to debug the
 program, but xcin is not linked against libpthread. Attched diff is to
 fix it.

 	Kevin


 --=-NJQ3DaaVeQ3sAcek9jQm
 Content-Disposition: attachment; filename=patch-xcin
 Content-Type: text/x-patch; name=patch-xcin; charset=UTF-8
 Content-Transfer-Encoding: 7bit

 diff -ruN xcin.orig/Makefile xcin/Makefile
 --- xcin.orig/Makefile	2005-06-01 18:02:58.000000000 +0000
 +++ xcin/Makefile	2005-06-02 10:46:57.000000000 +0000
 @@ -14,9 +14,10 @@
  WRKSRC=			${WRKDIR}/xcin
  USE_PKGLOCALEDIR=	yes
  USE_X11BASE=		yes
 -USE_LIBTOOL=		yes
 +USE_LIBTOOL=		# defined

 -GNU_CONFIGURE=		yes
 +
 +GNU_CONFIGURE=		# defined
  CONFIGURE_ARGS+=	--with-db-lib=${BUILDLINK_PREFIX.db3}/lib
  CONFIGURE_ARGS+=	--with-db-inc=${BUILDLINK_PREFIX.db3}/include/db3

 diff -ruN xcin.orig/distinfo xcin/distinfo
 --- xcin.orig/distinfo	2005-02-23 21:00:35.000000000 +0000
 +++ xcin/distinfo	2005-06-02 10:55:48.000000000 +0000
 @@ -7,3 +7,4 @@
  SHA1 (patch-ab) = 36c4c9e5ec17a45db62fc08c2d07cc0a9ff72ae2
  SHA1 (patch-ac) = b727da5616ee89e23a9aee86a66b287376f39431
  SHA1 (patch-ad) = c39bea80e15a1283e42855ea8ed25cddf8522b56
 +SHA1 (patch-ae) = ad9cac3702556898e23c67151a967b42135f44d3
 diff -ruN xcin.orig/patches/patch-ae xcin/patches/patch-ae
 --- xcin.orig/patches/patch-ae	1970-01-01 00:00:00.000000000 +0000
 +++ xcin/patches/patch-ae	2005-06-02 10:50:45.000000000 +0000
 @@ -0,0 +1,13 @@
 +$NetBSD$
 +
 +--- src/Makefile.in.orig	2005-06-02 10:50:03.000000000 +0000
 ++++ src/Makefile.in
 +@@ -7,7 +7,7 @@ include $(top_srcdir)/Rules
 + 
 + INC	= ${xcininc} ${intl_inc} ${x_includes} -I${ximd_inc}
 + LIB	= ${xcinlib} -lXimd -lim_comm lib/libxcin.la \
 +-	  ${x_libraries} ${locale_lib} ${dl_lib} ${intl_lib} -lm
 ++	  ${x_libraries} ${locale_lib} ${dl_lib} ${intl_lib} -lm -lpthread
 + 
 + BIN	= xcin
 + SRC	= xcin_main.c module.c gui.c xim.c xim_IC.c fkey.c gui_main.c \

 --=-NJQ3DaaVeQ3sAcek9jQm--

State-Changed-From-To: open->closed
State-Changed-By: rxg@netbsd.org
State-Changed-When: Sun, 26 Jun 2005 16:50:50 +0000
State-Changed-Why:
Fixed the problem, thanks for the patches.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.