Tere.
> I'm running 2.1.12 on Debian/Linux since it went out, no problem so far.
> It's with dnsrbl and spf2.
>
> libresolv, libnsl and libpthread are all from libc6 (glibc 2.3.6).
> I also have bind9 there but it's not used by greylist.
>
So in Debian all work's fine?
However,I'm still in same situation. Reading bind.spec from
bind-9.2.1-1.7x.2.src.rpm helped a litte, as I found that bind was
compiled without libbind support, but compiled it with libbbind support,
and if I tried to install the bind-devel package, it conflicted with the
files from glibc-devel package. So I downloaded the latest bind source,
compiled it with options:
./configure
\
--prefix=/usr/local/bind
\
--enable-libbind
\
--enable-ipv6
\
--with-openssl=/usr/local/ssl
\
--enable-threads \
And then tried to compile milter-greylist with oprions:
export
CPPFLAGS
export
LDFLAGS
LDFLAGS="-L/usr/local/bind/lib"
CPPFLAGS="-I/usr/local/bind/include"
./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
I'm still getting the same errors:
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/lib -Wl,--rpath=/usr/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
And from config.log I found:
configure:3062: checking for res_init in -lbind
configure:3092: gcc -o conftest -g -O2 -Wall -Ino/include
-I/usr/include/bind -I/usr/include
-I/usr/local/bind/include -Lno/lib -Wl,--rpath=no/lib -L/usr/lib
-Wl,--rpath=/usr/lib conftest.c -lbind >&5
/usr/bin/ld: cannot find
-lbind
collect2: ld returned 1 exit status
Ok, then after many different settings I tried:
./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 --with-thread-safe-resolver
And from config.log I found:
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/cckdnjpV.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
What is now wrong?
--
Sysadmin