I am looking at the Makefile generated from the macros and it appears to already have that switch:


# libraries required on your system

LIBS= ${LIBADD} -lmilter  /home/jbailo/dk-milter-1.0.1/obj.Linux. /home/jbailo/dk-milter-1.0.1/obj.Linux.  -lresolv -lcrypt -lnsl -ldl -lssl -lcrypto



Date: Wed, 11 Mar 2009 10:23:09 -0700 (PDT)

From: "Murray S. Kucherawy" <msk@sendmail.com>


You need to add "-lresolv" to the build.  Those are resolver functions.






Message: 1

Date: Wed, 11 Mar 2009 06:15:00 -0400

From: "Bailo, John" <John.Bailo@Bowne.com>

Subject: opensuse 11.1 compile error: undefined references in libdk

To: <dk-milter-discuss@lists.sourceforge.net>



Content-Type: text/plain; charset="us-ascii"




When doing sh Build for dk-milter 1.0.2, for openSuse 11.1:






make[1]: Entering directory





cc -o dk-filter -lpthread  dk-filter.o dk-crypto.o util.o      -lmilter




.a /home



dk.a  -l


dl -lssl -lcrypto





a(dk.o): In function `dk_in_use':


dk.c:(.text+0x86a): undefined reference to `__res_query'


dk.c:(.text+0x8fc): undefined reference to `__dn_expand'


dk.c:(.text+0x907): undefined reference to `__dn_skipname'


dk.c:(.text+0x9af): undefined reference to `__dn_expand'





a(dk.o): In function `dk_get_key':


dk.c:(.text+0x15c7): undefined reference to `__res_query'


dk.c:(.text+0x166e): undefined reference to `__dn_expand'


dk.c:(.text+0x1679): undefined reference to `__dn_skipname'


dk.c:(.text+0x1f6a): undefined reference to `__dn_expand'


collect2: ld returned 1 exit status


make[1]: *** [dk-filter] Error 1







CONFIDENTIALITY NOTICE: The information in this Internet email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized.