Bulding lighttpd 1.4.11 with LDAP support fails, as the configure script can't find the LDAP libraries. Fix: Setting CFLAGS="-I/usr/local/include" and LDFLAGS="-L/usr/local/lib" allows it to build successfully. How-To-Repeat: Just try to build lighttpd 1.4.11. The pre-built i386 binary also lacks LDAP support.
State Changed From-To: open->feedback Awaiting maintainers feedback
Hi! I don't know when this bug managed to sneak in, anyway here's the fix: Index: Makefile =================================================================== RCS file: /home/ncvs/ports/www/lighttpd/Makefile,v retrieving revision 1.39 diff -u -u -r1.39 Makefile --- Makefile 3 May 2006 13:25:07 -0000 1.39 +++ Makefile 12 May 2006 12:39:57 -0000 @@ -45,6 +45,7 @@ .if defined(WITH_OPENLDAP) USE_OPENLDAP= yes CONFIGURE_ARGS+= --with-ldap +CONFIGURE_ENV+= CFLAGS=-I${LOCALBASE}/include LDFLAGS=-L/${LOCALBASE}/lib _REQUIRE+= slapd .endif Thanks to Jakob for reporting, Hendrik -- Hendrik Scholz - <hscholz@raisdorf.net> - http://www.wormulon.net/ drag me, drop me - treat me like an object
State Changed From-To: feedback->open Maintainer has supplied a fix.
Responsible Changed From-To: freebsd-ports-bugs->ehaupt Take.
State Changed From-To: open->feedback The patch you supplied does not solve the problem. Configure still won't find -lldap. See: $ make rmconfig $ make configure WITH_LDAP=yes BATCH=yes $ make configure Check the output (and have a look at ${WRKSRC}/config.log) The following patch seems to solve the problem. Could you both please review it? Also available: http://people.freebsd.org/~ehaupt/snippets/97161/97161.patch --- patch begins here --- Index: Makefile =================================================================== RCS file: /home/ncvs/ports/www/lighttpd/Makefile,v retrieving revision 1.39 diff -u -r1.39 Makefile --- Makefile 3 May 2006 13:25:07 -0000 1.39 +++ Makefile 31 May 2006 11:15:59 -0000 @@ -7,6 +7,7 @@ PORTNAME= lighttpd PORTVERSION= 1.4.11 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= http://www.lighttpd.net/download/ @@ -20,8 +21,12 @@ USE_GNOME= lthack USE_RC_SUBR= lighttpd.sh CONFIGURE_ARGS= --libdir=${PREFIX}/lib/lighttpd +CONFIGURE_ENV+= CFLAGS="${CFLAGS}" CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} +CFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib + MAN1= lighttpd.1 spawn-fcgi.1 OPTIONS= OPENSSL "Enable SSL support" on --- patch ends here ---
State Changed From-To: feedback->open Feedback received.
State Changed From-To: open->closed Committed, thanks!