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@...
Message
thread-unsafety on RedHat solved
2006-10-19 by manu@netbsd.org
Attachments
- No local attachments were found for this message.