Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Dec 2004 17:07:12 +0100
From:      Tilman Linneweh <arved@freebsd.org>
To:        Hye-Shik Chang <perky@i18n.org>, chuckr@chuckr.org
Cc:        freebsd-ports@freebsd.org
Subject:   Re: FreeBSD Port: python-2.4.a3
Message-ID:  <20041202160712.GA23336@arved.at>
In-Reply-To: <20041202155542.GA79436@i18n.org>
References:  <41AE852D.8080909@chuckr.org> <20041202155542.GA79436@i18n.org>

next in thread | previous in thread | raw e-mail | index | archive | help
* 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 "<stdin>", 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041202160712.GA23336>