NetBSD Problem Report #28802

From abecher@kawo2.rwth-aachen.de  Wed Dec 29 05:23:14 2004
Return-Path: <abecher@kawo2.rwth-aachen.de>
Received: from abn.kawo2.rwth-aachen.de (unknown [82.130.37.226])
	by narn.netbsd.org (Postfix) with ESMTP id 5BA8363B400
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 29 Dec 2004 05:23:13 +0000 (UTC)
Message-Id: <200412290523.iBT5NOCu012854@abn.kawo2.rwth-aachen.de>
Date: Wed, 29 Dec 2004 06:23:24 +0100 (CET)
From: Alexander Becher <abecher@kawo2.rwth-aachen.de>
Reply-To: abecher@kawo2.rwth-aachen.de
To: gnats-bugs@netbsd.org
Subject: p5-DBD-SQLite dumps core on DBI->connect
X-Send-Pr-Version: 3.95

>Number:         28802
>Category:       pkg
>Synopsis:       p5-DBD-SQLite dumps core on DBI->connect
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 29 05:24:00 +0000 2004
>Closed-Date:    Tue Jan 04 15:28:52 +0000 2005
>Last-Modified:  Tue Jan 04 15:30:01 +0000 2005
>Originator:     Alexander Becher
>Release:        NetBSD 2.0
>Organization:

>Environment:


System: NetBSD abn 2.0 NetBSD 2.0 (kernel) #2: Mon Dec 27 22:33:47 CET 2004 alex@abn:/home/alex/kernel i386
Architecture: i386
Machine: i386
>Description:
Calling DBI->connect with the SQLite driver aborts every time with the
following error message:

assertion "sizeof(ptr)==sizeof(char*)" failed: file "btree.c", line 691, function "sqliteBtreeOpen"
Abort trap (core dumped)

>How-To-Repeat:
	perl -MDBD::SQLite -e '$dbh = DBI->connect("dbi:SQLite:")'

>Fix:
Apply the following patch, taken from databases/sqlite/Makefile:

RCS file: /cvsroot/pkgsrc/databases/p5-DBD-SQLite/Makefile,v
retrieving revision 1.5
diff -u -r1.5 Makefile
--- Makefile    22 Feb 2004 01:26:06 -0000      1.5
+++ Makefile    29 Dec 2004 04:45:51 -0000
@@ -17,6 +17,9 @@
 USE_BUILDLINK3=        YES
 PERL5_PACKLIST=        ${PERL5_SITEARCH}/auto/DBD/SQLite/.packlist

+CFLAGS+=                -DUINT32_TYPE=u_int32_t -DUINT16_TYPE=u_int16_t \
+                        -DUINT8_TYPE=u_int8_t -DINTPTR_TYPE=long
+
 .include "../../databases/p5-DBI/buildlink3.mk"
 .include "../../lang/perl5/module.mk"
 .include "../../mk/bsd.pkg.mk"

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: wiz@netbsd.org
State-Changed-When: Tue, 04 Jan 2005 15:28:52 +0000
State-Changed-Why:
Committed, thank you.


From: Thomas Klausner <wiz@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/28802 CVS commit: pkgsrc/databases/p5-DBD-SQLite
Date: Tue,  4 Jan 2005 15:28:38 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	wiz
 Date:		Tue Jan  4 15:28:38 UTC 2005

 Modified Files:
 	pkgsrc/databases/p5-DBD-SQLite: Makefile

 Log Message:
 Apply patch from Alexander Becher in PR 28802.
 Bump PKGREVISION.


 To generate a diff of this commit:
 cvs rdiff -r1.6 -r1.7 pkgsrc/databases/p5-DBD-SQLite/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>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.