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.2.6.25.18-0.2-default.i686/libsm/libsm.a /home/jbailo/dk-milter-1.0.1/obj.Linux.2.6.25.18-0.2-default.i686/libdk/libdk.a  -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>

Message-ID:

     <C35EBB97EA681B46AB8A577EB8664C6609EB44E4@EXCMBWCALDWELL.ad.bowne.com>

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

`/home/jbailo/dk-milter-1.0.2/obj.Linux.2.6.27.19-3.

 

2-default.x86_64/dk-filter'

 

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

/home/j

 

bailo/dk-milter-1.0.2/obj.Linux.2.6.27.19-3.2-default.x86_64/libsm/libsm

.a /home

 

/jbailo/dk-milter-1.0.2/obj.Linux.2.6.27.19-3.2-default.x86_64/libdk/lib

dk.a  -l

 

dl -lssl -lcrypto

 

/home/jbailo/dk-milter-1.0.2/obj.Linux.2.6.27.19-3.2-default.x86_64/libd

k/libdk.

 

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'

 

/home/jbailo/dk-milter-1.0.2/obj.Linux.2.6.27.19-3.2-default.x86_64/libd

k/libdk.

 

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.