You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Antonio Vieiro <an...@antonioshome.net> on 2011/06/17 11:24:25 UTC
Compiling on cygwin
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
./configure --enable-threads=pthread
But configure says that apr will be non threaded:
checking for main in -ltruerand... no
checking for library containing modf... none required
Checking for Threads...
APR will be non-threaded <--- D'oh!
checking 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?
Thanks in advance,
Antonio
[1]
$ uname -a
CYGWIN_NT-5.1 WSERVER 1.7.9(0.237/5/3) 2011-03-29 10:10 i686 Cygwin
Re: Compiling on cygwin
Posted by Antonio Vieiro <an...@antonioshome.net>.
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 <tr...@gmail.com>:
> On Fri, Jun 17, 2011 at 5:24 AM, Antonio Vieiro
> <an...@antonioshome.net> 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
>>
>> ./configure --enable-threads=pthread
>>
>> But configure says that apr will be non threaded:
>>
>> checking for main in -ltruerand... no
>> checking for library containing modf... none required
>>
>> Checking for Threads...
>> APR will be non-threaded <--- D'oh!
>> checking 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. Building
> 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? Cygwin
> * No Unix-y code in your application? MinGW
>
> 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. (That's already
> supported in trunk.)
>
Re: Compiling on cygwin
Posted by Jeff Trawick <tr...@gmail.com>.
On Fri, Jun 17, 2011 at 5:24 AM, Antonio Vieiro
<an...@antonioshome.net> 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
>
> ./configure --enable-threads=pthread
>
> But configure says that apr will be non threaded:
>
> checking for main in -ltruerand... no
> checking for library containing modf... none required
>
> Checking for Threads...
> APR will be non-threaded <--- D'oh!
> checking 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. Building
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? Cygwin
* No Unix-y code in your application? MinGW
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. (That's already
supported in trunk.)