From owner-freebsd-ports Thu May 30 12:30:12 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id F0B7437B408 for ; Thu, 30 May 2002 12:30:00 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g4UJU0S15956; Thu, 30 May 2002 12:30:00 -0700 (PDT) (envelope-from gnats) Received: from loops.nilpotent.org (loops.nilpotent.org [12.17.163.70]) by hub.freebsd.org (Postfix) with SMTP id 0054637B401 for ; Thu, 30 May 2002 12:24:57 -0700 (PDT) Received: (qmail 35020 invoked from network); 30 May 2002 19:24:46 -0000 Received: from 63-100-207-51.newskies.net (root@63.100.207.51) by loops.nilpotent.org with QMTP; 30 May 2002 19:24:46 -0000 Received: (qmail 923 invoked by uid 500); 30 May 2002 19:24:47 -0000 Message-Id: <20020530192447.922.qmail@homeworld.nilpotent.org> Date: 30 May 2002 19:24:47 -0000 From: Faried Nawaz Reply-To: Faried Nawaz To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/38744: net/openldap2 doesn't work if db3 and db4 are installed Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 38744 >Category: ports >Synopsis: net/openldap2 doesn't work if db3 and db4 are installed >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu May 30 12:30:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Faried Nawaz >Release: FreeBSD 4.5-RC i386 >Organization: >Environment: System: FreeBSD pc126.cressoft.com.pk 4.6-RC FreeBSD 4.6-RC #0: Wed May 22 11:52:30 PKT 2002 fn@pc126.cressoft.com.pk:/usr/obj/usr/src/sys/pc126 i386 openldap2 out of ports db3, db4 out of ports. I installed db4 for ports/devel/subversion. >Description: Compile it. Try to run it. It won't. ktracing /usr/local/libexec/slapd -d 0 and confirming with ldd shows that it compiles with db3's headers (as specified by the port makefile) but links with /usr/local/lib/libdb4 (if present...as it is on my system). openldap2's configure script specifically checks for db4 and uses it. >How-To-Repeat: Compile it. Try to run it. It won't. >Fix: One possible fix (to the port makefile): .if exists(/usr/local/lib/libdb4.a) DB_CFLAGS= -I${LOCALBASE}/include/db4 .else DB_CFLAGS= -I${LOCALBASE}/include/db3 .endif [...] CPPFLAGS+= -D_REENTRANT ${PTHREAD_CFLAGS} \ -I${LOCALBASE}/include \ ${DB_CFLAGS} I don't know if openldap2 works fine with db4. It certainly appears to... >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message