From owner-freebsd-ports@FreeBSD.ORG Thu Jul 5 16:33:33 2007 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7313E16A400 for ; Thu, 5 Jul 2007 16:33:33 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.248]) by mx1.freebsd.org (Postfix) with ESMTP id 3131513C458 for ; Thu, 5 Jul 2007 16:33:33 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: by an-out-0708.google.com with SMTP id c14so598811anc for ; Thu, 05 Jul 2007 09:33:32 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=m2BLrdtbGKi942N1uhfwWEFxbpUzah0tjS7qFrEO08FgBRnOpZP2k4tQHJVLgSnXGFkhpElMCMZU9a4iktrspAdd8o0yth6Kp0v/ntw3F7L0Qa7cCqs5Y3LuoBwOf5G9SSJvLlu4+lG15XYOad5gGW2aO6O1IA3gxatcoGIX6as= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=BmMPnTA9DxMc0L/sYlri5omvkmldert8LnPD+v5Z76pZ+uiLS2vw3iWDRQfp2IYT8/RmuJ0WTHGWCeLqen4BiMv5YwJEMSczKIXdcPmuedxnSejOgIw/KwWf2tEABr2rF6uRBALNDRYbi321IHQ2JqZPJYSjk7eR+06AbFiUaVo= Received: by 10.100.136.8 with SMTP id j8mr5422524and.1183653212125; Thu, 05 Jul 2007 09:33:32 -0700 (PDT) Received: by 10.100.141.14 with HTTP; Thu, 5 Jul 2007 09:33:32 -0700 (PDT) Message-ID: <790a9fff0707050933o2afc5abet8bb0170f0d94d686@mail.gmail.com> Date: Thu, 5 Jul 2007 11:33:32 -0500 From: "Scot Hetzel" To: Atmasamarpan In-Reply-To: <468CA787.1000009@vasudevaserver.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <468BA51B.6020502@vasudevaserver.org> <44wsxf3mwl.fsf@Lowell-Desk.lan> <468CA787.1000009@vasudevaserver.org> Cc: ports@freebsd.org, sergei@freebsd.org Subject: Re: FreeBSD Port: cfengine-2.2.1 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jul 2007 16:33:33 -0000 On 7/5/07, Atmasamarpan wrote: > Hi, > > Everything is fine after I removed db4-4.0.14_1,1. The port requires > db44, but during configure it finds db4 and compilation fails. See bellow. > I had a look at the ports Makefile, and found a couple of problems:. USE_BDB?= 44 It should just be "=" instead of "?=" as the user overrides the default when using WITH_BDB_VER. Since the port can only use BDB 4.4+, it should be specified as 44+. Another problem, is that setting BERKELEY_DB_{CFLAGS, LDFLAGS, LIB} in the CONFIGURE_ENV has no effect, as the cfengine configure script is overriding these settings when it tries to detect the version of Berkeley DB that is installed. checking for BerkeleyDB location in default... Found header in /usr/local/include/db4 checking for library containing db_create... -ldb4 /usr/local BERKELEY_DB_LIB=-ldb4 BERKELEY_DB_CFLAGS=-I/usr/local/include/db4 BERKELEY_DB_LDFLAGS=-L/usr/local/lib checking Berkeley DB Version... 4.0.14 OK checking Berkeley DB API... 4.0.14 checking for db_create in -ldb... no Note: I added a couple of echo statements before the version check. I have submitted a PR 114333 with a fix for these problems. http://www.freebsd.org/cgi/query-pr.cgi?pr=114333 Scot -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised.