pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/28802: p5-DBD-SQLite dumps core on DBI->connect
>Number: 28802
>Category: pkg
>Synopsis: p5-DBD-SQLite dumps core on DBI->connect
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Dec 29 05:24:00 +0000 2004
>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"
>Unformatted:
Home |
Main Index |
Thread Index |
Old Index