Subject: errors running test suite for databases/db4
To: None <tech-pkg@netbsd.org>
From: Mark E. Perkins <perkinsm@bway.net>
List: tech-pkg
Date: 03/01/2005 12:59:01
I'm trying to run down a problem I'm having with the current version of 
Berkeley DB (4.3.27), so I thought I'd rebuild it with support for the test 
suite. I added the following to Makekfile:

CONFIGURE_ARGS+=	--enable-test
CONFIGURE_ARGS+=	--enable-tcl
CONFIGURE_ARGS+=	--with-tcl=${PREFIX}/lib

db4 builds to completion, and I edit ${WRKSRC}/build_unix/include.tcl to 
pick up the proper tcl API lib for db4. But when I try to run the test 
suite, I get:

-> tclsh
% source ../test/test.tcl
dyld: tclsh NSLookupSymbolInImage() dynamic library: 
/Volumes/NetBSD/pkgsrc/local/db4/work/db-4.3.27/build_unix/.libs/libdb4_tcl-4.3.dylib 
does not define symbol: _Db_Init
dyld: tclsh NSLookupSymbolInImage() dynamic library: 
/Volumes/NetBSD/pkgsrc/local/db4/work/db-4.3.27/build_unix/.libs/libdb4_tcl-4.3.dylib 
does not define symbol: _Db_SafeInit
couldn't find procedure Db_Init

This is on Mac OS X 10.3.8 with pkgsrc updated yesterday.

Can someone with better knowledge than mine of db4 and/or tcl throw me a 
clue as to how this can be fixed?

Thanks,
Mark