Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
To: dev@apr.apache.org
Cc: cygwin@cygwin.com, dev@subversion.tigris.org
Subject: cygwin: when `crypt' is not installed, configuring apr fails with `decision on anonymous shared memory allocation method... FAILED'
From: Eric Hanchrow <offby1@blarg.net>
Date: 10 Apr 2003 14:44:58 -0700
Message-ID: <8765pm3u3p.fsf@blarg.net>
Lines: 24
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

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

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

