Yahoo Groups archive

Milter-greylist

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

Message

Re: [milter-greylist] "DNS resolver is not thread safe" error

2006-08-05 by Sysadmin

Tere.
>
> Use --with-libbind=/usr/local/bind since you installed it there.
>   
Last time I did so, but still error.
>  
> And if you use the resolver from BIND 9, you should not need
> --with-thread-safe-resolver
>
> Please adjust --with-libbind and remove --with-thread-safe-resolver, and
> tell us how it goes. I suspect you'll succeed. If you do I'll update the
> docs to give theses hints. 
>   

Well, with:

./configure --with-user=smmsp --without-db --without-drac-db 
\                                                    
    --with-conffile=/etc/mail/greylist.conf 
--with-dumpfile=/var/spool/greylist/greylist.db \                     
    --bindir=/usr/local/sbin --enable-dnsrbl --with-libbind=/usr/local/bind

I got same error:

gcc -o milter-greylist milter-greylist.o pending.o sync.o dnsrbl.o 
list.o conf_yacc.o dump_yacc.o conf.o autowhite.o dump.o spf.o acl.o 
-Lno/lib -Wl,--rpath=no/lib -L/usr/local/bind/lib 
-Wl,--rpath=/usr/local/bind/lib -lresolv -lnsl -lpthread -lmilter
dnsrbl.o: In function `dnsrbl_check_source':
/usr/src/redhat/BUILD/milter-greylist-2.1.12/dnsrbl.c:166: undefined 
reference to `__ns_initparse'
/usr/src/redhat/BUILD/milter-greylist-2.1.12/dnsrbl.c:173: undefined 
reference to `__ns_parserr'
collect2: ld returned 1 exit status

config.log:

configure:3062: checking for res_init in 
-lbind                                                                   
configure:3092: gcc -o conftest -g -O2 -Wall -Ino/include 
-I/usr/local/bind/include/bind -I/usr/local/bind/include
   -Lno/lib -Wl,--rpath=no/lib -L/usr/local/bind/lib 
-Wl,--rpath=/usr/local/bind/lib conftest.c -lbind   >&5      
/tmp/cc4kdZ6l.o: In function 
`main':                                                                               

/usr/src/redhat/BUILD/milter-greylist-2.1.12/conftest.c:21: undefined 
reference to `res_init'                     
collect2: ld returned 1 exit 
status                                                                                

configure:3098: $? = 
1                                                                                             

configure: failed program 
was:                                                                                     

| /* confdefs.h.  
*/                                                                        

> Basically, your problem was that you did not have libbind.a, right?
>  
>   
Yes. So I leaved the Redhat packages installed, and compiled for 
milter-greylist bind from the source.

-- 
Sysadmin

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.