Yahoo Groups archive

Milter-greylist

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

Message

Re: [milter-greylist] Re: milter-greylist 3.0rc6 segmentation fault.

2006-11-02 by AIDA Shinra

At Thu, 02 Nov 2006 11:09:03 -0500,
Matt Kettler wrote:
> 
> AIDA Shinra wrote:
> > At Wed, 01 Nov 2006 19:32:13 -0500,
> > Matt Kettler wrote:
> > 
> >> 2) modified /etc/ld.so.conf to include /usr/local/lib, and ran ldconfig to build
> >> the cache.
> > 
> > The libbind.a is a static library. No need for ldconfig.
> 
> It's not using libbind.a, it's using the .so version, hence the ldconfig. (see
> ldd output below)
> 
> 
> > 
> >> 3) rebuilt milter-greylist:
> >> 	 ./configure --enable-dnsrbl  --with-libbind=/usr/local/lib/
> >> 	make clean
> >> 	make
> >> 	
> >> Still crashes, same way.
> > 
> > Don't addappend /lib/ after --with-libbind=/usr/local.
> 
> Fair enough, fixed.
> 
> ./configure --enable-dnsrbl  --with-libbind=/usr/local
> 
> > 
> > Then tell me your make log and the result of "ldd milter-greylist".
> > 
> 
> (See the attached make.log, but these two messages went to stderr.)
> 
> $ make >make.log
> conf_lex.c:2349: warning: `yy_flex_realloc' defined but not used
> dump_lex.c:1678: warning: `yy_flex_realloc' defined but not used
> $
> 
> Here's your ldd:
> 
> $ ldd milter-greylist
>         /lib/libsafe.so.2 => /lib/libsafe.so.2 (0x40018000)
>         libpthread.so.0 => /lib/i686/libpthread.so.0 (0x40028000)
>         libbind.so.0 => /usr/local/lib/libbind.so.0 (0x40078000)
>         libresolv.so.2 => /lib/libresolv.so.2 (0x400b8000)
>         libnsl.so.1 => /lib/libnsl.so.1 (0x400ca000)
>         libc.so.6 => /lib/i686/libc.so.6 (0x400df000)
>         libdl.so.2 => /lib/libdl.so.2 (0x40218000)
>         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

1. What happens if you modify LIBS in Makefile like this:
LIBS= -lmilter -lbind -lnsl -pthread

2. Where did BIND installed its headers, especially netdb.h?

3. If everything fails, undefine HAVE_GETADDRINFO in your config.h.
It is a pseudofix but it probably works for you.

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.