Skip site navigation (1)Skip section navigation (2)
Date:      30 May 2002 19:24:47 -0000
From:      Faried Nawaz <fn@hungry.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/38744: net/openldap2 doesn't work if db3 and db4 are installed
Message-ID:  <20020530192447.922.qmail@homeworld.nilpotent.org>

next in thread | raw e-mail | index | archive | help

>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




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