[Mimedefang] building MD against sendmail w/ ldapmap
Jason Englander
jason at englanders.cc
Tue Apr 16 12:31:59 EDT 2002
Just a FYI for anyone that uses LDAPMAP with sendmail that tries to build
MD. If you get something like this when you run make:
gcc -g -O2 -Wall -Wstrict-prototypes -pthread
-DPERL_PATH=\"/usr/bin/perl\"
-DMIMEDEFANG_PL=\"/usr/local/bin/mimedefang.pl\" -DRM=\"/bin/rm\"
-DVERSION=\"2.7\"
-DSPOOLDIR=\"/var/spool/MIMEDefang/spool\"
-DQDIR=\"/var/spool/MIMEDefang/quarantine\" -I/usr/include -c -o
mimedefang.o mimedefang.c
gcc -g -O2 -Wall -Wstrict-prototypes -pthread -o mimedefang mimedefang.o
/usr/lib/libmilter.a /usr/lib/libsmutil.a -lpthread -lnsl -lsm -lldap
-llber
/usr/local/lib/libldap.so: undefined reference to `__dn_expand'
/usr/local/lib/libldap.so: undefined reference to `__res_query'
collect2: ld returned 1 exit status
make: *** [mimedefang] Error 1
...search the Makefile for -lldap and add -lresolv next to it. It should
be in there twice.
Jason
More information about the MIMEDefang
mailing list