ports/95646: security/amavisd-milter configure fails if sendmail built with LDAPMAP
Petr Rehor
prehor at gmail.com
Wed Apr 26 02:30:21 UTC 2006
The following reply was made to PR ports/95646; it has been noted by GNATS.
From: "Petr Rehor" <prehor at gmail.com>
To: bug-followup at freebsd.org, moonshade at pnhz.kz
Cc:
Subject: Re: ports/95646: security/amavisd-milter configure fails if sendmail built with LDAPMAP
Date: Wed, 26 Apr 2006 00:28:28 +0200
2006/4/17, Denis Eremenko <moonshade at pnhz.kz>:
> From: Denis Eremenko <moonshade at pnhz.kz>
> To: bug-followup at FreeBSD.org, moonshade at pnhz.kz
> Cc:
> Subject: Re: ports/95646: security/amavisd-milter configure fails if send=
mail
> built with LDAPMAP
> Date: Mon, 17 Apr 2006 12:20:19 +0600
>
> I'am using sendmail from 'base'. It binds to OpenLDAP on -DLDAPMAP.
>
> I dont't know if following info is right (not a developer), but:
> # objdump -R /usr/lib/libmilter.so.3 | grep ldap
> 00008308 R_386_JUMP_SLOT ldap_err2string
I checked base sendmail build process with SENDMAIL_CFLAGS et al. in
make.conf. LDAP options mustn't be passed to
/usr/src/lib/libmilter/Makefile because it not need it. sendmail+ldap
port do it in this way too - LDAP options are added to all binaries
and libraries but not to libmilter - see
/usr/ports/mail/sendmail/files/site.config.m4.ldap.
Exclude LDAP configuration for base libmilter in make.conf:
.if ${.CURDIR} !=3D /usr/src/lib/libmilter
SENDMAIL_CFLAGS=3D-I/usr/local/include -DLDAPMAP -DLDAP_REFERRALS
SENDMAIL_LDFLAGS=3D-L/usr/local/lib
SENDMAIL_LDADD=3D-lldap -llber
.endif
This example suppose that you build libmilter in
/usr/stc/lib/libmilter otherwise you must adjust the path to libmilter
sources (absolute path without symlinks).
P.
More information about the freebsd-ports-bugs
mailing list