[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

cygwin: when `crypt' is not installed, configuring apr fails with `decision on anonymous shared memory allocation method... FAILED'

From: Eric Hanchrow <offby1_at_blarg.net>
Date: 2003-04-10 23:44:58 CEST

This is apr version 0.9.2.

I'd downloaded `subversion' (version 0.20.1, if it matters), which
includes a copy of apr. I didn't have the `crypt' package installed,
because I didn't know that I needed it. `configure' failed like the
Subject line says. Once I installed the `crypt' package, everything
worked fine.

I suspect the problem is that, on Cygwin, build/apr_hints.m4
unconditionally adds `-lcrypt' to LIBS; since I didn't have that
library, its test for the presence of `mmap' and `munmap' failed at
link time, and `configure' incorrectly assumed that the reason for the
failure was the lack of those functions. (In fact, the reason was the
lack of the `crypt' library.)
                                      
It's not clear that the `crypt' library is necessary. If it isn't
necessary, then of course the fix is to remove the APR_ADDTO. But if
it is, then ideally configure should die with a message to the effect
of "-lcrypt is required".

-- 
People studying literature rarely say anything that would be of the
slightest use to those producing it.
        -- Paul Graham
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Apr 10 23:45:46 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.