From owner-freebsd-current@FreeBSD.ORG Thu Apr 24 08:51:52 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6EC0A1065678 for ; Thu, 24 Apr 2008 08:51:52 +0000 (UTC) (envelope-from jaffern@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by mx1.freebsd.org (Postfix) with ESMTP id 1516F8FC13 for ; Thu, 24 Apr 2008 08:51:51 +0000 (UTC) (envelope-from jaffern@gmail.com) Received: by ug-out-1314.google.com with SMTP id y2so701532uge.37 for ; Thu, 24 Apr 2008 01:51:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to:cc:references:subject:date:mime-version:content-type:content-transfer-encoding:x-priority:x-msmail-priority:x-mailer:x-mimeole; bh=BjqgFuuh/GGnEz2dqMf6sSyE4OUXIRPGzCUgVwKFlOc=; b=Nqacy7XzZnCVMq6L7JBxckGe8nD/13NlU0HlguFkuMFOnh2Rpq57VKTQ9SsdwEQdiGgN9JV/dVCijJDQfMcLjutMaDBmat3vwMiCPSxg/IcspmXpNnv4O8VS5Pb2in9rHgVxJo2dODMyp9gdaCko7cW/vMC+Gd7IHsSVPuMBywo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:cc:references:subject:date:mime-version:content-type:content-transfer-encoding:x-priority:x-msmail-priority:x-mailer:x-mimeole; b=H+gTVcLPhCEx+IcRR4KJPJIWQPPs8kNYwM36plOmOukPE4L4MxdcQ3IHLCkPXId/PTwrvrHwOy/fFU0rJIK3DFmWPp5/5hZfio6TGObfGWqT4Sq2di3KqUaqrxIxlKE9X0RBcvxmDU8SekEt3EGCbkY2nHBmE+Qe3nuCTlhV8FU= Received: by 10.67.16.13 with SMTP id t13mr1280858ugi.44.1209027110535; Thu, 24 Apr 2008 01:51:50 -0700 (PDT) Received: from Nasier ( [196.23.54.250]) by mx.google.com with ESMTPS id m5sm104571gve.1.2008.04.24.01.51.47 (version=SSLv3 cipher=RC4-MD5); Thu, 24 Apr 2008 01:51:49 -0700 (PDT) Message-ID: <000601c8a5e8$6dbfc820$086517ac@Nasier> From: "Nasier Jaffer" To: "Scot Hetzel" References: <000c01c8a54f$472537c0$086517ac@Nasier> <790a9fff0804231235n2cf6d95dle30340c0578b666c@mail.gmail.com> Date: Thu, 24 Apr 2008 10:51:42 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1914 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1914 Cc: freebsd-current@freebsd.org Subject: Re: Berkeley DB package compatibility issue X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Apr 2008 08:51:52 -0000 Hi Scot In the apache22 ports there is a file called Makefile.modules. In there = you have WITH_BERKELEYDB=3D FreeBSD which uses . if ${WITH_BERKELEYDB} =3D=3D "FreeBSD" CONFIGURE_ARGS+=3D --with-dbm=3Ddb185 \ --with-berkeley-db=3D/usr . elif ${WITH_BERKELEYDB} =3D=3D "db2" I will change it to WITH_BERKELEYDB=3D db44 which will then use . elif ${WITH_BERKELEYDB} =3D=3D "db44" LIB_DEPENDS+=3D db-4.4:${PORTSDIR}/databases/db44 CONFIGURE_ARGS+=3D --with-dbm=3Ddb44 \ = --with-berkeley-db=3D${LOCALBASE}/include:${LOCALBASE}/lib/db44 Thank you for pointing me in the right direction. Nasier ----- Original Message -----=20 From: "Scot Hetzel" To: "Nasier Jaffer" Cc: Sent: Wednesday, April 23, 2008 9:35 PM Subject: Re: Berkeley DB package compatibility issue > On 4/23/08, Nasier Jaffer wrote: > > Hello > > > > I am trying to install Apache, OpenlDAP and p5-BerkeleyDB-0.32 on = FreeBSD 7.0-RELEASE #0:. These are all done from the package system. > > > > ie pkg_add -r package_name > > > > apache-2.2.6_2 Version 2.2 of Apache web server with prefork = MPM > > openldap-client-2.3.41 Open source LDAP client implementation > > openldap-server-2.3.41 Open source LDAP server implementation > > p5-BerkeleyDB-0.32 Perl5 interface to the Berkeley DB package > > > > The resultant dependencies of these packages regarding Berkeley DB = is as follows > > > > db41-4.1.25_4 The Berkeley DB package, revision 4.1 > > db42-4.2.52_5 The Berkeley DB package, revision 4.2 > > db44-4.4.20.4 The Berkeley DB package, revision 4.4 > > > > apache-2.2.6_2 requires db42-4.2.52_5 > > p5-BerkeleyDB-0.32 requires db41-4.1.25_4 > > openldap-server-2.3.41 requires db44-4.4.20.4 > > > > This is causing some serious issues when running some perl modules = in apache. > > > > [Wed Apr 23 15:24:03 2008] [error] \nBerkeleyDB needs compatible = versions of libdb & db.h\n\tyou have db.h version 4.1.25 and libdb = version 4.4.20\nCompilation failed in require at = /usr/local/lib/perl5/site_perl/Seshat.pm line 4, line 228.\nBEGIN = failed--compilation aborted at /usr/local/lib/perl5/site_perl/Seshat.pm = line 4, line 228.\nCompilation failed in require at = /var/www/cgi-bin/rs/logon.pl line 32, line 228.\nBEGIN = failed--compilation aborted at /var/www/cgi-bin/rs/logon.pl line 32, = line 228.\n > > > > Can someone please assist me with solving this problem. Your help = is greatly appreciated. > > > Try setting WITH_BDB_VER in your make.conf file, and rebuild the = ports: >=20 > WITH_BDB_VER=3D44 >=20 > If you have other bdb ports installed, and you want to use the latest > version, then set WITH_BDB_HIGHEST in make.conf. >=20 > Scot