<meta http-equiv="content-type" content="text/html; charset=utf-8"><div style="-webkit-text-size-adjust: auto; "><span></span></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div style="-webkit-text-size-adjust: auto; ">Thanks Thomas, I just got an email from the Cygwin mailing list saying that threads were not enabled in the APR library because the unit tests didn't pass with them, so that's the problem as you pointed out. I'd like to hack the mapcache codebase but no idea how to start hacking it to get it working without threads, but if you could give me some hints such as what files are involved (I imagine only core.c), which sections/lines would be involved, sure I could do it, I'd appreciate it. If I get that working, sure other people can test that in Cygwin and your audience will eventually increase :)</div><div style="-webkit-text-size-adjust: auto; "><br></div><div style="-webkit-text-size-adjust: auto; ">Gery</div><div style="-webkit-text-size-adjust: auto; "><br>Sent from my iRon</div><div style="-webkit-text-size-adjust: auto; "><br>On Jan 10, 2015, at 19:02, "thomas bonfort [via <a href="http://OSGeo.org" target="_top" rel="nofollow" link="external">OSGeo.org</a>]" <<a href="/user/SendEmail.jtp?type=node&node=5181004&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>> wrote:<br><br></div><div style="-webkit-text-size-adjust: auto; ">

        <p dir="ltr">From <a href="http://mail-archives.apache.org/mod_mbox/apr-dev/201209.mbox/%3C4994179EC7ED6843AAB0A30A1639E7F825143612EF@DGEX2V.dg.deltagroup.com%3E" target="_top" rel="nofollow" link="external">http://mail-archives.apache.org/mod_mbox/apr-dev/201209.mbox/%3C4994179EC7ED6843AAB0A30A1639E7F825143612EF@...%3E</a> it would seem that threads are not supported by Apr on cygwin. Currently mapcache does not support unthreaded environments so there's nothing you can do without hacking the mapcache codebase. I believe the change would not be very extensive as the source WMS fetches only need to be sequentialized instead of parralelized in core.c</p>
<p dir="ltr">Thomas.</p>
<div class="gmail_quote">On Jan 11, 2015 7:50 AM, "thomas bonfort" <<a href="/user/SendEmail.jtp?type=node&node=5180958&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>> wrote:<br type="attribution"><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border-left:2px solid #CCCCCC;padding:0 1em" class="gmail_quote"><p dir="ltr">What apr version are you using?<br>
</p>
<div class="gmail_quote">On Jan 3, 2015 10:15 PM, "Gery ." <<a href="/user/SendEmail.jtp?type=node&node=5180958&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a>> wrote:<br type="attribution"><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border-left:2px solid #CCCCCC;padding:0 1em" class="gmail_quote">Hello,<br>
<br>
When installing mapcache in cygwin, `make` produced:<br>
<br>
    /opt/mapcache/mapcache-rel-1-2-1/lib/core.c: In function ‘mapcache_prefetch_tiles’:<br>
    /opt/mapcache/mapcache-rel-1-2-1/lib/core.c:81:3: error: unknown type name ‘apr_thread_t’<br>
       apr_thread_t **threads;<br>
       ^<br>
    /opt/mapcache/mapcache-rel-1-2-1/lib/core.c:82:3: error: unknown type name ‘apr_threadattr_t’<br>
       apr_threadattr_t *thread_attrs;<br>
       ^<br>
    /opt/mapcache/mapcache-rel-1-2-1/lib/core.c:83:7: warning: unused variable ‘nthreads’ [-Wunused-variable]<br>
       int nthreads;<br>
           ^<br>
    /opt/mapcache/mapcache-rel-1-2-1/lib/core.c:82:21: warning: unused variable ‘thread_attrs’ [-Wunused-variable]<br>
       apr_threadattr_t *thread_attrs;<br>
                         ^<br>
    /opt/mapcache/mapcache-rel-1-2-1/lib/core.c:81:18: warning: unused variable ‘threads’ [-Wunused-variable]<br>
       apr_thread_t **threads;<br>
                      ^<br>
<br>
I searched for some hints about this error but didn't find anything. Looking for `apr_thread_t` and cygwin, I found some pages pointing to an error with apache, but not really sure if apache has something to do here.<br>
<br>
thanks for any hints on this,<br>
<br>
Gery<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="/user/SendEmail.jtp?type=node&node=5180958&i=2" target="_top" rel="nofollow" link="external">[hidden email]</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank" rel="nofollow" link="external">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a></blockquote></div>
</blockquote></div>
<br>_______________________________________________
<br>mapserver-users mailing list
<br><a href="/user/SendEmail.jtp?type=node&node=5180958&i=3" target="_top" rel="nofollow" link="external">[hidden email]</a>
<br><a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_top" rel="nofollow" link="external">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>

        
        
        
        <br>
        <br>
        <hr noshade="noshade" size="1" color="#cccccc">
        <div style="color:#444; font: 12px tahoma,geneva,helvetica,arial,sans-serif;">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://osgeo-org.1560.x6.nabble.com/compiling-error-core-c-in-mapcache-with-cygwin-tp5179881p5180958.html" target="_top" rel="nofollow" link="external">http://osgeo-org.1560.x6.nabble.com/compiling-error-core-c-in-mapcache-with-cygwin-tp5179881p5180958.html</a>
        </div>
        <div style="color:#666; font: 11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from compiling error core.c in mapcache with cygwin, <a href="" target="_top" rel="nofollow" link="external">click here</a>.<br>
                <a href="http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_top" link="external">NAML</a>
        </div></div></div>

        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/compiling-error-core-c-in-mapcache-with-cygwin-tp5179881p5181004.html">Re: compiling error core.c in mapcache with cygwin</a><br/>
Sent from the <a href="http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html">Mapserver - User mailing list archive</a> at Nabble.com.<br/>