Subject: Re: problem with including /usr/pkg/include
To: Daniel Eggert <danieleggert@mac.com>
From: Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
List: tech-pkg
Date: 12/04/2002 14:42:34
On Wed, Dec 04, 2002 at 02:31:59PM +0100, Daniel Eggert wrote:
> I have a problem with including /usr/pkg/include
>
> I wanted to change mail/postfix/Makefile to make it compile the LDAP
> support into postfix. I added the following
> .if defined(POSTFIX_USE_LDAP) && ${POSTFIX_USE_LDAP} == "YES"
> CCARGS+= -DHAS_LDAP -I${PKGDIR}/include
> AUXLIBS+= -L${PKGDIR}/lib -lldap -llber
> BUILD_DEFS+= POSTFIX_USE_LDAP
> .endif
>
> But now, when I try to run
> make POSTFIX_USE_LDAP=YES USE_SASL=YES POSTFIX_USE_TLS=YES update
> I get:
> [src/util]
> cc -DHAS_LDAP -DUSE_SASL_AUTH -DHAS_SSL -g -O2 -I/usr/pkg/include
> -I. -DNETBSD1 -c dict_ldap.c
> dict_ldap.c:99: lber.h: No such file or directory
> dict_ldap.c:100: ldap.h: No such file or directory
> *** Error code 1
>
> Stop.
>
> What do I do wrong? The files lber.h and ldap.h _are_ inside
> /usr/pkg/include
I'm a bit confused about which version of pkgsrc you're talking about;
the current version already contains:
.if defined(POSTFIX_USE_LDAP) && ${POSTFIX_USE_LDAP} == "YES"
.include "../../databases/openldap/buildlink2.mk"
CCARGS+= -DHAS_LDAP
AUXLIBS+= -L${BUILDLINK_PREFIX.openldap}/lib \
-Wl,-R${BUILDLINK_PREFIX.openldap}/lib \
-lldap -llber
BUILD_DEFS+= POSTFIX_USE_LDAP
.endif
Bye,
Thomas
--
Thomas Klausner - wiz@danbala.ifoer.tuwien.ac.at
What is wanted is not the will to believe, but the will to find
out, which is the exact opposite. -- Bertrand Russell