user/4928: sendmail compile fails with libmilter and ldap

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

user/4928: sendmail compile fails with libmilter and ldap

Adam.Montague
>Number:         4928
>Category:       user
>Synopsis:       sendmail compile fails with libmilter and ldap
>Confidential:   yes
>Severity:       non-critical
>Priority:       medium
>Responsible:    bugs
>State:          open
>Quarter:        
>Keywords:      
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 30 19:50:02 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Adam Montague
>Release:        3.8 -current
>Organization:
net
>Environment:
       
        System      : OpenBSD 3.8
        Architecture: OpenBSD.i386
        Machine     : i386
>Description:
        Trying to compile sendmail (the one included in base) with WANT_LDAP
and WANT_LIBMILTER both set to yes fails.  The libmilter directory is not using
LDFLAGS to link libmilter:
building shared object milter library
ranlib libmilter_pic.a
building shared milter library (version 1.0)
cc -shared -fpic  -o libmilter.so.1.0  `lorder main.so engine.so listener.so handler.so comm.so smfi.so signal.so sm_gethost.so errstring.so strl.so|tsort -q` -lldap -llber
/usr/bin/ld: cannot find -lldap
collect2: ld returned 1 exit status
*** Error code 1

Stop in /usr/src/gnu/usr.sbin/sendmail/libmilter (line 179 of /usr/share/mk/bsd.lib.mk).
*** Error code 1

Stop in /usr/src/gnu/usr.sbin/sendmail.
>How-To-Repeat:
        My /etc/mk.conf looks like this:
SUDO=sudo
WANT_SMTPAUTH=yes
WANT_LDAP=yes
WANT_LIBMILTER=yes

Then just compile sendmail (make obj;make depend;make).
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted: