From owner-freebsd-ports@FreeBSD.ORG Thu Dec 2 16:07:23 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BD98B16A4CE for ; Thu, 2 Dec 2004 16:07:23 +0000 (GMT) Received: from 21322530218.direct.eti.at (21322530218.direct.eti.at [213.225.30.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id E51AF43D49 for ; Thu, 2 Dec 2004 16:07:22 +0000 (GMT) (envelope-from tilman@arved.at) Received: from jim.arved.de (localhost [127.0.0.1])iB2G7CMh023365; Thu, 2 Dec 2004 17:07:12 +0100 (CET) (envelope-from tilman@arved.at) Received: (from arved@localhost) by jim.arved.de (8.13.1/8.13.1/Submit) id iB2G7CIM023364; Thu, 2 Dec 2004 17:07:12 +0100 (CET) (envelope-from tilman@arved.at) X-Authentication-Warning: jim.arved.de: arved set sender to tilman@arved.at using -f Date: Thu, 2 Dec 2004 17:07:12 +0100 From: Tilman Linneweh To: Hye-Shik Chang , chuckr@chuckr.org Message-ID: <20041202160712.GA23336@arved.at> References: <41AE852D.8080909@chuckr.org> <20041202155542.GA79436@i18n.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041202155542.GA79436@i18n.org> User-Agent: Mutt/1.4.2.1i cc: freebsd-ports@freebsd.org Subject: Re: FreeBSD Port: python-2.4.a3 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Dec 2004 16:07:23 -0000 * Hye-Shik Chang [Thu, 02 Dec 2004 at 16:55 GMT]: >> Everytime I try doing something with bsddb, I get this error: >> >> >>> import bsddb >> >>> db = bsddb.btopen("myfile","c") >> Traceback (most recent call last): >> File "", line 1, in ? >> File "/usr/local/lib/python2.4/bsddb/__init__.py", line 303, in btopen >> e = _openDBEnv() >> File "/usr/local/lib/python2.4/bsddb/__init__.py", line 339, in _openDBEnv >> e.open('.', db.DB_PRIVATE | db.DB_CREATE | db.DB_THREAD | >> db.DB_INIT_LOCK | db.DB_INIT_MPOOL) >> bsddb._db.DBInvalidArgError: (22, 'Invalid argument -- architecture >> lacks fast mutexes: applications cannot be threaded') >> > It's a known problem of Berkeley DB on FreeBSD/amd64 (neither > Python's nor bsddb module's). I think you'd better to set ia32 > emulation up to get it working in that short time. Which version of Berkley DB are you using? I thought db41 and db42 ports had a workaround (--with-mutex=x86/gcc-assembly to CONFIGURE_ARGS). regards tilman