Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: Ldap and milter-greylist

2007-04-17 by Net_Guru_2U

--- In milter-greylist@yahoogroups.com, Emmanuel Dreyfus <manu@...> wrote:
>
> On Tue, Apr 17, 2007 at 08:18:13AM -0700, Mark Hamilton wrote:
> > > > > When I tried to run ./configure I kept getting the "Required
libmilter
> > > > > not found. Use --with-libmilter" error even when I supplied the
> > > > > correct path. So, I started looking through the config.log
and found
> > > > > that libmilter uses some stuff from ldap if you compile
sendmail with
> > > > > ladp. So not knowing much about automake I just tweaked the
configure
> > > > > to include -lldap -llber in two places.
> 
> Here is the relevant snipet:
> configure:7710: gcc -o conftest -g -O2 -Wall   conftest.c -lmilter 
 -lpthread -
> lresolv -lnsl >&5
>
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libmilter.a(errstring.o)(.text+
> 0xda): In function `sm_errstring':
> : undefined reference to `ldap_err2string'
> 
> I'm more and more convinced this is a problem with your libmilter
build: 
> libmilter is a static library (.a), which should include all the
symbols it
> needs. For instance, sm_errstring is in libsm, but libmilter
includes it.
> 
> So IMO, it should also include ldap_err2string from libldap.
> 
> Anyone has an opinion on this topic? Can you talk to your package
maintainer
> to get some insightful opinions?
> 
> -- 
> Emmanuel Dreyfus
> manu@...
>

Ok, I recompiled the libmilter for sendmail on a spare machine with
the ldap stuff in the siteconfig for sendmail and it had the same
problem that milter-greylist had.  I added the -lldap -llber to the
configure file and it worked fine.  This looks like a problem that
needs to be taken up with sendmail since they are the ones putting in
the extra dependencies when sendmail is compiled to support ldap.  You
are probably correct that they should not be added to a static library
and they apparently are not needed to make libmilter work with ldap
since I am using a version of libmilter on 2 machines compiled without
ldap when sendmail itself is using ldap.  Anyway, I guess it is not
really a milter-greylist problem and I know how to get around it easy
enough.

Mark

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.