Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 93885 invoked from network); 2 Mar 2005 17:12:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Mar 2005 17:12:06 -0000 Received: (qmail 8671 invoked by uid 500); 2 Mar 2005 17:11:51 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 8597 invoked by uid 500); 2 Mar 2005 17:11:51 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 8545 invoked by uid 99); 2 Mar 2005 17:11:50 -0000 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=DNS_FROM_RFC_POST X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from ppsw-4.csi.cam.ac.uk (HELO ppsw-4.csi.cam.ac.uk) (131.111.8.134) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 02 Mar 2005 09:11:49 -0800 Received: from mob22.robinson.cam.ac.uk ([131.111.236.230]:2976 helo=zephyr) by ppsw-4.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.154]:465) with esmtpsa (LOGIN:mob22) (TLSv1:RC4-MD5:128) id 1D6XNf-0003yp-EG (Exim 4.44) for dev@apr.apache.org (return-path ); Wed, 02 Mar 2005 17:11:28 +0000 Message-ID: <079201c51f4a$de1423f0$e6ec6f83@robinson.cam.ac.uk> From: "Max Bowsher" To: References: <6.2.1.2.2.20050302100820.0615d950@pop3.rowe-clan.net> Subject: Re: Cannot link APR library with MinGW Date: Wed, 2 Mar 2005 17:09:44 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Sender: mob22@hermes.cam.ac.uk X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ X-Cam-AntiVirus: No virus found X-Cam-SpamDetails: Not scanned X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N William A. Rowe, Jr. wrote: > At 02:31 AM 3/2/2005, Maxim wrote: >> Has anyone use APR library (http://apr.apache.org) with your application >> for >> Win32 with MinGW? >> >> First, I tried compiling APR library with MinGW but got the same error >> about >> shared memory allocation support: >> >> ./configure:Error: decision on anonymous shared memory allocation method >> failed > > This sort of check means that no decision can be made. > > The reason that it can't be made is that APR is only designed > to be compiled native (the foo/win32/ source trees), and the > foo/unix/ trees won't be ported to provide faux-unix support. > > APR is designed to take advantage of the environment, should > we transpose apr concepts into unix concepts into win32 through > two proxies (apr and unix compat layers such as mingw/cygwin) > we will get this wrong and lose any potential benefit of a > portability layer. > > Obviously, for this to work on mingw or cygwin, the appropriate > autoconf and code elections must be programmed into configure.in > and the included macros in build/. *Big* difference between mingw and cygwin. For mingw, yes, the win32 code needs to be selected in appropriately, because mingw isn't really a compat layer - rather it's the GNU toolchain running on undisguised Windows. On Cygwin, however, apr works very nicely built in unix mode - both Apache 2 and Subversion both work on Cygwin with minimal tweaking - and indeed it would be fatal to try and make apr use the win32 code on cygwin, since it would break cygwin's unixy abstractions for apr's client programs. Max.