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-02 by Sysadmin

Tere.
>>> is -lbind set in CFLAGS?
>>>       
> S> No, as bind is from package and in /usr. Howerver also Denis told, that
> S> in configure.ac, it should be --with-libbind=/usr/local.
>
> BIND  is  located  in  /usr/local  if it was built from the sources with
> default  settings.  Default  installation  also  puts  include  files of
> libbind  to  /usr/local/bind/include (and it seems that this location is
> not  used  while  building  milter-greylist  -  I  set  it  as  "-I"  in
> CPPFLASGS). 
>
> Binary  RPMs  from Linux distributives will probably put BIND to /usr as
> well as other software.
>
>   
Hmm, I tried:

export 
CPPFLAGS                                                                                                    

export 
LDFLAGS                                                                                                     

CPPFLAGS=-I/usr/lib/include                                                                                        

LDFLAGS=-L/usr/lib

./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 
--with-thread-safe-resolver

make

same errors:

gcc -g -O2 -Wall -Ino/include -I/usr/include/bind -I/usr/include 
-D_XOPEN_SOURCE=500 -DUSE_DNSRBL -DCONFFILE=\"/etc/mail/greylist.conf\" 
-DDUMPFILE=\"/var/spool/greylist/greylist.db\" -DDRACDB=\"no\" 
-D_BSD_SOURCE -I/usr/lib/include  -c -o conf.o conf.c
gcc -g -O2 -Wall -Ino/include -I/usr/include/bind -I/usr/include 
-D_XOPEN_SOURCE=500 -DUSE_DNSRBL -DCONFFILE=\"/etc/mail/greylist.conf\" 
-DDUMPFILE=\"/var/spool/greylist/greylist.db\" -DDRACDB=\"no\" 
-D_BSD_SOURCE -I/usr/lib/include  -c -o autowhite.o autowhite.c
gcc -g -O2 -Wall -Ino/include -I/usr/include/bind -I/usr/include 
-D_XOPEN_SOURCE=500 -DUSE_DNSRBL -DCONFFILE=\"/etc/mail/greylist.conf\" 
-DDUMPFILE=\"/var/spool/greylist/greylist.db\" -DDRACDB=\"no\" 
-D_BSD_SOURCE -I/usr/lib/include  -c -o dump.o dump.c
gcc -g -O2 -Wall -Ino/include -I/usr/include/bind -I/usr/include 
-D_XOPEN_SOURCE=500 -DUSE_DNSRBL -DCONFFILE=\"/etc/mail/greylist.conf\" 
-DDUMPFILE=\"/var/spool/greylist/greylist.db\" -DDRACDB=\"no\" 
-D_BSD_SOURCE -I/usr/lib/include  -c -o spf.o spf.c
gcc -g -O2 -Wall -Ino/include -I/usr/include/bind -I/usr/include 
-D_XOPEN_SOURCE=500 -DUSE_DNSRBL -DCONFFILE=\"/etc/mail/greylist.conf\" 
-DDUMPFILE=\"/var/spool/greylist/greylist.db\" -DDRACDB=\"no\" 
-D_BSD_SOURCE -I/usr/lib/include  -c -o acl.o acl.c
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 
-L/usr/lib -Lno/lib -Wl,--rpath=no/lib -L/usr/lib -Wl,--rpath=/usr/lib 
-lresolv -lnsl -lpthread -lmilter
dnsrbl.o: In function `dnsrbl_check_source':
/usr/src/redhat/BUILD/milter-greylist-2.1.10/dnsrbl.c:135: undefined 
reference to `__ns_initparse'
/usr/src/redhat/BUILD/milter-greylist-2.1.10/dnsrbl.c:145: undefined 
reference to `__ns_parserr'
collect2: ld returned 1 exit status
make: *** [milter-greylist] Error 1


What now?

-- 
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.