Return-Path: X-Original-To: apmail-apr-dev-archive@www.apache.org Delivered-To: apmail-apr-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B69564253 for ; Fri, 17 Jun 2011 12:02:50 +0000 (UTC) Received: (qmail 39853 invoked by uid 500); 17 Jun 2011 12:02:50 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 39731 invoked by uid 500); 17 Jun 2011 12:02:50 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 39723 invoked by uid 99); 17 Jun 2011 12:02:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jun 2011 12:02:50 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.210.50] (HELO mail-pz0-f50.google.com) (209.85.210.50) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jun 2011 12:02:43 +0000 Received: by pzk2 with SMTP id 2so2037957pzk.37 for ; Fri, 17 Jun 2011 05:02:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.199.10 with SMTP id w10mr357054wff.41.1308312143303; Fri, 17 Jun 2011 05:02:23 -0700 (PDT) Received: by 10.142.224.14 with HTTP; Fri, 17 Jun 2011 05:02:23 -0700 (PDT) X-Originating-IP: [213.164.164.164] In-Reply-To: References: Date: Fri, 17 Jun 2011 14:02:23 +0200 Message-ID: Subject: Re: Compiling on cygwin From: Antonio Vieiro To: Jeff Trawick Cc: dev@apr.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, I finally got it compiling with threads with cygwin (I was missing a buildconfig first) but then I had a problem with winsock.h that I didn't know how to solve. I think I'll try out with MS Visual Studio 2008 Express Edition. That should be more "native", I assume. Thanks, Antonio 2011/6/17 Jeff Trawick : > On Fri, Jun 17, 2011 at 5:24 AM, Antonio Vieiro > wrote: >> Hi all, >> >> I am trying to compile apr-1.4.5 on cygwin 5.1 [1] with thread support >> (pthreads) so I'm doing a >> >> =A0 =A0./configure --enable-threads=3Dpthread >> >> But configure says that apr will be non threaded: >> >> =A0 =A0checking for main in -ltruerand... no >> =A0 =A0checking for library containing modf... none required >> >> =A0 =A0Checking for Threads... >> =A0 =A0APR will be non-threaded =A0<--- D'oh! >> =A0 =A0checking for sigsuspend... yes >> >> My question is: is it possible to build apr with thread support on >> cygwin. If so, how? >> >> If this is not possible, should I try with mingw? > > I don't know about APR capabilities when built with Cygwin. =A0Building > with MinGW uses APR's thread implementation for Windows, so yes > threads will be supported. > > Whether to build APR with Cygwin or MinGW should follow the general > Cygwin/MinGW choice: > > * Unix-y code in your application that requires emulation? =A0Cygwin > * No Unix-y code in your application? =A0MinGW > > Note that you can't build APR as a shared library with 1.4.5, but that > will hopefully be resolved in the next release. =A0(That's already > supported in trunk.) >