From owner-freebsd-python@FreeBSD.ORG Tue Dec 9 07:20:34 2008 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F102106564A for ; Tue, 9 Dec 2008 07:20:34 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from fw.farid-hajji.net (fw.farid-hajji.net [213.146.115.42]) by mx1.freebsd.org (Postfix) with ESMTP id F15B68FC0C for ; Tue, 9 Dec 2008 07:20:33 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from phenom.cordula.ws (phenom [192.168.254.60]) by fw.farid-hajji.net (Postfix) with ESMTP id 0514F34BCB; Tue, 9 Dec 2008 08:02:48 +0100 (CET) Date: Tue, 9 Dec 2008 08:04:01 +0100 From: cpghost To: freebsd-python@freebsd.org Message-ID: <20081209070401.GA32970@phenom.cordula.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Subject: databases/py-bsddb won't compile X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Dec 2008 07:20:34 -0000 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/