Yahoo Groups archive

Milter-greylist

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

Message

thread-unsafety on RedHat solved

2006-10-19 by manu@netbsd.org

randersson2 <robert@...> wrote:

> What does work is to:
> configure --enable-dnsrbl            (Note, *no* --with-libbind)
> Then edit the resulting Makefile and replace:
> LIBS=            -lresolv -lnsl -lpthread -lmilter
> with:
> LIBS=            /usr/lib/libresolv.a -lnsl -lpthread -lmilter
> 
> After this the make works and the resulting binary works fine even
> under heavy load.
> 
> Something is really strange here. Why is libresolv.a and libresolv.so
> different? And why doesn't libbind.so appear to be threadsafe? Go
> figure, the above workaround made things work for me.

Very strange indeed. If you build a milter-greylist with -lresolv -lnsl
-lpthread -lmilter, does ldd shows /usr/lib/libresolv.so is used?

Do you have multiple /usr/lib/libresolv.so.*?   

-- 
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
manu@...

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.