Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Dec 2008 08:04:01 +0100
From:      cpghost <cpghost@cordula.ws>
To:        freebsd-python@freebsd.org
Subject:   databases/py-bsddb won't compile
Message-ID:  <20081209070401.GA32970@phenom.cordula.ws>

next in thread | raw e-mail | index | archive | help
I'm trying to compile databases/py-bsddb for python2.6 on 7.1-PRE.
Anyone seen this?

(...)

_bsddb.c:7537: error: 'bsddb_api' undeclared (first use in this function)
_bsddb.c:7537: error: request for member 'db_type' in something not a structure or union
_bsddb.c:7538: error: request for member 'dbcursor_type' in something not a structure or union
_bsddb.c:7539: error: request for member 'dbenv_type' in something not a structure or union
_bsddb.c:7540: error: request for member 'dbtxn_type' in something not a structure or union
_bsddb.c:7541: error: request for member 'dblock_type' in something not a structure or union
_bsddb.c:7545: error: request for member 'makeDBError' in something not a structure or union
error: command 'cc' failed with exit status 1
*** Error code 1

I've tried the following combinations in /etc/make.conf:

  # Broken (see above)
  .if ${.CURDIR:M*/databases/py-bsddb}
  PYTHON_DEFAULT_VERSION=python2.6
  WITH_BDB_VER=47
  .endif

  # Broken (see above)
  .if ${.CURDIR:M*/databases/py-bsddb}
  PYTHON_DEFAULT_VERSION=python2.6
  WITH_BDB_VER=46
  .endif

With python2.5, compiling WITH_BDB_VER=47:

  # Broken (see below)
  .if ${.CURDIR:M*/databases/py-bsddb}
  PYTHON_DEFAULT_VERSION=python2.5
  WITH_BDB_VER=47
  .endif

yields:

creating build/temp.freebsd-7.1-PRERELEASE-amd64-2.5
cc -DNDEBUG -O2 -fno-strict-aliasing -pipe -D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x100000 -O2 -fno-strict-aliasing -pipe -fPIC -I/usr/local/include -I/usr/local/include/python2.5 -c _bsddb.c -o build/temp.freebsd-7.1-PRERELEASE-amd64-2.5/_bsddb.o
_bsddb.c: In function 'DBEnv_getattr':
_bsddb.c:5339: error: 'DB_ENV' has no member named 'db_home'
_bsddb.c:5342: error: 'DB_ENV' has no member named 'db_home'
_bsddb.c: In function 'init_bsddb':
_bsddb.c:5964: error: 'DB_LOG_AUTOREMOVE' undeclared (first use in this function)
_bsddb.c:5964: error: (Each undeclared identifier is reported only once
_bsddb.c:5964: error: for each function it appears in.)
_bsddb.c:5965: error: 'DB_DIRECT_LOG' undeclared (first use in this function)
_bsddb.c:5973: error: 'DB_LOG_INMEMORY' undeclared (first use in this function)
error: command 'cc' failed with exit status 1
*** Error code 1

Only this is okay:

  # Okay
  .if ${.CURDIR:M*/databases/py-bsddb}
  PYTHON_DEFAULT_VERSION=python2.5
  WITH_BDB_VER=46
  .endif

-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/



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