The problem is that I need to compile using MinGW under Cygwin, and MinGW doesn't provide any of the shared memory header files (shm.h, sys/mmap.h, sys/mman.h, etc.) so the test fails.
A quick Google shows that a few other people have had this problem trying to build Subversion with MinGW but it doesn't look like anyone's resolved it. Does anyone know of a successful APR build with MinGW? Thanks, Dan Daniel M. Johnson Software Engineer | One Hornet Way, MS 9M52/W6 Northrop Grumman Integrated Systems | El Segundo, CA 90245-2804 J-UCAS Vehicle Management Systems | Telephone: (310) 345-5253 -----Original Message----- From: John Vandenberg [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 12, 2005 12:37 AM To: Dan Johnson Cc: dev@apr.apache.org Subject: Re: Building APR with Cygwin? On 7/12/05, Dan Johnson <[EMAIL PROTECTED]> wrote: Hi Dan, > > Has anyone build APR 1.1.1 on Cygwin? I found some packages at Cygwin's site > but they were 0.9.5 and 0.9.6. > > > > I tried building the Unix distribution directly but the configure script > dies with "decision on anonymous shared memory allocation method failed." Is > this a well-known problem? > I quickly attempted this on Cygwin using the 1.1.1 & trunk code, without any issues. The relevant part of the log for each looks like this on Windows XP when I generate configure using an up to date Cygwin with `autoconf-2.5x' ... checking for shmdt... yes checking for shmctl... yes checking for create_area... no checking for MAP_ANON in sys/mman.h... yes checking for /dev/zero... yes checking for mmap that can map /dev/zero... yes decision on anonymous shared memory allocation method... 4.4BSD-style mmap() via MAP_ANON decision on namebased memory allocation method... SysV IPC shmget() ... I dont know a lot about Cygwin, but I would check that out first. What were the configure results for header sys/mman.h, function mmap, and function munmap? Cheers, John