On Sat, 15 Dec 2007, Mike Markley wrote:
> I've sent him a version of my 2.4.0 package with arlib disabled, and 
> this starts fine. It's probably also worth noting that I've enabled 
> DNS_UPGRADE in this build; I sent him a version with arlib but without 
> DNS_UPGRADE to try, since the FFR enables at least one more opportunity 
> for dkim_init() to fail.

I have a bunch of ideas but it's hard to say which (if any) apply to your 
situation without having access to it:

The ar_init() failure might be traceable into ar_res_parse() which can 
fail for reasons such as /etc/resolv.conf not readable or /etc/services 
not readable.

ar_init() itself can fail if socketpair() fails.  That call tries to 
create a pair of connected UNIX domain sockets, which exist in the 
filesystem.  Maybe the user's starting the process in a directory to which 
she/he doesn't have write permission (although the error codes for 
socketpair(2), at least on FreeBSD, don't list that as a possibility).

ar_init() could also fail if the process is simply unable to get any 
sockets, but that seems unlikely for a starting process.  The other 
reasons are memory allocation and thread creation failures, again unlikely 
for a new process.

You might also need to define AR_RES_MANUAL if the resolver on the target 
machine needs it.  Note the comments from site.config.m4.dist:

dnl libar normally uses res_init() or res_ninit() to load the contents
dnl of resolv.conf for its use.  If neither of these work on your system
dnl in multi-threaded programs (e.g. OpenBSD 3.7 and later), then you
dnl may need to enable code that parses that file manually.  This will
dnl also be required if you've got any IPv6 addresses in /etc/resolv.conf.
dnl In that case, enable this next line by deleting the "dnl" at the front
dnl of it.

-MSK

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
dkim-milter-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dkim-milter-discuss

Reply via email to