This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: compiling error core.c in mapcache with cygwin
- From: "Gery ." <gamejihou at hotmail dot com>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Cc: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Sun, 11 Jan 2015 15:17:23 -0500
- Subject: Re: compiling error core.c in mapcache with cygwin
- Authentication-results: sourceware.org; auth=none
- References: <DUB124-W279027A90C2E4D96E63BCCB05A0 at phx dot gbl> <54A81A0C dot 3090000 at gmail dot com> <DUB124-W3574F49394D7EC88CF8093B0420 at phx dot gbl> <54B22AD9 dot 5000203 at gmail dot com> <DUB408-EAS423E1089FB3935699DB07A8B0420 at phx dot gbl> <54B2CD83 dot 8000506 at acm dot org>
Thanks David but I don't have either the expertise to do so, I'll try to get mapcache working without threads enabled.
Sent from my iRon
On Jan 11, 2015, at 14:23, "David Rothenberger" <daveroth@acm.org> wrote:
On 1/11/2015 6:14 AM, Gery . wrote:
> Thanks Marco, is it possible to enable THREAD in that apr library?
I am the maintainer for the APR library. I didn't enable threads because
the unit tests don't pass with it enabled and I don't have the time or
expertise to fix it. If you want to fix it and submit a patch to this
list, I'll be happy to try the unit tests and include the patch in APR
if it works.
>
> Sent from my iRon
>
> On Jan 11, 2015, at 2:58, "Marco Atzeri" <marco.atzeri@gmail.com> wrote:
>
>
>
> On 1/11/2015 5:20 AM, Gery . wrote:
>> Hello Marco,
>>
>> After getting some replies about mapcache in the mapserver forum (http://osgeo-org.1560.x6.nabble.com/compiling-error-core-c-in-mapcache-with-cygwin-td5179881.html#a5180931), I have the impression that apr has some issues in cygwin. Using this "thread-sample.c" (http://dev.ariel-networks.com/apr/apr-tutorial/sample/thread-sample.c) with
>>
>> gcc -Wall $(apr-1-config --cflags --cppflags --includes --link-ld) thread-sample.c
>>
>> I got:
>>
>> $ gcc -Wall $(apr-1-config --cflags --cppflags --includes --link-ld) thread-sample.c
>> thread-sample.c: In function âmainâ:
>> thread-sample.c:46:5: warning: implicit declaration of function âapr_threadattr_createâ [-Wimplicit-function-declaration]
>> apr_threadattr_create(&thd_attr, mp);
>
>
>
> $ grep THREAD apr.h
> #define APR_HAVE_PTHREAD_H 0
> #define APR_USE_PROC_PTHREAD_SERIALIZE 0
> #define APR_USE_PTHREAD_SERIALIZE 0
> #define APR_HAS_PROC_PTHREAD_SERIALIZE 0
> #define APR_HAS_THREADS 0
> #define APR_HAS_XTHREAD_FILES 0
>
> It seems that the current cygwin apr library has no THREAD enabled.
--
David Rothenberger ---- daveroth@acm.org
Be careful of reading health books, you might die of a misprint.
-- Mark Twain
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple